All of lore.kernel.org
 help / color / mirror / Atom feed
* PCI service interrupt handlers & access to PCI config space
@ 2021-04-10 12:28 Pali Rohár
  2021-04-10 14:25 ` Lukas Wunner
  0 siblings, 1 reply; 9+ messages in thread
From: Pali Rohár @ 2021-04-10 12:28 UTC (permalink / raw)
  To: linux-pci

Hello!

I see that more PCI service drivers in their interrupt handlers are
accessing PCI config space.

E.g. in PCIe Hot Plug interrupt handler pciehp_isr handler is called
pcie_capability_read_word() function.

It is correct? Because these capability functions are protected by
pci_lock_config() / pci_unlock_config() calls.

And what would happen when during execution of reading or writing to
PCIe config space (e.g. via pcie_capability_read_word()) is triggered
PCIe HP interrupt? Would not enter interrupt handler function in
deadlock (waiting for unlocking config space)?

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

end of thread, other threads:[~2021-04-13  9:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-10 12:28 PCI service interrupt handlers & access to PCI config space Pali Rohár
2021-04-10 14:25 ` Lukas Wunner
2021-04-10 15:17   ` Pali Rohár
2021-04-10 16:26     ` Lukas Wunner
2021-04-12  2:25       ` Keith Busch
2021-04-12 14:04         ` Pali Rohár
2021-04-12 15:09           ` Keith Busch
2021-04-13  9:33             ` Pali Rohár
2021-04-13  9:35       ` Pali Rohár

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.