Author: kib
Date: Sun Mar  1 10:29:48 2015
New Revision: 279484
URL: https://svnweb.freebsd.org/changeset/base/279484

Log:
  MFC r276867:
  Fix DMAR context allocations for the devices behind PCIe->PCI bridges
  after dmar driver was converted to use rids.  The bus component to
  calculate context page must be taken from the requestor rid, which is
  a bridge, and not from the device bus number.

Modified:
  stable/10/sys/x86/iommu/intel_ctx.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/x86/iommu/intel_ctx.c
==============================================================================
--- stable/10/sys/x86/iommu/intel_ctx.c Sun Mar  1 10:04:14 2015        
(r279483)
+++ stable/10/sys/x86/iommu/intel_ctx.c Sun Mar  1 10:29:48 2015        
(r279484)
@@ -290,7 +290,7 @@ dmar_get_ctx(struct dmar_unit *dmar, dev
                 * higher chance to succeed if the sleep is allowed.
                 */
                DMAR_UNLOCK(dmar);
-               dmar_ensure_ctx_page(dmar, bus);
+               dmar_ensure_ctx_page(dmar, PCI_RID2BUS(rid));
                ctx1 = dmar_get_ctx_alloc(dmar, rid);
 
                if (id_mapped) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to