]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: Add support to get static id for system trace sources
authorMao Jinlong <quic_jinlmao@quicinc.com>
Thu, 21 Nov 2024 06:28:28 +0000 (14:28 +0800)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Wed, 11 Dec 2024 10:15:37 +0000 (10:15 +0000)
commitfd9b7e8e9fbc23d69fa4accc881dea2cf13a2e2e
tree276b59e0a5bdd49d233874db7a7088200d1ec41b
parentd0a10da78cbfabcbc2eda87ac238bc03bb2b2c81
coresight: Add support to get static id for system trace sources

Dynamic trace id was introduced in coresight subsystem, so trace id is
allocated dynamically. However, some hardware ATB source has static trace
id and it cannot be changed via software programming. For such source,
it can call coresight_get_static_trace_id to get the fixed trace id from
device node and pass id to coresight_trace_id_get_static_system_id to
reserve the id.

Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20241121062829.11571-3-quic_jinlmao@quicinc.com
drivers/hwtracing/coresight/coresight-platform.c
drivers/hwtracing/coresight/coresight-trace-id.c
drivers/hwtracing/coresight/coresight-trace-id.h
include/linux/coresight.h