]> 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>
Wed, 5 May 2021 00:53:55 +0000 (20:53 -0400)
commit22b9f618e873140127570e629c19e25d13edc568
tree8ba7e3742d679ad56cedf0a58f6efa0ef8cb05b6
parent972fcfb34b0d84dc1d869c351da8e19c702a3c35
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)
sys/dev/pci/pci.c