From: Rajesh Shah <rajesh.shah@intel.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: pci express switch driver
Date: Thu, 04 Nov 2004 22:22:11 +0000 [thread overview]
Message-ID: <20041104142211.B6685@unix-os.sc.intel.com> (raw)
In-Reply-To: <73943A6B3BEAA1468EE1A4A090129F436DABCD@corpbridge.corp.idt.com>
On Wed, Nov 03, 2004 at 05:52:00PM -0800, Sadik, Pallathu wrote:
> Dely, Rajesh and Greg,
>
> Why special care is needed for hot-plugging the upstream port?
> As I understand, even if hot-plug signals are provided on the upstream
> port of a switch/endpoint, the generated events gets consumed by
> the downstream port of the root complex/switch where this card is plugged.
> Hence, the mechanism to handle hot-plugging of the upstream port of
> a switch should be same as hot-plugging of the downstream port of the root
> port.
>
When you hot-insert the (upstream port of the) 2nd switch, it may
already have some devices connected to it (downstream). Also,
the switch _may_ contain hot-pluggable slots (that doesn't
appear to be the case with your motherboard). Someone needs to
collect resource requirements, program non-conflicting values
in the end devices and the summed up resource values in the
switch. This is not an issue during boot, since the system
firmware has done this already. Also, the hot-added switch
may contain IO-APICs (as it does in your case). These need
to be added too. Current hotplug drivers don't have the
code to support this.
> >
> > shpchp is used to hot-plug PCI or PCI-X devices. Both
> > drivers can run on the same system.
>
> As I mentioned above, we are planning to use two switches.
> Do I still need the shpchp in this case?
>
Your switch contains an SHPC controller, so you do need this
driver to hot-plug PCI/PCI-X devices under the switch. However,
your motherboard doesn't appear to support this.
> The PCIe hotplug protocol specifies that, when a device is
> in D1, D2 or D3hot state, the hot-plug controller generates
> a wakeup event (PM_PME) instead of an interrupt. Please see
Hmm... I thought you said the motherboard does not support
hotplug of IO devices (no attention button/indicator...).
What are you trying to do here? Put the switch and all
devices under it to a low-power state and then initiate
a hot-plug operation on an IO device?
> Is there a way to figure out whether the motherboard
> supports ACPI tables for PCIe hotplug in the above
> fashion? Is it possible to see it from the ACPI
> tables that I can get using 'acpidump' command? If it is
> not supported, is there a way I can add them?
Yes, you can dump your ACPI tables, but changing them
to support ACPI based hot-plug is non-trivial. Plus,
just updating your DSDT may not be enough, hardware
support may be needed.
Rajesh
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2004-11-04 22:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-10 2:15 pci express switch driver Sadik, Pallathu
2004-10-30 4:37 ` Greg KH
2004-11-02 1:58 ` Rajesh Shah
2004-11-03 0:42 ` Sy, Dely L
2004-11-04 1:52 ` Sadik, Pallathu
2004-11-04 22:22 ` Rajesh Shah [this message]
2004-11-04 23:40 ` Sadik, Pallathu
2004-11-05 21:57 ` Rajesh Shah
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=20041104142211.B6685@unix-os.sc.intel.com \
--to=rajesh.shah@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).