Loading
coresight: etm4x: Safe access for TRCQCLTR
mainline inclusion from mainline-v6.10-rc1 commit 46bf8d7cd8530eca607379033b9bc4ac5590a0cd 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=46bf8d7cd8530eca607379033b9bc4ac5590a0cd -------------------------------- ETM4x implements TRCQCLTR only when the Q elements are supported and the Q element filtering is supported (TRCIDR0.QFILT). Access to the register otherwise could be fatal. Fix this by tracking the availability, like the others. Fixes: f188b5e7 ("coresight: etm4x: Save/restore state across CPU low power states") 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-4-suzuki.poulose@arm.com Signed-off-by:
Junhao He <hejunhao3@huawei.com>