HomeFreeBSD

Set PCIe device's Max_Payload_Size to match PCIe root's.

Description

Set PCIe device's Max_Payload_Size to match PCIe root's.

Usually on boot the MPS is already configured by BIOS. But we've
found that on hot-plug it is not true at least for our Supermicro
X11 boards. As result, mismatch between root's configuration of
256 bytes and device's default of 128 bytes cause problems for some
devices, while others seem to work fine.

MFC after: 1 month
Sponsored by: iXsystems, Inc.

(cherry picked from commit 5a898b2b78ce04d608bbaaa0813424b11f921ae7)

Details

Provenance
mavAuthored on Apr 5 2021, 2:34 PM
Parents
rG972fcfb34b0d: [fib algo] Update fib_gen counter under FIB_MOD_LOCK.
Branches
Unknown
Tags
Unknown