summaryrefslogtreecommitdiff
path: root/scripts/cleanpatch
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2026-05-15 21:08:32 +0100
committerSuzuki K Poulose <suzuki.poulose@arm.com>2026-05-18 10:48:44 +0100
commitda06d6eb523bdd20d063395d6cf7f4c873d338e8 (patch)
tree1d60e6dfe7cab7a71cd961f4b20025ae76dcf78c /scripts/cleanpatch
parent7bbe5a172376d1bbf5da4a68fee6d77ae5a03e55 (diff)
coresight: trbe: Save and restore state across CPU low power state
TRBE context can be lost when a CPU enters low power states. If a trace source is restored while TRBE is not, tracing may run without an active sink, which can lead to hangs on some devices (e.g., Pixel 9). The save and restore flows are described in the section K5.5 "Context switching" of Arm ARM (ARM DDI 0487 L.a). This commit adds save and restore callbacks with following the software usages defined in the architecture manual. During the restore flow, since TRBLIMITR_EL1.E resets to 0 on a warm reset, the trace buffer unit is disabled when idle resume, it is safe to restore base/pointer/status registers first and program TRBLIMITR_EL1 last. Signed-off-by: Yabin Cui <yabinc@google.com> Co-developed-by: Leo Yan <leo.yan@arm.com> Signed-off-by: Leo Yan <leo.yan@arm.com> Reviewed-by: James Clark <james.clark@linaro.org> Tested-by: James Clark <james.clark@linaro.org> Reviewed-by: Yeoreum Yun <yeoreum.yun@arm.com> Tested-by: Jie Gan <jie.gan@oss.qualcomm.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20260515-arm_coresight_path_power_management_improvement-v14-25-f88c4a3ecfe9@arm.com
Diffstat (limited to 'scripts/cleanpatch')
0 files changed, 0 insertions, 0 deletions