Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8fa53512 authored by Tomasz Nowicki's avatar Tomasz Nowicki Committed by Yabin Cui
Browse files

UPSTREAM: coresight: etm4x: Configure EL2 exception level when kernel is running in HYP



For non-VHE systems host kernel runs at EL1 and jumps to EL2 whenever
hypervisor code should be executed. In this case ETM4x driver must
restrict configuration to EL1 when it setups kernel tracing.
However, there is no separate hypervisor privilege level when VHE
is enabled, the host kernel runs at EL2.

This patch fixes configuration of TRCACATRn register for VHE systems
so that ETM_EXLEVEL_NS_HYP bit is used instead of ETM_EXLEVEL_NS_OS
to on/off kernel tracing. At the same time, it moves common code
to new helper.

Signed-off-by: default avatarTomasz Nowicki <tnowicki@caviumnetworks.com>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

(Upstream commit b860801e3237ec4c74cf8de0be4816996757ae5c).

Bug: 140266694
Change-Id: I16cd8a977606ef0fe75ea2398bf7a2eb371e7662
Signed-off-by: default avatarYabin Cui <yabinc@google.com>
parent 48b8f165
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment