Author: mav
Date: Fri Feb 19 18:15:45 2010
New Revision: 204099
URL: http://svn.freebsd.org/changeset/base/204099

Log:
  MFC r200291, r203529:
  Increase Max Read Request Size for PCIe chips from 512 to 1024 bytes.
  It gives those beasts additional 10% of write bandwidth.
  Use new helper functions to do it.

Modified:
  stable/8/sys/dev/siis/siis.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/netinet/   (props changed)

Modified: stable/8/sys/dev/siis/siis.c
==============================================================================
--- stable/8/sys/dev/siis/siis.c        Fri Feb 19 18:07:51 2010        
(r204098)
+++ stable/8/sys/dev/siis/siis.c        Fri Feb 19 18:15:45 2010        
(r204099)
@@ -231,6 +231,9 @@ siis_resume(device_t dev)
 {
        struct siis_controller *ctlr = device_get_softc(dev);
 
+       /* Set PCIe max read request size to at least 1024 bytes */
+       if (pci_get_max_read_req(dev) < 1024)
+               pci_set_max_read_req(dev, 1024);
        /* Put controller into reset state. */
        ctlr->gctl |= SIIS_GCTL_GRESET;
        ATA_OUTL(ctlr->r_gmem, SIIS_GCTL, ctlr->gctl);
_______________________________________________
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