Jiaxun Yang a64f5fe493 irqchip/mips-gic: Use raw spinlock for gic_lock
[ Upstream commit 3d6a0e4197c04599d75d85a608c8bb16a630a38c ]

Since we may hold gic_lock in hardirq context, use raw spinlock
makes more sense given that it is for low-level interrupt handling
routine and the critical section is small.

Fixes BUG:

[    0.426106] =============================
[    0.426257] [ BUG: Invalid wait context ]
[    0.426422] 6.3.0-rc7-next-20230421-dirty #54 Not tainted
[    0.426638] -----------------------------
[    0.426766] swapper/0/1 is trying to lock:
[    0.426954] ffffffff8104e7b8 (gic_lock){....}-{3:3}, at: gic_set_type+0x30/08

Fixes: 95150ae8b330 ("irqchip: mips-gic: Implement irq_set_type callback")
Cc: stable@vger.kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Tested-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230424103156.66753-3-jiaxun.yang@flygoat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-26 15:26:48 +02:00
..
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2023-03-17 08:45:07 +01:00
2022-08-21 15:15:28 +02:00
2020-10-24 10:33:08 -07:00