[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4d54e620-abb9-4a36-bab0-3970c7e30a5f@arm.com>
Date: Tue, 27 May 2025 11:19:22 +0100
From: Suzuki K Poulose <suzuki.poulose@....com>
To: Leo Yan <leo.yan@....com>, Yuanfang Zhang <quic_yuanfang@...cinc.com>
Cc: Mike Leach <mike.leach@...aro.org>, James Clark <james.clark@...aro.org>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
kernel@....qualcomm.com, linux-arm-msm@...r.kernel.org,
coresight@...ts.linaro.org, linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6 2/2] coresight: add coresight Trace Network On Chip
driver
On 23/05/2025 09:56, Leo Yan wrote:
> On Fri, May 23, 2025 at 04:08:58PM +0800, Yuanfang Zhang wrote:
>
> [...]
>
>>>> +static int trace_noc_init_default_data(struct trace_noc_drvdata *drvdata)
>>>> +{
>>>> + int atid;
>>>> +
>>>> + atid = coresight_trace_id_get_system_id();
>>>> + if (atid < 0)
>>>> + return atid;
>>>> +
>>>> + drvdata->atid = atid;
>>>
>>> Do you need to expose this via sysfs ? Otherwise, how can you map
>>> a trace to a TNOC at decoding ?
>>
>> yes, need to expose the atid via sysfs, but it better to expose it on source driver which connect with
>> this TNOC. so dont expose it on this driver.
But why ? How does that work ? The packets that come via TNOC
(irrespective of the source(s)) will have the same ATID as that of the
TNOC. So :
1) How does it help if the source exports the ID that was allocated in
the TNOC driver ?
2) How does the source driver know the TraceID for exposing via sysfs ?
Does it expose its own traceid ?
>
> If so, why the ID is not maintained in coresight_path::trace_id?
>
> A source device allocates ID and maintains in coresight path, then
> this ID is passed (when enabling the link) to TNOC driver to consume it.
Good question, since we have the "path" maintaining the TraceID, we
should use that here for the TNOC. But the other question is, can there
be multiple sources connected to a single TNOC ? (I am guessing, yes!.
And thus it may not work with what you are proposing.
Cheers
Suzuki
>
> Thanks,
> Leo
Powered by blists - more mailing lists