]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: fsl: qbman: Always disable interrupts when taking cgr_lock
authorSean Anderson <sean.anderson@linux.dev>
Mon, 11 Mar 2024 16:38:29 +0000 (12:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:32 +0000 (15:28 +0200)
commit0e6521b0f93ff350434ed4ae61a250907e65d397
treee7864b286e9130ece013c9213955006f5964725e
parent700ed41bf63ec22af3611fc32f7af4285f6aff6f
soc: fsl: qbman: Always disable interrupts when taking cgr_lock

[ Upstream commit 584c2a9184a33a40fceee838f856de3cffa19be3 ]

smp_call_function_single disables IRQs when executing the callback. To
prevent deadlocks, we must disable IRQs when taking cgr_lock elsewhere.
This is already done by qman_update_cgr and qman_delete_cgr; fix the
other lockers.

Fixes: 96f413f47677 ("soc/fsl/qbman: fix issue in qman_delete_cgr_safe()")
CC: stable@vger.kernel.org
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>
drivers/soc/fsl/qbman/qman.c