• David Gibson's avatar
    [PATCH] powerpc: Fix SLB flushing path in hugepage · 23ed6cb9
    David Gibson authored
    On ppc64, when opening a new hugepage region, we need to make sure any
    old normal-page SLBs for the area are flushed on all CPUs.  There was
    a bug in this logic - after putting the new hugepage area masks into
    the thread structure, we copied it into the paca (read by the SLB miss
    handler) only on one CPU, not on all.  This could cause incorrect SLB
    entries to be loaded when a multithreaded program was running
    simultaneously on several CPUs.  This patch corrects the error,
    copying the context information into the PACA on all CPUs using the mm
    in question before flushing any existing SLB entries.
    Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    23ed6cb9
hugetlbpage.c 20.5 KB