aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwtracing/coresight/coresight-tmc-etf.c
diff options
context:
space:
mode:
authorTomasz Nowicki <tnowicki@caviumnetworks.com>2018-09-20 13:18:00 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-25 20:09:18 +0200
commitb860801e3237ec4c74cf8de0be4816996757ae5c (patch)
treee80b40f0c22c108f1afeaaf1243e129c6ccec6aa /drivers/hwtracing/coresight/coresight-tmc-etf.c
parentcoresight: etb10: Splitting function etb_enable() (diff)
downloadlinux-dev-b860801e3237ec4c74cf8de0be4816996757ae5c.tar.xz
linux-dev-b860801e3237ec4c74cf8de0be4816996757ae5c.zip
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>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-tmc-etf.c')
0 files changed, 0 insertions, 0 deletions