svn commit: r280874 - stable/10/sys/x86/iommu
Konstantin Belousov
kib at FreeBSD.org
Tue Mar 31 00:57:26 UTC 2015
Author: kib
Date: Tue Mar 31 00:57:25 2015
New Revision: 280874
URL: https://svnweb.freebsd.org/changeset/base/280874
Log:
MFC r280435:
When mapping an allocated entry, use the entry size, instead of the
requested size. If tag restrictions caused split entry, its size is
less then requsted.
Modified:
stable/10/sys/x86/iommu/intel_gas.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/x86/iommu/intel_gas.c
==============================================================================
--- stable/10/sys/x86/iommu/intel_gas.c Tue Mar 31 00:55:12 2015 (r280873)
+++ stable/10/sys/x86/iommu/intel_gas.c Tue Mar 31 00:57:25 2015 (r280874)
@@ -648,7 +648,7 @@ dmar_gas_map(struct dmar_ctx *ctx, const
entry->flags |= eflags;
DMAR_CTX_UNLOCK(ctx);
- error = ctx_map_buf(ctx, entry->start, size, ma,
+ error = ctx_map_buf(ctx, entry->start, entry->end - entry->start, ma,
((eflags & DMAR_MAP_ENTRY_READ) != 0 ? DMAR_PTE_R : 0) |
((eflags & DMAR_MAP_ENTRY_WRITE) != 0 ? DMAR_PTE_W : 0) |
((eflags & DMAR_MAP_ENTRY_SNOOP) != 0 ? DMAR_PTE_SNP : 0) |
More information about the svn-src-stable-10
mailing list