Skip to content

Commit b8ae88e

Browse files
eric-chJassiBrar
authored andcommitted
mailbox: qcom-ipcc: flag IRQ NO_THREAD
PREEMPT_RT forces qcom-ipcc's handler to be threaded with interrupts enabled, which triggers a warning in __handle_irq_event_percpu(): irq 173 handler irq_default_primary_handler+0x0/0x10 enabled interrupts WARNING: CPU: 0 PID: 77 at kernel/irq/handle.c:161 __handle_irq_event_percpu+0x4c4/0x4d0 Mark it IRQF_NO_THREAD to avoid running the handler in a threaded context with threadirqs or PREEMPT_RT enabled. Signed-off-by: Eric Chanudet <[email protected]> Acked-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 8ac1111 commit b8ae88e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/mailbox/qcom-ipcc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ static int qcom_ipcc_probe(struct platform_device *pdev)
308308
goto err_mbox;
309309

310310
ret = devm_request_irq(&pdev->dev, ipcc->irq, qcom_ipcc_irq_fn,
311-
IRQF_TRIGGER_HIGH | IRQF_NO_SUSPEND, name, ipcc);
311+
IRQF_TRIGGER_HIGH | IRQF_NO_SUSPEND |
312+
IRQF_NO_THREAD, name, ipcc);
312313
if (ret < 0) {
313314
dev_err(&pdev->dev, "Failed to register the irq: %d\n", ret);
314315
goto err_req_irq;

0 commit comments

Comments
 (0)