]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drivers/perf: hisi: Relax the event ID check in the framework
authorYicong Yang <yangyicong@hisilicon.com>
Fri, 29 Aug 2025 10:14:19 +0000 (18:14 +0800)
committerWill Deacon <will@kernel.org>
Mon, 22 Sep 2025 12:14:37 +0000 (13:14 +0100)
commit43de0ac332b815cf56dbdce63687de9acfd35d49
tree1c84ae00c3f89dd116d67fe16d42039e18a8e541
parentbad11557eed2592c017a06752e58df49080b4a6a
drivers/perf: hisi: Relax the event ID check in the framework

Event ID is only using the attr::config bit [7, 0] but we check the
event range using the whole 64bit field. It blocks the usage of the
rest field of attr::config. Relax the check by only using the
bit [7, 0].

Acked-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Yushan Wang <wangyushan12@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_pmu.c
drivers/perf/hisilicon/hisi_uncore_pmu.h