Centos-kernel-stream-9/drivers/misc
Myron Stowe 8da3558acc misc: pci_endpoint_test: Do not write status in IRQ handler
JIRA: https://issues.redhat.com/browse/RHEL-2570
Upstream Status: 168e6f62e4298815125591ff9c85d374b2a93c6c

commit 168e6f62e4298815125591ff9c85d374b2a93c6c
Author: Damien Le Moal <dlemoal@kernel.org>
Date:   Sat Apr 15 11:35:41 2023 +0900

    misc: pci_endpoint_test: Do not write status in IRQ handler

    pci_endpoint_test_irqhandler() always rewrites the status register when an
    IRQ is raised, either as-is if STATUS_IRQ_RAISED is not set, or with
    STATUS_IRQ_RAISED cleared if that flag is set. The first case creates a
    race window with the endpoint side, meaning that the host side test driver
    may end up reading what it just wrote, thus losing the real status as set
    by the endpoint side before raising the next interrupt.  This can prevent
    detecting that the STATUS_IRQ_RAISED flag was set by the endpoint.

    Remove this race window by not clearing the STATUS_IRQ_RAISED status flag
    and not rewriting that register for every IRQ received.

    Link: https://lore.kernel.org/r/20230415023542.77601-17-dlemoal@kernel.org
    Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
    Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
    Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
    Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>

Signed-off-by: Myron Stowe <mstowe@redhat.com>
2023-09-19 13:32:23 -06:00
..
altera-stapl
bcm-vk
c2port
cardreader misc: rtsx: rts522a rts5228 rts5261 support Runtime PM 2022-09-30 13:39:06 -04:00
cb710
cxl driver core: fix up some missing class.devnode() conversions. 2023-04-28 10:16:08 -04:00
echo
eeprom
genwqe driver core: make struct class.devnode() take a const * 2023-04-28 10:02:19 -04:00
habanalabs
ibmasm
lis3lv02d
lkdtm powerpc/64s: Move hash MMU support code under CONFIG_PPC_64S_HASH_MMU 2022-10-12 07:27:11 -04:00
mei mei: pxp: support matching with a gfx discrete card 2022-12-05 15:40:17 +01:00
ocxl driver core: fix up some missing class.devnode() conversions. 2023-04-28 10:16:08 -04:00
pvpanic
sgi-gru
sgi-xp
ti-st
uacce iommu: Remove SVM_FLAG_SUPERVISOR_MODE support 2023-03-09 16:34:03 -07:00
vmw_vmci VMCI: Use threaded irqs instead of tasklets 2023-08-07 15:19:31 +05:30
Kconfig
Makefile
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
dw-xdata-pcie.c
enclosure.c
fastrpc.c
hisi_hikey_usb.c
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
kgdbts.c
lattice-ecp3-config.c
open-dice.c
pch_phub.c
pci_endpoint_test.c misc: pci_endpoint_test: Do not write status in IRQ handler 2023-09-19 13:32:23 -06:00
phantom.c
qcom-coincell.c
sram-exec.c
sram.c misc: sram: Add compatible string for Tegra234 SYSRAM 2022-12-15 08:03:12 -07:00
sram.h misc: sram: Only map reserved areas in Tegra SYSRAM 2022-12-15 08:03:12 -07:00
tifm_7xx1.c
tifm_core.c
tsl2550.c
vmw_balloon.c mm: Convert all PageMovable users to movable_operations 2023-03-24 11:19:29 -04:00
xilinx_sdfec.c