Loading
coresight: etm4x: Fix access to resource selector registers
mainline inclusion from mainline-v6.10-rc1 commit d6fc00d0f640d6010b51054aa8b0fd191177dbc9 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=d6fc00d0f640d6010b51054aa8b0fd191177dbc9 -------------------------------- Resource selector pair 0 is always implemented and reserved. We must not touch it, even during save/restore for CPU Idle. Rest of the driver is well behaved. Fix the offending ones. Reported-by:Yabin Cui <yabinc@google.com> Fixes: f188b5e7 ("coresight: etm4x: Save/restore state across CPU low power states") Signed-off-by:
Suzuki K Poulose <suzuki.poulose@arm.com> Tested-by:
Yabin Cui <yabinc@google.com> Reviewed-by:
Mike Leach <mike.leach@linaro.org> Link: https://lore.kernel.org/r/20240412142702.2882478-5-suzuki.poulose@arm.com Signed-off-by:
Junhao He <hejunhao3@huawei.com>