From 59da207e2f2f028c9051c89bc5a05e95d996c18c Mon Sep 17 00:00:00 2001 From: Davidson K Date: Wed, 13 Oct 2021 18:49:41 +0530 Subject: [PATCH] feat(tc): enable tracing Total Compute has ETE and TRBE tracing components and they have to be enabled to capture the execution trace of the processor. Signed-off-by: Davidson K Change-Id: I3c86c11be2c655a61ecefa3eb2e4e3951577a113 --- fdts/tc.dts | 44 +++++++++++++++++++++++++++++++++++ plat/arm/board/tc/platform.mk | 9 +++++++ 2 files changed, 53 insertions(+) diff --git a/fdts/tc.dts b/fdts/tc.dts index 13c9e16e4..6e119ceba 100644 --- a/fdts/tc.dts +++ b/fdts/tc.dts @@ -476,4 +476,48 @@ }; }; + ete0 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU0>; + }; + + ete1 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU1>; + }; + + ete2 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU2>; + }; + + ete3 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU3>; + }; + + ete4 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU4>; + }; + + ete5 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU5>; + }; + + ete6 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU6>; + }; + + ete7 { + compatible = "arm,embedded-trace-extension"; + cpu = <&CPU7>; + }; + + trbe0 { + compatible = "arm,trace-buffer-extension"; + interrupts = <1 2 4>; + }; }; diff --git a/plat/arm/board/tc/platform.mk b/plat/arm/board/tc/platform.mk index 8765fa2e3..3acd88e78 100644 --- a/plat/arm/board/tc/platform.mk +++ b/plat/arm/board/tc/platform.mk @@ -37,6 +37,15 @@ GICV3_SUPPORT_GIC600 := 1 ENABLE_SVE_FOR_NS := 1 ENABLE_SVE_FOR_SWD := 1 +# enable trace buffer control registers access to NS by default +ENABLE_TRBE_FOR_NS := 1 + +# enable trace system registers access to NS by default +ENABLE_SYS_REG_TRACE_FOR_NS := 1 + +# enable trace filter control registers access to NS by default +ENABLE_TRF_FOR_NS := 1 + # Include GICv3 driver files include drivers/arm/gic/v3/gicv3.mk