]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/idle: avoid POWER9 DD1 and DD2.0 ERAT workaround on DD2.1
authorNicholas Piggin <npiggin@gmail.com>
Fri, 3 Nov 2017 04:13:20 +0000 (15:13 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 11:46:15 +0000 (22:46 +1100)
commit033ee43844b6d91a7da16d9d1bc9b095c26eda06
tree0c121b6385a2309189bbe1edda5b28815f7f8952
parent85cf51a7938e2cc3fef31324b9e8e63da8fba92d
powerpc/64s/idle: avoid POWER9 DD1 and DD2.0 ERAT workaround on DD2.1

DD2.1 does not have to flush the ERAT after a state-loss idle.

Performance testing was done on a DD2.1 using only the stop0 idle state
(the shallowest state which supports state loss), using context_switch
selftest configured to ping-poing between two threads on the same core
and two different cores.

Performance improvement for same core is 7.0%, different cores is 14.8%.

Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/idle_book3s.S