[PATCH v4 10/11] coresight: etm4x: Retain sequencer state
Leo Yan
leo.yan at arm.com
Fri Oct 24 09:45:58 PDT 2025
Retain sequencer state in the disable flow and will be restored in the
enable flow.
As a result, the flow will be reused by CPU suspend and resume in
sequential change.
Signed-off-by: Leo Yan <leo.yan at arm.com>
---
drivers/hwtracing/coresight/coresight-etm4x-core.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/hwtracing/coresight/coresight-etm4x-core.c b/drivers/hwtracing/coresight/coresight-etm4x-core.c
index 4c6236ad241d1a13515160ca478fae839a891e38..71a4fcbca44091d5f441d4bc502b3c5f4fd3c984 100644
--- a/drivers/hwtracing/coresight/coresight-etm4x-core.c
+++ b/drivers/hwtracing/coresight/coresight-etm4x-core.c
@@ -1026,6 +1026,10 @@ static void etm4_disable_hw(struct etmv4_drvdata *drvdata)
etm4x_relaxed_read32(csa, TRCCNTVRn(i));
}
+ /* read back the sequencer state */
+ if (drvdata->nrseqstate)
+ config->seq_state = etm4x_relaxed_read32(csa, TRCSEQSTR);
+
coresight_disclaim_device_unlocked(csdev);
etm4_cs_lock(drvdata, csa);
--
2.34.1
More information about the linux-arm-kernel
mailing list