linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marc Zyngier <maz@kernel.org>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: nm@ti.com, t-kristo@ti.com, ssantosh@kernel.org,
	tglx@linutronix.de, jason@lakedaemon.net, robh+dt@kernel.org,
	lokeshvutla@ti.com, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/2] irqchip/ti-sci-inta: Add support for unmapped event handling
Date: Wed, 30 Sep 2020 14:13:29 +0100	[thread overview]
Message-ID: <714738536a5566c511e83dc424e94bf7@kernel.org> (raw)
In-Reply-To: <3dc2f27f-0a41-b538-11ac-970ad4310ccb@ti.com>

On 2020-09-30 11:01, Peter Ujfalusi wrote:
> On 30/09/2020 11.33, Marc Zyngier wrote:
>> On 2020-09-30 08:45, Peter Ujfalusi wrote:
>>> The DMA (BCDMA/PKTDMA and their rings/flows) events are under the 
>>> INTA's
>>> supervision as unmapped events in AM64.
>> 
>> What does "unmapped event" mean? An event that doesn't require a 
>> mapping?
>> Or an internally generated event? Or a proxy event?
>> 
>>> 
>>> In order to keep the current SW stack working, the INTA driver must
>>> replace
>>> the dev_id with it's own when a request comes for BCDMA or PKTDMA
>>> resources.
>> 
>> This seems to support my second option. Please clarify what you mean
>> exactly.
> 
> In previous devices with NAVSS we had event registers in UDMAP and in 
> rings.
> In AM64 with DMSS these event registers have been removed from the DMAs
> (rings are part of the DMAs).
> The event configuration registers in DMSS are part of the INTA and they
> under 'unmapped events'.

Is "unmapped events" an official TI wording, described as such in the 
TRM?

> 
> In essence the difference boils down to the fact that we do not
> configure event numbers (to be consumed by INTA) for the events coming
> from DMAs, but they already have their specific offsets within INTA's
> unmapped region.

OK, so they are not "unmapped". They are just permanently mapped, aren't 
they?

> With this change in hardware we can not use the DMA's ti_sci device
> identification number to configure these events to produce interrupts,
> they are under INTA.
> 
> The only difference in ti_sci API is that for DMA related
> interrupts/events we need to use the INTA's ti_sci device 
> identification
> number in place of the DMA component's.
> 
> I would say that I would describe the unmapped events with your first
> option. They kind of not require mapping from the source to INTA. The
> source of the event (DMA, ring) is pre-configured to send specific
> events to target the unmapped event area at specific offsets.

If they truly don't require a mapping, why is this patch actually 
mapping
them with the INTA as a source? Your explanation doesn't make much sense
to me.

> 
> But in the unmapped event register one can still define either:
> - to send a global event (to be used as trigger or for other purposes)
> - to generate interrupt (in a similar way as the IMAP registers were
> doing in NAVSS).
> 
> I'm not sure if this answers your question...

I still believe the term "unmapped event" doesn't describe what we have
here. These events seems, at least from what the patch does, internally
generated by the INTA.

Irrespective of this, my other comments still stand.

         M.
-- 
Jazz is not dead. It just smells funny...

  reply	other threads:[~2020-09-30 13:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-30  7:45 [PATCH v2 0/2] irqchip/ti-sci-inta: Support for unmapped events Peter Ujfalusi
2020-09-30  7:45 ` [PATCH v2 1/2] dt-bindings: irqchip: ti,sci-inta: Update for unmapped event handling Peter Ujfalusi
2020-09-30  7:45 ` [PATCH v2 2/2] irqchip/ti-sci-inta: Add support " Peter Ujfalusi
2020-09-30  8:33   ` Marc Zyngier
2020-09-30 10:01     ` Peter Ujfalusi
2020-09-30 13:13       ` Marc Zyngier [this message]
2020-10-01 11:42         ` Peter Ujfalusi
2020-10-09  8:58           ` Peter Ujfalusi
2020-10-12  7:31             ` Marc Zyngier
2020-10-12 11:52               ` Peter Ujfalusi
2020-10-19 11:52     ` Peter Ujfalusi

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=714738536a5566c511e83dc424e94bf7@kernel.org \
    --to=maz@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jason@lakedaemon.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lokeshvutla@ti.com \
    --cc=nm@ti.com \
    --cc=peter.ujfalusi@ti.com \
    --cc=robh+dt@kernel.org \
    --cc=ssantosh@kernel.org \
    --cc=t-kristo@ti.com \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).