From: Jelly Jia <Jelly.Jia@cixtech.com>
To: Thomas Gleixner <tglx@kernel.org>
Cc: vkoul@kernel.org, Frank.Li@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, robin.murphy@arm.com,
sboyd@kernel.org, bmasney+clk@redhat.com,
jbrunet+clk@baylibre.com, devicetree@vger.kernel.org,
cix-kernel-upstream@cixtech.com, dmaengine@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
joakim.zhang@cixtech.com, radu@rendec.net
Subject: Re: [PATCH v5 2/6] irqchip: Add the Sky1 AUDSS auxiliary interrupt controller
Date: Fri, 4 Dec 2026 16:48:55 +0800 [thread overview]
Message-ID: <axJ+d02+au/pMKxO@ubuntu> (raw)
In-Reply-To: <87bj72obgu.ffs@fw13>
Hi Thomas,
On Thu, Dec 03 2026, Thomas Gleixner wrote:
> On Thu, Dec 03 2026 at 11:07, Thomas Gleixner wrote:
>> On Wed, Dec 02 2026 at 20:37, Jelly Jia wrote:
>>>>> +static int sky1_audss_irq_request_resources(struct irq_data *d)
>>>>> +{
>>>>> + return try_module_get(THIS_MODULE) ? 0 : -ENODEV;
>>>>> +}
>>>>> +
>>>>> +static void sky1_audss_irq_release_resources(struct irq_data *d)
>>>>> +{
>>>>> + module_put(THIS_MODULE);
>>>>> +}
>>>>
>>>> What's the point of this exercise?
>>>
>>> These callbacks pin the IRQ driver module while a child IRQ is
>>> requested, preventing the provider from being unloaded while a DMA
>>> consumer still owns an IRQ. Runtime PM references do not pin the module.
>>> This follows the same pattern as irq-pruss-intc.c.
>>
>> Ok. I wonder if this should be made generic as that's a general life
>> time problem for all modular interrupt chip drivers. Let me think about
>> it.
>
> It's worse. module_get() on interrupt request is not sufficient because
> there still might be an interrupt mapped, even if not requested.
>
> But that's not a driver level problem. This needs to be addressed in the
> generic infrastructure.
Understood. An IRQ mapping can exist without a requested handler,
so these callbacks do not cover the full lifetime of the mapping.
Also, regarding the other points in your earlier reply:
>> INFO_AP_IRQC at offset 0x54 is an enable register, not a pending register.
>> The hardware documentation defines bits 0-7 as read/write AP DMA channel
>> interrupt enables, with a reset value of zero.
>
> Misread that.
>
>> We therefore dispatch all enabled channels and let each DMA handler
>> check its actual status. IRQ_IS_POLLED avoids spurious-IRQ accounting
>> for the expected IRQ_NONE returns. I'll clarify this in the comments.
>
> Yes, please.
I'll make the enable-versus-pending distinction explicit in the comments
and explain why we dispatch all enabled channels.
>> My understanding is that this waits until the resource accesses have
>> finished before suspend or teardown continues. This relies on GICv3's
>> ACTIVE-state support.
>
> So it works by chance and not by design.
>
> I don't think so, but this needs a big fat comment....
I'll add a prominent comment explaining the dependency on the parent
GICv3 ACTIVE-state synchronization. It will also document that all CRU
accesses and child IRQ dispatches must finish before chained_irq_exit()
deactivates the parent interrupt.
The next revision will also include the tabular alignment and line-break
fixes discussed earlier.
Thanks for taking a closer look.
Best regards,
Jelly
next prev parent reply other threads:[~2026-12-04 8:49 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 5:35 [PATCH v5 0/6] soc: cix: Add the Sky1 AUDSS DMA-350 interrupt path Jelly Jia
2026-11-20 5:35 ` [PATCH v5 1/6] dt-bindings: soc: cix: Describe the Sky1 AUDSS DMA IRQ controller Jelly Jia
2026-11-20 5:35 ` [PATCH v5 2/6] irqchip: Add the Sky1 AUDSS auxiliary interrupt controller Jelly Jia
2026-12-01 18:28 ` Thomas Gleixner
2026-12-02 12:37 ` Jelly Jia
2026-12-03 10:07 ` Thomas Gleixner
2026-12-03 11:22 ` Thomas Gleixner
2026-12-04 8:48 ` Jelly Jia [this message]
2026-11-20 5:35 ` [PATCH v5 3/6] clk: cix: Preserve Sky1 AUDSS interrupt and reset context Jelly Jia
2026-11-23 16:55 ` Brian Masney
2026-11-20 5:35 ` [PATCH v5 4/6] clk: cix: Register the Sky1 AUDSS IRQ auxiliary device Jelly Jia
2026-11-23 16:55 ` Brian Masney
2026-11-20 5:35 ` [PATCH v5 5/6] dt-bindings: dma: arm,dma-350: Document dma-channel-mask Jelly Jia
2026-11-20 5:35 ` [PATCH v5 6/6] dmaengine: arm-dma350: Honour dma-channel-mask Jelly Jia
2026-11-30 3:17 ` [PATCH v5 0/6] soc: cix: Add the Sky1 AUDSS DMA-350 interrupt path Jelly Jia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=axJ+d02+au/pMKxO@ubuntu \
--to=jelly.jia@cixtech.com \
--cc=Frank.Li@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=joakim.zhang@cixtech.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=radu@rendec.net \
--cc=robh@kernel.org \
--cc=robin.murphy@arm.com \
--cc=sboyd@kernel.org \
--cc=tglx@kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.