Loading
coresight: etm4x: Do not hardcode IOMEM access for register restore
mainline inclusion from mainline-v6.10-rc1 commit 1e7ba33fa591de1cf60afffcabb45600b3607025 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAKVFA CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1e7ba33fa591de1cf60afffcabb45600b3607025 -------------------------------- 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: f5bd5236 ("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 Signed-off-by:
Junhao He <hejunhao3@huawei.com>