• D
    pseries: Correct RAM size check for SLOF · 92c93a81
    David Gibson 提交于
    The SLOF firmware used on the pseries machine needs a reasonable amount of
    (guest) RAM in order to run, so we have a check in the machine init
    function to check that this is available.  However, SLOF runs in real mode
    (MMU off) which means it can only actually access the RMA (Real Mode Area),
    not all of RAM.  In many cases the RMA is the same as all RAM, but when
    running with Book3S HV KVM on PowerPC 970, the RMA must be especially
    allocated to be (host) physically contiguous.  In this case, the RMA size
    is determined by what the host admin allocated at boot time, and will
    usually be less than the whole guest RAM size.
    
    This patch corrects the test to see if SLOF has enough memory for this
    case.
    
    In addition, more recent versions of SLOF that were committed earlier don't
    need quite as much memory as earlier versions.  Therefore, this patch also
    reduces the amount of RAM we require to run SLOF.
    Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
    Signed-off-by: NAlexander Graf <agraf@suse.de>
    92c93a81
spapr.c 20.2 KB