]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
powerpc/perf: Fix the threshold event selection for memory events in power10
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Thu, 4 Mar 2021 06:40:15 +0000 (01:40 -0500)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:42 +0000 (17:46 -0600)
BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit 66d9b7492887d34c711bc05b36c22438acba51b4 ]

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")
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Reviewed-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1614840015-1535-1-git-send-email-atrajeev@linux.vnet.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/powerpc/perf/power10-events-list.h

index e45dafe818ed417bf140d58c5debbfb611fa9b22..93be7197d2502a37d4382b27fd46d1a520e63a75 100644 (file)
@@ -75,5 +75,5 @@ EVENT(PM_RUN_INST_CMPL_ALT,                   0x00002);
  *     thresh end (TE)
  */
 
-EVENT(MEM_LOADS,                               0x34340401e0);
-EVENT(MEM_STORES,                              0x343c0401e0);
+EVENT(MEM_LOADS,                               0x35340401e0);
+EVENT(MEM_STORES,                              0x353c0401e0);