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:Tomasz Nowicki <tnowicki@caviumnetworks.com> Signed-off-by:
Mathieu Poirier <mathieu.poirier@linaro.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (Upstream commit b860801e3237ec4c74cf8de0be4816996757ae5c). Bug: 140266694 Change-Id: I16cd8a977606ef0fe75ea2398bf7a2eb371e7662 Signed-off-by:
Yabin Cui <yabinc@google.com>
Loading
Please register or sign in to comment