]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Add missing global TLB invalidate if cxl is active
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>
Wed, 29 Mar 2017 17:19:42 +0000 (19:19 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 5 Apr 2017 12:13:37 +0000 (22:13 +1000)
commit470bf8ecfc7e1f634ede793847bdb098e7293866
tree4a591bf18abbf55e167d8e4e1e78d3d8a644a14d
parentf69b32f4e95c651e6578d93f7a434980f6964cf2
powerpc/mm: Add missing global TLB invalidate if cxl is active

Commit 2134bb722dca ("powerpc/mm: Add hooks for cxl") converted local
TLB invalidates to global if the cxl driver is active. This is necessary
because the CAPP snoops invalidations to forward them to the PSL on the
cxl adapter. However one path was forgotten. native_flush_hash_range()
still does local TLB invalidates, as found out the hard way recently.

This patch fixes it by following the same logic as previously: if the
cxl driver is active, the local TLB invalidates are 'upgraded' to
global.

Fixes: 2134bb722dca ("powerpc/mm: Add hooks for cxl")
Cc: stable@vger.kernel.org # v3.18+
Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hash_native_64.c