]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set PCIe device's Max_Payload_Size to match PCIe root's.
authorAlexander Motin <mav@FreeBSD.org>
Mon, 5 Apr 2021 14:34:40 +0000 (10:34 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Mon, 5 Apr 2021 14:34:40 +0000 (10:34 -0400)
commit5a898b2b78ce04d608bbaaa0813424b11f921ae7
treeae4cab5edfbb48787817391d0781cf1ed80ed5fb
parentb8639a1098a70e8ca8ec5880d2337fed04e4243a
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.
sys/dev/pci/pci.c