]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drivers/perf: hisi: Add tt_core_deprecated for compatibility
authorYicong Yang <yangyicong@hisilicon.com>
Thu, 25 Sep 2025 03:31:23 +0000 (11:31 +0800)
committerWill Deacon <will@kernel.org>
Thu, 25 Sep 2025 12:51:59 +0000 (13:51 +0100)
commita084c3c4a2674f156031eb04e785986c2744aca8
treef67c888db4496e044fa709ac101c6b2c5a19cff3
parentea0b39168d3a2313eabd145fb3440c946ccff4d1
drivers/perf: hisi: Add tt_core_deprecated for compatibility

Previously tt_core is defined as config1:0-7 which may not cover all
the CPUs sharing L3C on platforms with more than 8 CPUs in a L3C. In
order to support such platforms extend tt_core to 16 bits, since no
spare space in config1, tt_core was moved to config2:0-15.

Though linux expects the users to retrieve the control encoding from
sysfs first for each option, it's possible if user doesn't follow
this and hardcoded tt_core in config1. So add an option
tt_core_deprecated for config1:0-7 for backward compatibility.

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/admin-guide/perf/hisi-pmu.rst
drivers/perf/hisilicon/hisi_uncore_l3c_pmu.c