• Michael Neuling's avatar
    [POWERPC] Fixes for the SLB shadow buffer code · 67439b76
    Michael Neuling authored
    On a machine with hardware 64kB pages and a kernel configured for a
    64kB base page size, we need to change the vmalloc segment from 64kB
    pages to 4kB pages if some driver creates a non-cacheable mapping in
    the vmalloc area.  However, we never updated with SLB shadow buffer.
    This fixes it.  Thanks to paulus for finding this.
    
    Also added some write barriers to ensure the shadow buffer contents
    are always consistent.
    Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    67439b76
slb.c 6.95 KB