All of lore.kernel.org
 help / color / mirror / Atom feed
* pciehp
@ 2013-12-13 14:35 Ludwig Petrosyan
  2013-12-13 16:54 ` pciehp Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Ludwig Petrosyan @ 2013-12-13 14:35 UTC (permalink / raw)
  To: linux-pci

Hi All

we are working at DESY (Deutsches Elektronen-Synchrotron, Hamburg Germany)
and involved in evaluation of MTCA.4 standard (MTCA for Physics)
I have question concerning PCIe hotplag:
The Hot-Swap is working, I mean, if there was a PCIe endpoint card in
the PCIe slot this module could be later removed and inserted back in
running system. But if the Slot was empty and one insert the new PCIe
endpoint card in slot, the card will be connected in PCIe bus (I could
see it in lspci) but memory not enabled. Only after rebooting of the OS
the memory will be enabled.
For MTCA.4 standard it is very important to have possibility to add new
PCIe endpoint card in running system.
So, my question is:
 is there some OS boot parameter I could reserve memory for all PCIe
ports which hase slot implemented (if slot implemented on the PCIe
switch or RootComplex port this means later could be some PCIe endpoint
card inserted)

with best regards

Ludwig Petrosyan

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

* Re: pciehp
  2013-12-13 14:35 pciehp Ludwig Petrosyan
@ 2013-12-13 16:54 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2013-12-13 16:54 UTC (permalink / raw)
  To: Ludwig Petrosyan; +Cc: linux-pci@vger.kernel.org

On Fri, Dec 13, 2013 at 7:35 AM, Ludwig Petrosyan
<ludwig.petrosyan@desy.de> wrote:
> Hi All
>
> we are working at DESY (Deutsches Elektronen-Synchrotron, Hamburg Germany)
> and involved in evaluation of MTCA.4 standard (MTCA for Physics)
> I have question concerning PCIe hotplag:
> The Hot-Swap is working, I mean, if there was a PCIe endpoint card in
> the PCIe slot this module could be later removed and inserted back in
> running system. But if the Slot was empty and one insert the new PCIe
> endpoint card in slot, the card will be connected in PCIe bus (I could
> see it in lspci) but memory not enabled. Only after rebooting of the OS
> the memory will be enabled.
> For MTCA.4 standard it is very important to have possibility to add new
> PCIe endpoint card in running system.
> So, my question is:
>  is there some OS boot parameter I could reserve memory for all PCIe
> ports which hase slot implemented (if slot implemented on the PCIe
> switch or RootComplex port this means later could be some PCIe endpoint
> card inserted)

If a Root Port or switch Downstream Port has the PCI_EXP_SLTCAP_HPC
(Slot Capabilities Hot-Plug Capable) bit is set, Linux should reserve
2MB for the port's MMIO aperture.  That isn't very much, but you can
change that amount with the "pci=hpmemsize=" boot option.  And I think
if you have firmware that configures a larger aperture, Linux will
keep that.

A complete dmesg log and "lspci -vv" output would be the place to
start investigating if Linux isn't doing this correctly.

Bjorn

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

end of thread, other threads:[~2013-12-13 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-13 14:35 pciehp Ludwig Petrosyan
2013-12-13 16:54 ` pciehp Bjorn Helgaas

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.