linux-stable/drivers/soc
Sean Anderson ff50716b7d soc: fsl: qbman: Use raw spinlock for cgr_lock
[ Upstream commit fbec4e7fed ]

smp_call_function always runs its callback in hard IRQ context, even on
PREEMPT_RT, where spinlocks can sleep. So we need to use a raw spinlock
for cgr_lock to ensure we aren't waiting on a sleeping task.

Although this bug has existed for a while, it was not apparent until
commit ef2a8d5478 ("net: dpaa: Adjust queue depth on rate change")
which invokes smp_call_function_single via qman_update_cgr_safe every
time a link goes up or down.

Fixes: 96f413f476 ("soc/fsl/qbman: fix issue in qman_delete_cgr_safe()")
CC: stable@vger.kernel.org
Reported-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Closes: https://lore.kernel.org/all/20230323153935.nofnjucqjqnz34ej@skbuf/
Reported-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Closes: https://lore.kernel.org/linux-arm-kernel/87wmsyvclu.fsf@pengutronix.de/
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Camelia Groza <camelia.groza@nxp.com>
Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 12:51:27 +02:00
..
actions
amlogic meson-mx-socinfo: Fix refcount leak in meson_mx_socinfo_init 2022-08-25 11:17:33 +02:00
aspeed
atmel
bcm soc: brcmstb: pm-arm: Fix refcount leak and __iomem leak bugs 2022-09-15 12:04:55 +02:00
dove
fsl soc: fsl: qbman: Use raw spinlock for cgr_lock 2024-04-13 12:51:27 +02:00
gemini
imx
ixp4xx soc: ixp4xx/npe: Fix unused match warning 2022-07-21 20:59:27 +02:00
lantiq
mediatek Revert "ASoC: mediatek: Check for error clk pointer" 2022-02-08 18:24:28 +01:00
qcom soc: qcom: llcc: Handle a second device without data corruption 2023-11-20 10:30:12 +01:00
renesas pmdomain: renesas: r8a77980-sysc: CR7 must be always on 2024-03-01 13:13:34 +01:00
rockchip soc: rockchip: Fix refcount leak in rockchip_grf_init 2022-06-14 18:11:53 +02:00
samsung
sunxi soc: sunxi: sram: Fix debugfs info for A64 SRAM C 2022-10-05 10:37:44 +02:00
tegra soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:29:37 +01:00
ti soc: ti: knav_qmss_queue: Fix PM disable depth imbalance in knav_queue_probe 2023-01-18 11:40:50 +01:00
ux500 ARM: ux500: do not directly dereference __iomem 2023-01-18 11:41:46 +01:00
versatile
xilinx
zte
Kconfig
Makefile