• Christophe Leroy's avatar
    powerpc/8xx: Fix vaddr for IMMR early remap · f86ef74e
    Christophe Leroy authored
    Memory: 124428K/131072K available (3748K kernel code, 188K rwdata,
    648K rodata, 508K init, 290K bss, 6644K reserved)
    Kernel virtual memory layout:
      * 0xfffdf000..0xfffff000  : fixmap
      * 0xfde00000..0xfe000000  : consistent mem
      * 0xfddf6000..0xfde00000  : early ioremap
      * 0xc9000000..0xfddf6000  : vmalloc & ioremap
    SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    
    Today, IMMR is mapped 1:1 at startup
    
    Mapping IMMR 1:1 is just wrong because it may overlap with another
    area. On most mpc8xx boards it is OK as IMMR is set to 0xff000000
    but for instance on EP88xC board, IMMR is at 0xfa200000 which
    overlaps with VM ioremap area
    
    This patch fixes the virtual address for remapping IMMR with the fixmap
    regardless of the value of IMMR.
    
    The size of IMMR area is 256kbytes (CPM at offset 0, security engine
    at offset 128k) so a 512k page is enough
    Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
    Signed-off-by: default avatarScott Wood <oss@buserror.net>
    f86ef74e
mmu-8xx.h 7.47 KB