Author: yongari
Date: Wed May 12 17:34:51 2010
New Revision: 207980
URL: http://svn.freebsd.org/changeset/base/207980

Log:
  MFC r207763:
    Don't change PCIe maximum read request size to 2048 on RTL810x
    controllers. It caused device timeouts.
  
    Reported by:        McLone < mclone <> gmail dot com >
    Tested by:  McLone < mclone <> gmail dot com >

Modified:
  stable/7/sys/dev/re/if_re.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/re/if_re.c
==============================================================================
--- stable/7/sys/dev/re/if_re.c Wed May 12 17:30:46 2010        (r207979)
+++ stable/7/sys/dev/re/if_re.c Wed May 12 17:34:51 2010        (r207980)
@@ -1163,9 +1163,11 @@ re_attach(device_t dev)
        msic = 0;
        if (pci_find_extcap(dev, PCIY_EXPRESS, &reg) == 0) {
                sc->rl_flags |= RL_FLAG_PCIE;
-               /* Set PCIe maximum read request size to 2048. */
-               if (pci_get_max_read_req(dev) < 2048)
-                       pci_set_max_read_req(dev, 2048);
+               if (devid != RT_DEVICEID_8101E) {
+                       /* Set PCIe maximum read request size to 2048. */
+                       if (pci_get_max_read_req(dev) < 2048)
+                               pci_set_max_read_req(dev, 2048);
+               }
                msic = pci_msi_count(dev);
                if (bootverbose)
                        device_printf(dev, "MSI count : %d\n", msic);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to