From: Leo Yan <leo.yan@arm.com>
To: Mike Leach <mike.leach@linaro.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>,
Mao Jinlong <quic_jinlmao@quicinc.com>,
James Clark <james.clark@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Yingchao Deng <quic_yingdeng@quicinc.com>,
coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: arm: Add Qualcomm extended CTI
Date: Tue, 22 Jul 2025 15:06:59 +0100 [thread overview]
Message-ID: <20250722140659.GI3137075@e132581.arm.com> (raw)
In-Reply-To: <CAJ9a7VhLLgAak_4FB=iW0izXprM4W+RsKfHUeo=XUHh9LwtUsA@mail.gmail.com>
On Tue, Jul 22, 2025 at 01:00:18PM +0100, Mike Leach wrote:
[...]
> For a change of this magnitude to a CS component, that the ID
> registers will also have to change. This is a requirement of the
> Visible Component Architecture in the CoreSight specification.
> External tools cannot see the device tree.
>
> This is effectively no longer an ARM designed component, so the
> CoreSight specification requires that the DEVARCH register change to
> show qualcomm as the designer, and the architecture value change to
> represent this component.
> DEVID should be used to allow the driver to pick up parameters such as
> number of triggers as per the existing CTI component.
>
> If this component is Coresight compliant then the driver can use the
> ID registers to configure to the extended trigger architecture.
>
> With complete remapping of most of the registers, and the dropping of
> claim tag compatibility - which appears to be a breach of the
> CoreSight specification - it may be better to have a completely
> separate driver for this component.
Good point. I'd like to confirm with the Qualcomm team: apart from the
differences in register offsets and claim bits, does this CTI module
have exactly the same bit layout and usage as CTI standard
implementation?
If yes, then from a maintenance perspective, we probably don't want to
have two CTI drivers with identical register settings. It seems plausible
to encapsulate register access and claim logic into several functions.
void cti_reg_writel(u32 val, struct cti_drvdata *drvdata, bool relax);
u32 cti_reg_readl(struct cti_drvdata *drvdata, bool relax);
int cti_claim_device(struct cti_drvdata *drvdata);
int cti_disclaim_device(struct cti_drvdata *drvdata, bool unlocked);
Thanks,
Leo
next prev parent reply other threads:[~2025-07-22 14:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-22 8:14 [PATCH v3 0/2] Add Qualcomm extended CTI support Mao Jinlong
2025-07-22 8:14 ` [PATCH v3 1/2] dt-bindings: arm: Add Qualcomm extended CTI Mao Jinlong
2025-07-22 8:49 ` Suzuki K Poulose
2025-07-22 9:14 ` Leo Yan
2025-07-22 12:00 ` Mike Leach
2025-07-22 14:06 ` Leo Yan [this message]
2025-07-22 14:56 ` Mike Leach
2025-07-23 2:57 ` Jinlong Mao
2025-07-28 9:52 ` Mike Leach
2025-07-31 6:40 ` Jinlong Mao
2025-08-01 9:27 ` Mike Leach
2025-07-22 8:14 ` [PATCH v3 2/2] coresight: cti: Add Qualcomm extended CTI support Mao Jinlong
2025-08-04 20:49 ` Mike Leach
2025-08-05 12:20 ` Mike Leach
2025-08-06 7:11 ` Jinlong Mao
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=20250722140659.GI3137075@e132581.arm.com \
--to=leo.yan@arm.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=conor+dt@kernel.org \
--cc=coresight@lists.linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=james.clark@linaro.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mike.leach@linaro.org \
--cc=quic_jinlmao@quicinc.com \
--cc=quic_yingdeng@quicinc.com \
--cc=robh@kernel.org \
--cc=suzuki.poulose@arm.com \
/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
all inboxes | Powered by JetHome®