powerpc/perf: Fix SDAR_MODE value for continous sampling in power9

Michael Ellerman patch-notifications at ellerman.id.au
Thu Jul 13 22:46:42 AEST 2017


On Tue, 2017-07-11 at 10:57:49 UTC, Madhavan Srinivasan wrote:
> Incase of continous sampling, code currently defaults
> MMCRA[SDAR_MODE] to 0b01 for power9 DD1 which is
> 'Continous sampling mode update SDAR on TLB miss'.
> And for the rest it copies the sdar_mode value from
> the event code, which mostly turns out to be 0b00
> ('No Updates').
> 
> Instead, fix the sdar_mode to 0b10
> ('Continous sampling mode update SDAR on dcache miss')
> as default for power9 incase of continous sampling.
> 
> Fixes: 78b4416aa2493 ('powerpc/perf: Handle sdar_mode for marked event in power9')
> Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/20dd4c624d25156d5ec3345bbb690b

cheers


More information about the Linuxppc-dev mailing list