Patch "powerpc/perf: Fix perf_get_data_addr() for power9 DD1" has been added to the 4.10-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
powerpc/perf: Fix perf_get_data_addr() for power9 DD1
to the 4.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
powerpc-perf-fix-perf_get_data_addr-for-power9-dd1.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
f04d108029063a8a67528a88449c412aecf4d3d8Mon Sep 17 00:00:00 2001
From: Madhavan Srinivasan <[email protected]>
Date: Mon, 20 Feb 2017 19:26:30 +0530
Subject: powerpc/perf: Fix perf_get_data_addr() for power9 DD1
From: Madhavan Srinivasan <[email protected]>
commit f04d108029063a8a67528a88449c412aecf4d3d8 upstream.
Power9 DD1 do not support PMU_HAS_SIER flag and sdsync in perf_get_data_addr() defaults to MMCRA_SDSYNC which is wrong. Since power9 MMCRA does not support SDSYNC bit, patch includes PPMU_NO_SIAR flag to the check and set the sdsync with MMCRA_SAMPLE_ENABLE;
--- arch/powerpc/perf/core-book3s.c | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/perf/core-book3s.c +2 -0
@@ -183,6 +183,8 @@ static inline void perf_get_data_addr(st sdsync =POWER7P_MMCRA_SDAR_VALID ; else if (ppmu->flags & PPMU_ALT_SIPR) sdsync =POWER6_MMCRA_SDSYNC ; + else if (ppmu->flags & PPMU_NO_SIAR) + sdsync =MMCRA_SAMPLE_ENABLE ; else sdsync =MMCRA_SDSYNC ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.10/powerpc-perf-handle-sdar_mode-for-marked-event-in-power9.patch queue-4.10/powerpc-perf-avoid-fab_-_match-checks-for-power9.patch queue-4.10/powerpc-perf-fix-perf_get_data_addr-for-power9-dd1.patch