Re: powerpc/perf: Fix perf_get_data_addr() for power9 DD1

2017-03-14 Thread Michael Ellerman
On Mon, 2017-02-20 at 13:56:30 UTC, Madhavan Srinivasan wrote: > 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 >

[PATCH] powerpc/perf: Fix perf_get_data_addr() for power9 DD1

2017-02-20 Thread Madhavan Srinivasan
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; Signed-off-by: Madhavan Srinivasan ---