[PATCH X/Y/Z SRU] powerpc/mm: Add missing global TLB invalidate if cxl is active

Seth Forshee seth.forshee at canonical.com
Thu Apr 13 15:35:18 UTC 2017


On Wed, Apr 12, 2017 at 05:57:17AM -0600, Tim Gardner wrote:
> From: Frederic Barrat <fbarrat at linux.vnet.ibm.com>
> 
> BugLink: http://bugs.launchpad.net/bugs/1681469
> 
> Commit 4c6d9acce1f4 ("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: 4c6d9acce1f4 ("powerpc/mm: Add hooks for cxl")
> Cc: stable at vger.kernel.org # v3.18+
> Signed-off-by: Frederic Barrat <fbarrat at linux.vnet.ibm.com>
> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
> Signed-off-by: Michael Ellerman <mpe at ellerman.id.au>
> (cherry picked from commit 88b1bf7268f56887ca88eb09c6fb0f4fc970121a)
> Signed-off-by: Tim Gardner <tim.gardner at canonical.com>

This was applied to zesty as part of the 4.10.10 stable update.




More information about the kernel-team mailing list