aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bge
diff options
context:
space:
mode:
authorPyun YongHyeon <yongari@FreeBSD.org>2012-05-23 03:35:08 +0000
committerPyun YongHyeon <yongari@FreeBSD.org>2012-05-23 03:35:08 +0000
commit00b6d640df54a8335ec8495073fe790eaabfc165 (patch)
treeb6cbb1ce6a565d082a28458dd5d25abcacd82757 /sys/dev/bge
parent9293eb399ede0676a9092f80b18df2500b012323 (diff)
downloadsrc-00b6d640df54a8335ec8495073fe790eaabfc165.tar.gz
src-00b6d640df54a8335ec8495073fe790eaabfc165.zip
Don't force max payload size to 128. Root complex and Endpoint will
negotiate with each other on the TLP payload size so blindly forcing the size to 128 can cause a completion error which in turn will stop device. Reported by: Geans Pin < geanspin <> broadcom dot com > MFC after: 5 days
Notes
Notes: svn path=/head/; revision=235821
Diffstat (limited to 'sys/dev/bge')
-rw-r--r--sys/dev/bge/if_bge.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c
index 555721862463..1f4e5a8d2414 100644
--- a/sys/dev/bge/if_bge.c
+++ b/sys/dev/bge/if_bge.c
@@ -3638,8 +3638,6 @@ bge_reset(struct bge_softc *sc)
/* Clear enable no snoop and disable relaxed ordering. */
devctl &= ~(PCIM_EXP_CTL_RELAXED_ORD_ENABLE |
PCIM_EXP_CTL_NOSNOOP_ENABLE);
- /* Set PCIE max payload size to 128. */
- devctl &= ~PCIM_EXP_CTL_MAX_PAYLOAD;
pci_write_config(dev, sc->bge_expcap + PCIR_EXPRESS_DEVICE_CTL,
devctl, 2);
/* Clear error status. */