All of lore.kernel.org
 help / color / mirror / Atom feed
* pci-ftpci100: race condition in masking/unmasking interrupts
@ 2021-08-18 11:47 Pali Rohár
  2021-09-07 11:22 ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Pali Rohár @ 2021-08-18 11:47 UTC (permalink / raw)
  To: Linus Walleij, Lorenzo Pieralisi, Rob Herring
  Cc: Marc Zyngier, linux-pci, linux-kernel

Hello!

I do not see any entry in MAINTAINERS file for pci-ftpci100.c driver, so
I'm not sure to whom should I address this issue...

During pci-aardvark review, Marc pointed one issue which is currently
available also in pci-ftpci100.c driver.

When masking or unmasking interrupts there is read-modify-write sequence
for FARADAY_PCI_CTRL2 register without any locking and is not atomic:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/pci/controller/pci-ftpci100.c?h=v5.13#n270

So there is race condition when masking/unmasking more interrupts at the
same time.

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

end of thread, other threads:[~2021-09-07 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 11:47 pci-ftpci100: race condition in masking/unmasking interrupts Pali Rohár
2021-09-07 11:22 ` Linus Walleij
2021-09-07 12:20   ` Pali Rohár
2021-09-07 16:53   ` Marc Zyngier

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.