Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Mar 2015 00:57:25 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r280874 - stable/10/sys/x86/iommu
Message-ID:  <201503310057.t2V0vPql033580@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503310057.t2V0vPql033580>