Files
linux/arch/riscv/kernel
Song Shuai c562ba719d riscv: kexec: Avoid deadlock in kexec crash path
If the kexec crash code is called in the interrupt context, the
machine_kexec_mask_interrupts() function will trigger a deadlock while
trying to acquire the irqdesc spinlock and then deactivate irqchip in
irq_set_irqchip_state() function.

Unlike arm64, riscv only requires irq_eoi handler to complete EOI and
keeping irq_set_irqchip_state() will only leave this possible deadlock
without any use. So we simply remove it.

Link: https://lore.kernel.org/linux-riscv/20231208111015.173237-1-songshuaishuai@tinylab.org/
Fixes: b17d19a531 ("riscv: kexec: Fixup irq controller broken in kexec crash path")
Signed-off-by: Song Shuai <songshuaishuai@tinylab.org>
Reviewed-by: Ryo Takakura <takakura@valinux.co.jp>
Link: https://lore.kernel.org/r/20240626023316.539971-1-songshuaishuai@tinylab.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-07-03 13:11:30 -07:00
..
2024-04-25 20:55:49 -07:00
2024-05-22 16:12:53 -07:00
2023-03-23 08:47:00 -07:00
2022-12-29 06:59:47 -08:00
2024-02-22 15:38:54 -08:00
2022-05-19 19:30:30 +02:00
2024-05-22 16:12:52 -07:00
2021-01-07 19:00:50 -08:00
2024-04-04 12:12:14 -07:00