All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] perf/amlogic: Fix config1/config2 parsing issue
@ 2023-02-09 11:54 ` Jiucheng Xu
  0 siblings, 0 replies; 24+ messages in thread
From: Jiucheng Xu @ 2023-02-09 11:54 UTC (permalink / raw)
  To: Jiucheng Xu, Will Deacon, Mark Rutland, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl
  Cc: Jianxin Pan, Kelvin Zhang, Chris Healy, Chris Healy,
	linux-amlogic, linux-arm-kernel, linux-kernel

The 3th argument of for_each_set_bit is incorrect, fix them.

Fixes: 2016e2113d35 ("perf/amlogic: Add support for Amlogic meson G12 SoC DDR PMU driver")
Signed-off-by: Jiucheng Xu <jiucheng.xu@amlogic.com>
---
 drivers/perf/amlogic/meson_ddr_pmu_core.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/perf/amlogic/meson_ddr_pmu_core.c b/drivers/perf/amlogic/meson_ddr_pmu_core.c
index b84346dbac2c..0b24dee1ed3c 100644
--- a/drivers/perf/amlogic/meson_ddr_pmu_core.c
+++ b/drivers/perf/amlogic/meson_ddr_pmu_core.c
@@ -156,10 +156,14 @@ static int meson_ddr_perf_event_add(struct perf_event *event, int flags)
 	u64 config2 = event->attr.config2;
 	int i;
 
-	for_each_set_bit(i, (const unsigned long *)&config1, sizeof(config1))
+	for_each_set_bit(i,
+			 (const unsigned long *)&config1,
+			 BITS_PER_TYPE(config1))
 		meson_ddr_set_axi_filter(event, i);
 
-	for_each_set_bit(i, (const unsigned long *)&config2, sizeof(config2))
+	for_each_set_bit(i,
+			 (const unsigned long *)&config2,
+			 BITS_PER_TYPE(config2))
 		meson_ddr_set_axi_filter(event, i + 64);
 
 	if (flags & PERF_EF_START)

base-commit: e8a709dc2a9156f223ec953ae70a919e87ad7e9a
-- 
2.25.1


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2023-03-28 11:56 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09 11:54 [PATCH 1/3] perf/amlogic: Fix config1/config2 parsing issue Jiucheng Xu
2023-02-09 11:54 ` Jiucheng Xu
2023-02-09 11:54 ` Jiucheng Xu
2023-02-09 11:54 ` [PATCH 2/3] perf/amlogic: Fix large number of counter issue Jiucheng Xu
2023-02-09 11:54   ` Jiucheng Xu
2023-02-09 11:54   ` Jiucheng Xu
2023-03-27 14:10   ` Will Deacon
2023-03-27 14:10     ` Will Deacon
2023-03-27 14:10     ` Will Deacon
2023-03-28  2:29     ` Jiucheng Xu
2023-03-28  2:29       ` Jiucheng Xu
2023-03-28  2:29       ` Jiucheng Xu
2023-03-28 11:55       ` Will Deacon
2023-03-28 11:55         ` Will Deacon
2023-03-28 11:55         ` Will Deacon
2023-02-09 11:54 ` [PATCH 3/3] arm64: defconfig: Add Meson DDR PMU as build-in Jiucheng Xu
2023-02-09 11:54   ` Jiucheng Xu
2023-02-09 11:54   ` Jiucheng Xu
2023-02-10 15:58   ` Chris Healy
2023-02-10 15:58     ` Chris Healy
2023-02-10 15:58     ` Chris Healy
2023-03-27 15:01 ` [PATCH 1/3] perf/amlogic: Fix config1/config2 parsing issue Will Deacon
2023-03-27 15:01   ` Will Deacon
2023-03-27 15:01   ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.