From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Bru Date: Tue, 09 Nov 2010 17:10:54 +0000 Subject: pciehp: Setting maxpayload after hot_plug ? Message-Id: <4CD9809E.7070909@bull.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello, I have a concern around hot-plugging a pci adapter that sits behind a pci switch port, using the pciehp driver: . When I boot with the adapter plugged, the maxpayload is set to 256 (as the pci switch upstream port is connected to a port that has the capability maxpayload%6. . In case I hot-replace this adapter, after hot-plugging the adapter, the maxpayload value is set to the default value (128). . In case there was no adapter plugged at boot time, the corresponding pci port has a default maxpayload8, and after hot-plugging the board, the pci port and the board stay with maxpayload8. So, here is my question: should the pciehp driver be aware of the maxpayload, and re-initialize it in the pci bus hierarchy and on the board (has it is done I suppose by BIOS initialization when the board is present ) ? Else, who is in charge to reinitialize the maxpayload to the right value ? Thanks in advance for your help. Xavier