]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Remove POWER9 PVR version check for entry and uaccess flushes
authorNicholas Piggin <npiggin@gmail.com>
Mon, 3 May 2021 13:02:43 +0000 (23:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 25 Nov 2021 00:25:29 +0000 (11:25 +1100)
commit374018712601f44c82b760fb8ade688366e77d09
tree56eb0d7700ef63aaa8814b4ae62f3b219462d19d
parenta219f1ab9fcc680dbdf37c1542e6ebe620301062
powerpc/powernv: Remove POWER9 PVR version check for entry and uaccess flushes

These aren't necessarily POWER9 only, and it's not to say some new
vulnerability may not get discovered on other processors for which
we would like the flexibility of having the workaround enabled by
firmware.

Remove the restriction that the workarounds only apply to POWER9.

However POWER7 and POWER8 are not affected, and they may not have
older firmware that does not advertise this, so clear these workarounds
manually.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
[mpe: Incorporate changes from Nick, reword comment slightly.]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210503130243.891868-5-npiggin@gmail.com
arch/powerpc/platforms/powernv/setup.c