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
This commit is contained in:
parent
9293eb399e
commit
00b6d640df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235821
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue