kernel_samsung_a53x/drivers/watchdog
Jerry Hoemann 48b12d7256 watchdog/hpwdt: Only claim UNKNOWN NMI if from iLO
[ Upstream commit dced0b3e51dd2af3730efe14dd86b5e3173f0a65 ]

Avoid unnecessary crashes by claiming only NMIs that are due to
ERROR signalling or generated by the hpwdt hardware device.

The code does this, but only for iLO5.

The intent was to preserve legacy, Gen9 and earlier, semantics of
using hpwdt for error containtment as hardware/firmware would signal
fatal IO errors as an NMI with the expectation of hpwdt crashing
the system.  Howerver, these IO errors should be received by hpwdt
as an NMI_IO_CHECK.  So the test is overly permissive and should
not be limited to only ilo5.

We need to enable this protection for future iLOs not matching the
current PCI IDs.

Fixes: 62290a5c194b ("watchdog: hpwdt: Claim NMIs generated by iLO5")
Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231213215340.495734-2-jerry.hoemann@hpe.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:42 +01:00
..
acquirewdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
advantechwdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alim1535_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alim7101_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ar7_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
arm_smc_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
armada_37xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asm9260_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aspeed_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at91rm9200_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at91sam9_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
at91sam9_wdt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ath79_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atlas7_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm47xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm63xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm2835_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm7038_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm_kona_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bd70528_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
booke_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cadence_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
coh901327_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpu5wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpwd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
da9052_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
da9055_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
da9062_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
da9063_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
davinci_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
diag288_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
digicolor_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dw_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ebc-c384_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ep93xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eurotechwdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
f71808e_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ftwdt010_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gef_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
geodewdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpwdt.c watchdog/hpwdt: Only claim UNKNOWN NMI if from iLO 2024-11-18 12:12:42 +01:00
i6300esb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ib700wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmasr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ie6xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imgpdc_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx2_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx7ulp_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx_sc_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
indydog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel-mid_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_watchdog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel_scu_watchdog.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iop_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
it87_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
it8712f_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iTCO_vendor.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iTCO_vendor_support.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
iTCO_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ixp4xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
jz4740_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kempld_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lantiq_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loongson1_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lpc18xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
m54xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
machzwd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
max63xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
max77620_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mei_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mena21_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
menf21bmc_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
menz69_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson_gxbb_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
meson_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mixcomwd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mlx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
moxart_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mpc8xxx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mt7621_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtx-1_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mv64x60_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ni903x_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nic7018_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
npcm_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nv_tco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nv_tco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
octeon-wdt-main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
octeon-wdt-nmi.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
of_xilinx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
omap_wdt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
orion_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pc87413_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcwd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcwd_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pcwd_usb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pic32-dmt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pic32-wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pika_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pm8916_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pnx833x_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pnx4008_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pretimeout_noop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pretimeout_panic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom-wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rave-sp-wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rc32434_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdc321x_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
renesas_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
retu_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
riowd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rn5t618_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rt2880_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtd119x_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rti_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rza_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2410_builtin_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2410_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
s3c2410_wdt.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sa1100_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sama5d4_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sb_wdog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbc60xxwdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbc7240_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbc8360.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbc_epx_c3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbc_fitpc2_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sbsa_gwdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sc520_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sc1200wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sch311x_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
scx200_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
shwdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sirfsoc_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sl28cpld_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smsc37b787_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
softdog.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sp805_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sp5100_tco.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sp5100_tco.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sprd_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
st_lpc_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stm32_iwdg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stmp3xxx_rtc_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stpmic1_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sun4v_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunxi_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tangox_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tqmx86_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ts72xx_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ts4800_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
twl4030_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
txx9wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uniphier_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ux500_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
via_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
visconti_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
w83627hf_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
w83877f_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
w83977f_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wafer5823wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
watchdog_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
watchdog_core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
watchdog_dev.c watchdog: set cdev owner before adding 2024-11-18 12:12:42 +01:00
watchdog_pretimeout.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
watchdog_pretimeout.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wd501p.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wdat_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wdrtas.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wdt285.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wdt977.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wdt_pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wm831x_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
wm8350_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xen_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ziirave_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zx2967_wdt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00