Re: powerpc/powernv: Fix SMT4 forcing idle code

2018-04-04 Thread Michael Ellerman
On Sun, 2018-04-01 at 05:38:13 UTC, Nicholas Piggin wrote: > PSSCR value is not stored to PACA_REQ_PSSCR in case 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

[PATCH] powerpc/powernv: Fix SMT4 forcing idle code

2018-03-31 Thread Nicholas Piggin
PSSCR value is not stored to PACA_REQ_PSSCR in case 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_