]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
coresight: etm4x: Handle TRCVIPCSSCTLR accesses
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 27 Nov 2020 17:52:48 +0000 (10:52 -0700)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 4 Jan 2021 15:33:07 +0000 (16:33 +0100)
commit1a103ed8ac236d9bd60449f58daa50054e06654b
treef9a42777d603e6c333e6469ae564c32eff9b488f
parenta68f3a71fbc0759459228743d0a9777223f60bf0
coresight: etm4x: Handle TRCVIPCSSCTLR accesses

BugLink: https://bugs.launchpad.net/bugs/1910109
commit 60c519c5d3629c21ba356782434d5b612d312de4 upstream.

TRCVIPCSSCTLR is not present if the TRCIDR4.NUMPC > 0. Thus we
should only access the register if it is present, preventing
any undesired behavior.

Cc: stable@vger.kernel.org
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20201127175256.1092685-8-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/hwtracing/coresight/coresight-etm4x-core.c