]> git.baikalelectronics.ru Git - kernel.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)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 3 Oct 2017 05:16:55 +0000 (16:16 +1100)
commit8fd8c95fc97a5db9456bf85c189747b88e46b3bb
tree8ca48a102f0bef6b4e2e5f1ffa9eb326f76a19ef
parent6c4a066506703cfa65a8cb12f14f3f20a9784b01
powerpc: Fix action argument for cpufeatures-based TLB flush

Commit f155fb2f5ac2 ("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: f155fb2f5ac2 ("powerpc/powernv: Fix local TLB flush for boot and MCE on POWER9")
Cc: stable@vger.kernel.org # v4.13+
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/dt_cpu_ftrs.c