]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Fix SMT4 forcing idle code
authorNicholas Piggin <npiggin@gmail.com>
Sun, 1 Apr 2018 05:38:13 +0000 (15:38 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 3 Apr 2018 12:14:27 +0000 (22:14 +1000)
commitcf0b11c976653f2f8fcfb61024809612bd79fa93
tree02711ff4c5dc10a6ab6cb756c4bbbc5d1720e2e8
parenta945859c829964856b7726de52c5197ecdbf579a
powerpc/powernv: Fix SMT4 forcing idle code

The PSSCR value is not stored to PACA_REQ_PSSCR if the CPU does not
have the XER[SO] bug.

Fix this by storing up-front, outside the workaround code. The initial
test is not required because it is a slow path.

The workaround is made to depend on CONFIG_KVM_BOOK3S_HV_POSSIBLE, to
match pnv_power9_force_smt4_catch() where it is used. Drop the comment
on pnv_power9_force_smt4_catch() as it's no longer true.

Fixes: b3e5b2983b3e ("powerpc/powernv: Provide a way to force a core into SMT4 mode")
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/idle_book3s.S
arch/powerpc/platforms/powernv/idle.c