From: Jie Gan <jie.gan@oss.qualcomm.com>
To: sashiko-reviews@lists.linux.dev
Cc: robh@kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH] arm64: dts: qcom: shikra: Switch CPU ETMs to MMIO-based probing
Date: Tue, 22 Sep 2026 11:27:49 +0800 [thread overview]
Message-ID: <6b8bf779-6494-45b7-9b87-dc62aa4a7220@oss.qualcomm.com> (raw)
In-Reply-To: <20260922031703.54C521F000FF@smtp.kernel.org>
On 9/22/2026 11:17 AM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] arm64: dts: shikra: missing arm,coresight-loses-context-with-cpu property
> --
>
> commit aab8605634d60b3bebc7a736fcec36f07d87f859
> Author: Jie Gan <jie.gan@oss.qualcomm.com>
>
> arm64: dts: qcom: shikra: Switch CPU ETMs to MMIO-based probing
>
> The etm0-etm3 nodes are declared with "arm,coresight-etm4x-sysreg"
> but do not implement self-hosted system-register trace access on
> this SoC. The CPU ETMs have a memory-mapped aperture, so switch each
> node to the standard "arm,coresight-etm4x", "arm,primecell" compatible
> with its MMIO reg range.
>
>> diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
>> index c1f06f692f664..62bacf749241f 100644
>> --- a/arch/arm64/boot/dts/qcom/shikra.dtsi
>> +++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
> [ ... ]
>> @@ -3218,6 +3150,24 @@ cti@9020000 {
>> label = "cti_apss_pe0";
>> };
>>
>> + etm@9040000 {
>> + compatible = "arm,coresight-etm4x", "arm,primecell";
>
> [Severity: Medium]> Will this omission cause ETM tracing to silently
stop functioning during CPU
> deep idle?
>
> By switching to MMIO without adding the arm,coresight-loses-context-with-cpu
> property, the coresight driver will skip allocating the save state.
>
> drivers/hwtracing/coresight/coresight-etm4x-core.c:etm4_add_coresight_dev() {
> ...
> else if (pm_save_enable == PARAM_PM_SAVE_FIRMWARE)
> pm_save = coresight_loses_context_with_cpu(dev);
> ...
> }
Currently, we are not enabling the CPU SAVE/RESTORE in HLOS driver on
QCOM platforms.
Thanks,
Jie
>
> Should the arm,coresight-loses-context-with-cpu property be added to these
> new MMIO etm nodes?
>
prev parent reply other threads:[~2026-09-22 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 3:09 [PATCH] arm64: dts: qcom: shikra: Switch CPU ETMs to MMIO-based probing Jie Gan
2026-09-22 3:17 ` sashiko-bot
2026-09-22 3:27 ` Jie Gan [this message]
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=6b8bf779-6494-45b7-9b87-dc62aa4a7220@oss.qualcomm.com \
--to=jie.gan@oss.qualcomm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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