diff options
author | yongari <yongari@FreeBSD.org> | 2010-05-07 23:05:27 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-05-07 23:05:27 +0000 |
commit | 514842f4e966ef1f4df982018814c034f2d7e62b (patch) | |
tree | d1323a88ca87f0815b149abee13a27c548a64b19 /sys/dev | |
parent | 7b5a89958997969178e7eae068188b900a502f8e (diff) | |
download | FreeBSD-src-514842f4e966ef1f4df982018814c034f2d7e62b.zip FreeBSD-src-514842f4e966ef1f4df982018814c034f2d7e62b.tar.gz |
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 >
MFC after: 5 days
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/re/if_re.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 8091506..ef68f14 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -1162,9 +1162,11 @@ re_attach(device_t dev) msic = 0; if (pci_find_extcap(dev, PCIY_EXPRESS, ®) == 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); |