On Mon, Jun 01, 2026 at 10:08:55AM +0800, Yingchao Deng (Consultant) wrote:
[...]
> I noticed that among the new sysfs knobs in this series, the
> integration test registers (ittrigin[1-3], ittrigout[1-3],
> ittrigoutack[1-3], ittriginack[1-3]) have no existing documentation
> for their base (index-0) counterparts, which were added long before
> this series.
Ah, thanks for pointing out the missed piece!
> Two options for patch 5/5:
>
> (a) Document only the knobs whose base versions are already
> documented (triginstatus[1-3] and trigoutstatus[1-3]).
>
> (b) Document everything in patch 5/5 — both the new indexed
> variants and the previously missing base IT register entries.
Please use option (b). Could you fold the code piece below into patch 5?
Note, we cannot merge ittrigin and ittrigin[1-3] into a single entry
because they were introduced in different kernel versions.
@Mike, if any chance you could give a review on this?
---8<---
--- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-cti
+++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-cti
@@ -134,6 +134,60 @@ KernelVersion: 5.7
Contact: Mike Leach or Mathieu Poirier
Description: (Read) read current status of output trigger signals.
+What: /sys/bus/coresight/devices/<cti-name>/regs/itctrl
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (RW) Control integration mode.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/itchin
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (Read) Read the values of the CTCHIN inputs.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/itchinack
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (Write) Write the value of the CTCHINACK input.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/ittrigin
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (Read) Read the values of the CTTRIGIN inputs.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/ittriginack
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (Write) Write the value of the CTTRIGINACK input.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/itchout
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (RW) Read or write the value of the CTCHOUT outputs.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/itchoutack
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (Read) Read the value of the CTCHOUTACK input.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/ittrigout
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (RW) Read or write the value of the CTTRIGOUT outputs.
+
+What: /sys/bus/coresight/devices/<cti-name>/regs/ittrigoutack
+Date: March 2020
+KernelVersion 5.7
+Contact: coresight(a)lists.linaro.org
+Description: (Read) Read the value of the CTTRIGOUTACK input.
+
What: /sys/bus/coresight/devices/<cti-name>/channels/trigin_attach
Date: March 2020
KernelVersion: 5.7
On Thu, May 21, 2026 at 08:16:30PM +0800, Yingchao Deng wrote:
[...]
> @@ -515,18 +543,36 @@ static struct attribute *coresight_cti_regs_attrs[] = {
> &dev_attr_appclear.attr,
> &dev_attr_apppulse.attr,
> coresight_cti_reg(triginstatus, CTITRIGINSTATUS),
> + coresight_cti_reg_index(triginstatus1, CTITRIGINSTATUS, 1),
> + coresight_cti_reg_index(triginstatus2, CTITRIGINSTATUS, 2),
> + coresight_cti_reg_index(triginstatus3, CTITRIGINSTATUS, 3),
For this patch:
Reviewed-by: Leo Yan <leo.yan(a)arm.com>
AI tool reminds to update
Documentation/ABI/testing/sysfs-bus-coresight-devices-cti, you might
need to add description with a new patch:
What: /sys/bus/coresight/devices/<cti-name>/regs/trigoutstatus[1-3]
Date: May 2026
KernelVersion: 7.2
Contact: coresight(a)lists.linaro.org
Description: (Read) read current status of QCOM extended output trigger signals.
And please add document for other new sysfs knobs.
Thanks,
Leo
Fix thread tracking when decoding Coresight trace and add a new test for
it.
Unfortunately the test has to be added as a separate binary like the
other existing Coresight workloads which needs a bit of makefile
boilerplate. Ideally it would be a builtin Perf test workload, but Perf
has a lot of dependencies and generates a lot of trace when starting up
which makes tracing tests very slow because all that has to be decoded.
Hopefully I can find a generic way to enable Perf events at the
beginning of the workload and then I can migrate everything from
tools/perf/tests/shell/coresight to Perf test workloads, but that will
have to be done as a separate change.
Signed-off-by: James Clark <james.clark(a)linaro.org>
---
James Clark (1):
perf test cs-etm: Test thread attribution
Leo Yan (1):
perf cs-etm: Queue context packets for frontend
tools/perf/tests/shell/coresight/Makefile | 1 +
.../shell/coresight/context_switch_loop/.gitignore | 1 +
.../shell/coresight/context_switch_loop/Makefile | 29 ++++
.../context_switch_loop/context_switch_loop.c | 83 ++++++++++
.../tests/shell/coresight/context_switch_thread.sh | 48 ++++++
tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 18 +-
tools/perf/util/cs-etm.c | 181 +++++++++++++--------
tools/perf/util/cs-etm.h | 5 +-
8 files changed, 295 insertions(+), 71 deletions(-)
---
base-commit: 09d355618f7ccc27ffc7fc668b2e232872962079
change-id: 20260515-james-cs-context-tracking-fix-754998bae7ed
Best regards,
--
James Clark <james.clark(a)linaro.org>
On 29/05/2026 11:26, Jie Gan wrote:
>
>
> On 2/27/2026 6:10 PM, Suzuki K Poulose wrote:
>> Hello,
>>
>>
>> On 04/02/2026 02:22, Jie Gan wrote:
>>> The DT‑binding patch adds platform‑specific compatibles for the
>>> CTCU device, and the following Qualcomm platforms are included:
>>> Kaanapali
>>> Pakala(sm8750)
>>> Hamoa(x1e80100)
>>> Glymur
>>
>> Given this is predominantly DTS changes, and there is very low chances
>> of a conflict with the binding yaml change, I would recommend this to go
>> via soc or the qcom platform tree.
>>
>> For the series:
>>
>> Acked-by: Suzuki K Poulose <suzuki.poulose(a)arm.com>
>
> Hi Suzuki,
>
> May I ask is there a chance this patch series could go through the
> CoreSight tree?
Like I said, it is mostly Qcom platform changes. So, I would leave it to
the appropriate channel
Suzuki
>
> Thanks a lot.
> Jie
>
>>
>>
>>>
>>> Since the base Coresight DT patches for the Kaanapali and Glymur
>>> platforms have not yet been applied, I created DT patches only
>>> for the Pakala and Hamoa platforms. I will submit the Kaanapali
>>> and Glymur patches once their corresponding base Coresight DT patches
>>> are merged.
>>>
>>> The Hamoa‑related patches were posted in a separate email, and I
>>> have included them in the current patch series.
>>>
>>> Link to the previous Hamoa patch series:
>>> https://lore.kernel.org/all/20251106-enable-etr-and-ctcu-for-hamoa-
>>> v2-0-cdb3a18753aa(a)oss.qualcomm.com/
>>>
>>> Signed-off-by: Jie Gan <jie.gan(a)oss.qualcomm.com>
>>> ---
>>> Changes in v3:
>>> - change back to the numeric compatible from hamoa to x1e80100.
>>> - Link to v2: https://lore.kernel.org/r/20260203-enable-ctcu-and-etr-
>>> v2-0-aacc7bd7eccb(a)oss.qualcomm.com
>>>
>>> Changes in v2:
>>> - change back to the numeric compatible from pakala to sm8750.
>>> - Link to v1: https://lore.kernel.org/r/20260203-enable-ctcu-and-etr-
>>> v1-0-a5371a2ec2b8(a)oss.qualcomm.com
>>>
>>> ---
>>> Jie Gan (3):
>>> dt-binding: document QCOM platforms for CTCU device
>>> arm64: dts: qcom: hamoa: enable ETR and CTCU devices
>>> arm64: dts: qcom: sm8750: enable ETR and CTCU devices
>>>
>>> .../bindings/arm/qcom,coresight-ctcu.yaml | 4 +
>>> arch/arm64/boot/dts/qcom/hamoa.dtsi | 160 ++++++++++
>>> + +++++++-
>>> arch/arm64/boot/dts/qcom/sm8750.dtsi | 177 ++++++++++
>>> + ++++++++++
>>> 3 files changed, 340 insertions(+), 1 deletion(-)
>>> ---
>>> base-commit: 193579fe01389bc21aff0051d13f24e8ea95b47d
>>> change-id: 20260203-enable-ctcu-and-etr-31f9e9d1088d
>>>
>>> Best regards,
>>
>
On Mon, 11 May 2026 12:19:18 +0800, Jie Gan wrote:
> coresight_add_out_conn() increments nr_outconns before calling
> devm_krealloc_array() and again before devm_kmalloc(). If either
> allocation fails, the counter is already bumped while the corresponding
> array entry is NULL or uninitialized garbage.
>
> coresight_add_in_conn() has the same problem with nr_inconns and
> devm_krealloc_array().
>
> [...]
Applied, thanks!
[1/1] coresight: platform: defer connection counter increment until alloc succeeds
https://git.kernel.org/coresight/c/1563ae33dc4f
Best regards,
--
Suzuki K Poulose <suzuki.poulose(a)arm.com>
On Fri, 29 May 2026 00:52:01 +0800, Runyu Xiao wrote:
> The etb10 miscdevice uses drvdata->reading as a shared exclusivity gate
> for userspace buffer access. etb_open() claims that gate with
> local_cmpxchg(), and etb_release() clears it with local_set().
>
> That gate is shared per-device state rather than CPU-local state. A
> running system can reach it whenever /dev/<etb> is opened, closed, and
> reopened by different tasks while the device remains registered, so the
> same drvdata->reading variable may be claimed on one CPU and later
> cleared on another.
>
> [...]
Applied, thanks!
[1/1] coresight: etb10: restore atomic_t for shared reading state
https://git.kernel.org/coresight/c/fa09f08ede3d
Best regards,
--
Suzuki K Poulose <suzuki.poulose(a)arm.com>