linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] powerpc/pci/hotplug: Discover surprise-hotplugged PCIe devices during rescan
@ 2018-09-05 15:40 Sergey Miroshnichenko
  2018-09-05 15:40 ` [PATCH 1/5] powerpc/pci: Access PCI config space directly w/o pci_dn Sergey Miroshnichenko
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Sergey Miroshnichenko @ 2018-09-05 15:40 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: linux, Sergey Miroshnichenko

This patchset allows hotplugged PCIe devices to be enumerated during a bus
rescan being issued via sysfs, when the "Presence Detect Changed" interrupt
is not available.

As a first part of our work on adding support for hotplugging PCIe bridges
full of devices without special requirement such as Hot-Plug Controller,
reservation of bus numbers and memory regions by firmware, etc., this serie
is intended to solve the first two problems from the list below:

 I   PowerNV doesn't discover new hotplugged PCIe devices
 II  EEH is falsely triggered when poking empty slots during PCIe rescan on PowerNV
 III The PCI subsystem is not prepared to runtime changes of BAR addresses
 IV  Device drivers don't track changes of their BAR addresses
 V   Move BARs of working devices to make space for new ones
 VI  Add support for PCIe bridge hotplug

Sergey Miroshnichenko (5):
  powerpc/pci: Access PCI config space directly w/o pci_dn
  powerpc/pci: Create pci_dn on demand
  powerpc/pci: Use DT to create pci_dn for root bridges only
  powerpc/powernv/pci: Enable reassigning the bus numbers
  PCI/powerpc/eeh: Add pcibios hooks for preparing to rescan

 arch/powerpc/include/asm/eeh.h               |  2 +
 arch/powerpc/kernel/eeh.c                    | 14 +++
 arch/powerpc/kernel/pci_dn.c                 | 75 ++++++++++++-----
 arch/powerpc/kernel/rtas_pci.c               | 89 ++++++++++++--------
 arch/powerpc/platforms/powernv/eeh-powernv.c | 20 +++++
 arch/powerpc/platforms/powernv/pci.c         | 55 +++++++-----
 drivers/pci/probe.c                          | 14 +++
 include/linux/pci.h                          |  2 +
 8 files changed, 197 insertions(+), 74 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2018-09-14 20:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-05 15:40 [PATCH 0/5] powerpc/pci/hotplug: Discover surprise-hotplugged PCIe devices during rescan Sergey Miroshnichenko
2018-09-05 15:40 ` [PATCH 1/5] powerpc/pci: Access PCI config space directly w/o pci_dn Sergey Miroshnichenko
2018-09-05 15:40 ` [PATCH 2/5] powerpc/pci: Create pci_dn on demand Sergey Miroshnichenko
2018-09-12 10:33   ` Benjamin Herrenschmidt
2018-09-05 15:40 ` [PATCH 3/5] powerpc/pci: Use DT to create pci_dn for root bridges only Sergey Miroshnichenko
2018-09-05 15:40 ` [PATCH 4/5] powerpc/powernv/pci: Enable reassigning the bus numbers Sergey Miroshnichenko
2018-09-12 10:35   ` Benjamin Herrenschmidt
2018-09-14 20:54     ` Sergey Miroshnichenko
2018-09-05 15:40 ` [PATCH 5/5] PCI/powerpc/eeh: Add pcibios hooks for preparing to rescan Sergey Miroshnichenko
2018-09-12 10:37   ` Benjamin Herrenschmidt

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).