[PATCH] mailbox: pcc: Use threaded IRQ for shared platform IRQs
Sudeep Holla
sudeep.holla at kernel.org
Mon Nov 23 08:45:59 PST 2026
Hi Omkar,
Next time, please use get_maintainer.pl that would list proper lists and
maintainers.
On Mon, Nov 23, 2026 at 09:42:31PM +0530, Omkar Anand Kulkarni wrote:
> PCC platform interrupts can be shared with other ACPI interrupt
> consumers. One observed case is a PCC platform interrupt sharing the
> same hardware IRQ line with ACPI GED.
>
Hmm, interesting.
> ACPI GED requests shared interrupts with request_threaded_irq() and
> IRQF_ONESHOT. If PCC requests the same shared IRQ without IRQF_ONESHOT,
> genirq rejects the second registration because the shared IRQ users do
> not agree on oneshot semantics.
>
Fair enough.
> Commit 673327028cd6 ("mailbox: pcc: Remove spurious IRQF_ONESHOT usage")
> removed IRQF_ONESHOT from the PCC request because PCC was using
> devm_request_irq(), and IRQF_ONESHOT is only valid with a threaded
> handler.
>
Indeed, but ..
> Fix the shared platform IRQ case by requesting it with
> devm_request_threaded_irq() and IRQF_SHARED | IRQF_ONESHOT. Keep
> non-shared platform IRQs on devm_request_irq().
>
The issue is multiple PCC sub-space can share the interrupt line.
By moving it into threaded irq, access to the IRQ related registers
may need to be protected which is otherwise not required and is totally
unnecessary. I need to think through it to see if it can be done just
within the handler instead of register level locking.
Or am I overthinking here ? Let me read the code, PCC part of ACPI spec
and think.
--
Regards,
Sudeep
More information about the linux-arm-kernel
mailing list