Skip to content
  • Grant Erickson's avatar
    5907630f
    powerpc/40x: Limit allocable DRAM during early mapping · 5907630f
    Grant Erickson authored
    
    
    If the size of DRAM is not an exact power of two, we may not have
    covered DRAM in its entirety with large 16 and 4 MiB pages.  If that
    is the case, we can get non-recoverable page faults when doing the
    final PTE mappings for the non-large page PTEs.
    
    Consequently, we restrict the top end of DRAM currently allocable
    by updating '__initial_memory_limit_addr' so that calls to the LMB to
    allocate PTEs for "tail" coverage with normal-sized pages (or other
    reasons) do not attempt to allocate outside the allowed range.
    
    Signed-off-by: default avatarGrant Erickson <gerickson@nuovations.com>
    Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
    5907630f
    powerpc/40x: Limit allocable DRAM during early mapping
    Grant Erickson authored
    
    
    If the size of DRAM is not an exact power of two, we may not have
    covered DRAM in its entirety with large 16 and 4 MiB pages.  If that
    is the case, we can get non-recoverable page faults when doing the
    final PTE mappings for the non-large page PTEs.
    
    Consequently, we restrict the top end of DRAM currently allocable
    by updating '__initial_memory_limit_addr' so that calls to the LMB to
    allocate PTEs for "tail" coverage with normal-sized pages (or other
    reasons) do not attempt to allocate outside the allowed range.
    
    Signed-off-by: default avatarGrant Erickson <gerickson@nuovations.com>
    Signed-off-by: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
Loading