svn commit: r239918 - stable/8/sys/dev/pci

John Baldwin jhb at FreeBSD.org
Thu Aug 30 19:47:16 UTC 2012


Author: jhb
Date: Thu Aug 30 19:47:15 2012
New Revision: 239918
URL: http://svn.freebsd.org/changeset/base/239918

Log:
  MFC 239103:
  Explicitly enable busmastering on PCI-PCI bridges.  Transactions initiated
  on the secondary side of a bridge will not be propagated to the primary
  bus unless this is enabled.  Busmastering is not enabled by default (we
  have relied on firmware to set this bit to date).  The OS needs to set it
  for any bridges not configured by system firmware.

Modified:
  stable/8/sys/dev/pci/pci_pci.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (props changed)
  stable/8/sys/cddl/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/compat/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)
  stable/8/sys/dev/sound/   (props changed)
  stable/8/sys/dev/sound/pci/   (props changed)
  stable/8/sys/dev/virtio/   (props changed)
  stable/8/sys/kern/   (props changed)
  stable/8/sys/sys/   (props changed)
  stable/8/sys/vm/   (props changed)

Modified: stable/8/sys/dev/pci/pci_pci.c
==============================================================================
--- stable/8/sys/dev/pci/pci_pci.c	Thu Aug 30 19:46:38 2012	(r239917)
+++ stable/8/sys/dev/pci/pci_pci.c	Thu Aug 30 19:47:15 2012	(r239918)
@@ -582,6 +582,13 @@ pcib_attach_common(device_t dev)
      *     would be more widely routed than absolutely necessary.  We could
      *     then do a walk of the tree later and fix it.
      */
+
+    /*
+     * Always enable busmastering on bridges so that transactions
+     * initiated on the secondary bus are passed through to the
+     * primary bus.
+     */
+    pci_enable_busmaster(dev);
 }
 
 int


More information about the svn-src-all mailing list