Skip to contentSkip to conversation

powerpc/perf: Fix the threshold event selection for memory events in power10

PATCH Applied Athira Rajeev 3 participants 3 messages Mar 4, 2021 – Apr 29, 2021 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/perf: Fix the threshold event selection for memory events in power10

Memory events (mem-loads and mem-stores) currently use the threshold event selection as issue to finish. Power10 supports issue to complete as part of thresholding which is more appropriate for mem-loads and mem-stores. Hence fix the event code for memory events to use issue to complete.

Fixes a64e697cef23 ("powerpc/perf: power10 Performance Monitoring support")
---
 arch/powerpc/perf/power10-events-list.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/perf/power10-events-list.h +2 -2
index e45dafe818ed..93be7197d250 100644
@@ -75,5 +75,5 @@
  *     thresh end (TE)
  */
 
-EVENT(MEM_LOADS,				0x34340401e0);
-EVENT(MEM_STORES,				0x343c0401e0);
+EVENT(MEM_LOADS,				0x35340401e0);
+EVENT(MEM_STORES,				0x353c0401e0);
Signature · 1 line
1.8.3.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Athira Rajeev

Memory events (mem-loads and mem-stores) currently use the threshold event selection as issue to finish. Power10 supports issue to complete as part of thresholding which is more appropriate for mem-loads and mem-stores. Hence fix the event code for memory events to use issue to complete.

Changes looks fine to me.

We should also CC stable to include this fix?

Quoted 18 lines
Fixes a64e697cef23 ("powerpc/perf: power10 Performance Monitoring support")
---
  arch/powerpc/perf/power10-events-list.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/perf/power10-events-list.h +2 -2
index e45dafe818ed..93be7197d250 100644
@@ -75,5 +75,5 @@
   *     thresh end (TE)
   */
 
-EVENT(MEM_LOADS,				0x34340401e0);
-EVENT(MEM_STORES,				0x343c0401e0);
+EVENT(MEM_LOADS,				0x35340401e0);
+EVENT(MEM_STORES,				0x353c0401e0);
#2 lore raw
In reply to Athira Rajeev
Quoted 5 lines · Athira Rajeev

Memory events (mem-loads and mem-stores) currently use the threshold event selection as issue to finish. Power10 supports issue to complete as part of thresholding which is more appropriate for mem-loads and mem-stores. Hence fix the event code for memory events to use issue to complete.

Applied to powerpc/next.

[1/1] powerpc/perf: Fix the threshold event selection for memory events in power10

      https://git.kernel.org/powerpc/c/66d9b7492887d34c711bc05b36c22438acba51b4

cheers