linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH kernel 0/2] irq: Add reference counting to IRQ mappings
@ 2020-10-27  9:06 Alexey Kardashevskiy
  2020-10-27  9:06 ` [RFC PATCH kernel 1/2] " Alexey Kardashevskiy
  2020-10-27  9:06 ` [RFC PATCH kernel 2/2] powerpc/pci: Remove LSI mappings on device teardown Alexey Kardashevskiy
  0 siblings, 2 replies; 6+ messages in thread
From: Alexey Kardashevskiy @ 2020-10-27  9:06 UTC (permalink / raw)
  To: linuxppc-dev
  Cc: Rob Herring, Alexey Kardashevskiy, Marc Zyngier, linux-kernel,
	Qian Cai, Cédric Le Goater, Frederic Barrat,
	Oliver O'Halloran, Thomas Gleixner, Michal Suchánek


This is an attempt to fix a bug with PCI hot unplug with
a bunch of PCIe bridges and devices sharing INTx.

This did not hit us before as even if we did not
call irq_domain_ops::unmap, the platform (PowerVM) would not
produce an error but with POWER9's XIVE interrupt controller
there is an error if unmap is not called at all (2/2 fixes that)
or an error if we unmapped an interrupt which is still in use
by another device (1/2 fixes that).

One way of fixing that is doing reference counting in
the POWERPC code but since there is a kobj in irq_desc
already, I thought I'll give it a try first.


This is based on sha1
4525c8781ec0 Linus Torvalds "scsi: qla2xxx: remove incorrect sparse #ifdef".

Please comment. Thanks.



Alexey Kardashevskiy (1):
  irq: Add reference counting to IRQ mappings

Oliver O'Halloran (1):
  powerpc/pci: Remove LSI mappings on device teardown

 arch/powerpc/kernel/pci-common.c | 21 +++++++++++++++++++
 kernel/irq/irqdesc.c             | 35 +++++++++++++++++++++-----------
 kernel/irq/irqdomain.c           | 27 ++++++++++++------------
 3 files changed, 57 insertions(+), 26 deletions(-)

-- 
2.17.1


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

end of thread, other threads:[~2020-11-13 12:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27  9:06 [RFC PATCH kernel 0/2] irq: Add reference counting to IRQ mappings Alexey Kardashevskiy
2020-10-27  9:06 ` [RFC PATCH kernel 1/2] " Alexey Kardashevskiy
2020-10-27 16:09   ` Marc Zyngier
2020-10-29  5:04     ` Alexey Kardashevskiy
2020-10-27  9:06 ` [RFC PATCH kernel 2/2] powerpc/pci: Remove LSI mappings on device teardown Alexey Kardashevskiy
2020-11-13 12:06   ` Cédric Le Goater

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