All of lore.kernel.org
 help / color / mirror / Atom feed
From: Xavier Bru <xavier.bru@bull.net>
To: linux-hotplug@vger.kernel.org
Subject: pciehp: Setting maxpayload after hot_plug ?
Date: Tue, 09 Nov 2010 17:10:54 +0000	[thread overview]
Message-ID: <4CD9809E.7070909@bull.net> (raw)

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 maxpayload\x128, and after 
hot-plugging the board, the pci port and the board stay with maxpayload\x128.

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



                 reply	other threads:[~2010-11-09 17:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CD9809E.7070909@bull.net \
    --to=xavier.bru@bull.net \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.