Kernel Newbies archive on lore.kernel.org
 help / color / Atom feed
* PCIe hotplug
@ 2020-02-13 17:40 Sadanand Warrier
  2020-02-13 17:48 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Sadanand Warrier @ 2020-02-13 17:40 UTC (permalink / raw)
  To: Kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 846 bytes --]

Hi
   I had  question about PCIe hotplug. We have hardware that is connected
to the host by means of two PCIe switches. i.e. the host sees a PCIe switch
connected to one of its buses and on the far side of that switch another
PCIe switch which has a PCIe device.
   It is possible that this device does not train its host facing PCIe
links before the server enumerates down its PCI bus and reaches those
links. It is also possible the PCIe switch to which the device is attached
has not been able to train its own links before server enumeration.
  Is PCIe hotplug built to work on schemes like this? Let us assume that
the hardware has been designed to trasmit a presence signal once the links
are trained but this could happen after the server enumeration?
  Incidentally does the server take advantage of the BIOS/UEFI enumeration?

Thanks

S

[-- Attachment #1.2: Type: text/html, Size: 964 bytes --]

<div dir="ltr">Hi<div>   I had  question about PCIe hotplug. We have hardware that is connected to the host by means of two PCIe switches. i.e. the host sees a PCIe switch connected to one of its buses and on the far side of that switch another PCIe switch which has a PCIe device.</div><div>   It is possible that this device does not train its host facing PCIe links before the server enumerates down its PCI bus and reaches those links. It is also possible the PCIe switch to which the device is attached has not been able to train its own links before server enumeration.</div><div>  Is PCIe hotplug built to work on schemes like this? Let us assume that the hardware has been designed to trasmit a presence signal once the links are trained but this could happen after the server enumeration?</div><div>  Incidentally does the server take advantage of the BIOS/UEFI enumeration?</div><div><br></div><div>Thanks</div><div><br></div><div>S</div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PCIe hotplug
  2020-02-13 17:40 PCIe hotplug Sadanand Warrier
@ 2020-02-13 17:48 ` Greg KH
  2020-02-13 19:50   ` Sadanand Warrier
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2020-02-13 17:48 UTC (permalink / raw)
  To: Sadanand Warrier; +Cc: Kernelnewbies

On Thu, Feb 13, 2020 at 12:40:59PM -0500, Sadanand Warrier wrote:
> Hi
>    I had  question about PCIe hotplug. We have hardware that is connected
> to the host by means of two PCIe switches. i.e. the host sees a PCIe switch
> connected to one of its buses and on the far side of that switch another
> PCIe switch which has a PCIe device.
>    It is possible that this device does not train its host facing PCIe
> links before the server enumerates down its PCI bus and reaches those
> links. It is also possible the PCIe switch to which the device is attached
> has not been able to train its own links before server enumeration.
>   Is PCIe hotplug built to work on schemes like this? Let us assume that
> the hardware has been designed to trasmit a presence signal once the links
> are trained but this could happen after the server enumeration?

Look at the PCIe hotplug spec, it should answer all of your questions
about this.

>   Incidentally does the server take advantage of the BIOS/UEFI enumeration?

Yes, of course, how else would the kernel be able to enumerate PCI
devices?  :)

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: PCIe hotplug
  2020-02-13 17:48 ` Greg KH
@ 2020-02-13 19:50   ` Sadanand Warrier
  0 siblings, 0 replies; 3+ messages in thread
From: Sadanand Warrier @ 2020-02-13 19:50 UTC (permalink / raw)
  To: Greg KH; +Cc: Kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 1440 bytes --]

Thank you Greg.
About the last one , it's been a while but I wasn't sure whether Linux was
going to do its own enumeration.
Of course it's best to take advantage of all the stuff done by UEFI ,
padding etc.

S

On Thu, 13 Feb 2020 at 12:48, Greg KH <greg@kroah.com> wrote:

> On Thu, Feb 13, 2020 at 12:40:59PM -0500, Sadanand Warrier wrote:
> > Hi
> >    I had  question about PCIe hotplug. We have hardware that is connected
> > to the host by means of two PCIe switches. i.e. the host sees a PCIe
> switch
> > connected to one of its buses and on the far side of that switch another
> > PCIe switch which has a PCIe device.
> >    It is possible that this device does not train its host facing PCIe
> > links before the server enumerates down its PCI bus and reaches those
> > links. It is also possible the PCIe switch to which the device is
> attached
> > has not been able to train its own links before server enumeration.
> >   Is PCIe hotplug built to work on schemes like this? Let us assume that
> > the hardware has been designed to trasmit a presence signal once the
> links
> > are trained but this could happen after the server enumeration?
>
> Look at the PCIe hotplug spec, it should answer all of your questions
> about this.
>
> >   Incidentally does the server take advantage of the BIOS/UEFI
> enumeration?
>
> Yes, of course, how else would the kernel be able to enumerate PCI
> devices?  :)
>
> thanks,
>
> greg k-h
>

[-- Attachment #1.2: Type: text/html, Size: 1900 bytes --]

<div dir="ltr"><div>Thank you Greg.</div><div>About the last one , it&#39;s been a while but I wasn&#39;t sure whether Linux was going to do its own enumeration.</div><div>Of course it&#39;s best to take advantage of all the stuff done by UEFI , padding etc.</div><div><br></div><div>S</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 13 Feb 2020 at 12:48, Greg KH &lt;<a href="mailto:greg@kroah.com">greg@kroah.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Feb 13, 2020 at 12:40:59PM -0500, Sadanand Warrier wrote:<br>
&gt; Hi<br>
&gt;    I had  question about PCIe hotplug. We have hardware that is connected<br>
&gt; to the host by means of two PCIe switches. i.e. the host sees a PCIe switch<br>
&gt; connected to one of its buses and on the far side of that switch another<br>
&gt; PCIe switch which has a PCIe device.<br>
&gt;    It is possible that this device does not train its host facing PCIe<br>
&gt; links before the server enumerates down its PCI bus and reaches those<br>
&gt; links. It is also possible the PCIe switch to which the device is attached<br>
&gt; has not been able to train its own links before server enumeration.<br>
&gt;   Is PCIe hotplug built to work on schemes like this? Let us assume that<br>
&gt; the hardware has been designed to trasmit a presence signal once the links<br>
&gt; are trained but this could happen after the server enumeration?<br>
<br>
Look at the PCIe hotplug spec, it should answer all of your questions<br>
about this.<br>
<br>
&gt;   Incidentally does the server take advantage of the BIOS/UEFI enumeration?<br>
<br>
Yes, of course, how else would the kernel be able to enumerate PCI<br>
devices?  :)<br>
<br>
thanks,<br>
<br>
greg k-h<br>
</blockquote></div></div>

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13 17:40 PCIe hotplug Sadanand Warrier
2020-02-13 17:48 ` Greg KH
2020-02-13 19:50   ` Sadanand Warrier

Kernel Newbies archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git