coresight: etm4x: Do not hardcode IOMEM access for register restore
authorSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 12 Apr 2024 14:26:59 +0000 (15:26 +0100)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Mon, 22 Apr 2024 10:23:47 +0000 (11:23 +0100)
commit1e7ba33fa591de1cf60afffcabb45600b3607025
tree0c9508f0382105fdf1a4e0ae3017271d728e00b1
parent965edae4e6a2bca1f6e56d2c56d992417a53bba4
coresight: etm4x: Do not hardcode IOMEM access for register restore

When we restore the register state for ETM4x, while coming back
from CPU idle, we hardcode IOMEM access. This is wrong and could
blow up for an ETM with system instructions access (and for ETE).

Fixes: f5bd523690d2 ("coresight: etm4x: Convert all register accesses")
Reported-by: Yabin Cui <yabinc@google.com>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Tested-by: Yabin Cui <yabinc@google.com>
Link: https://lore.kernel.org/r/20240412142702.2882478-2-suzuki.poulose@arm.com
drivers/hwtracing/coresight/coresight-etm4x-core.c