]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc: Fix action argument for cpufeatures-based TLB flush
authorJeremy Kerr <jk@ozlabs.org>
Wed, 27 Sep 2017 04:55:51 +0000 (12:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:14 +0000 (11:56 +0200)
commiteb080d888a1e87cfd9e7cef4d5531b8ab4ed610d
treeabda0ec937ff9d612a626147312ba86d6c98d33d
parent5a33625b5cbaee945cc4adbf68d4b2e7083c509e
powerpc: Fix action argument for cpufeatures-based TLB flush

commit 3b7af5c0fd9631762d1c4d7b4cee76f571dd3c2c upstream.

Commit 41d0c2ecde19 ("powerpc/powernv: Fix local TLB flush for boot
and MCE on POWER9") introduced calls to __flush_tlb_power[89] from the
cpufeatures code, specifying the number of sets to flush.

However, these functions take an action argument, not a number of
sets. This means we hit the BUG() in __flush_tlb_{206,300} when using
cpufeatures-style configuration.

This change passes TLB_INVAL_SCOPE_GLOBAL instead.

Fixes: 41d0c2ecde19 ("powerpc/powernv: Fix local TLB flush for boot and MCE on POWER9")
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/dt_cpu_ftrs.c