• M
    powerpc: Initialise paca->kstack before early_setup_secondary · f761622e
    Matt Evans 提交于
    As early setup calls down to slb_initialize(), we must have kstack
    initialised before checking "should we add a bolted SLB entry for our kstack?"
    
    Failing to do so means stack access requires an SLB miss exception to refill
    an entry dynamically, if the stack isn't accessible via SLB(0) (kernel text
    & static data).  It's not always allowable to take such a miss, and
    intermittent crashes will result.
    
    Primary CPUs don't have this issue; an SLB entry is not bolted for their
    stack anyway (as that lives within SLB(0)).  This patch therefore only
    affects the init of secondaries.
    Signed-off-by: NMatt Evans <matt@ozlabs.org>
    Cc: stable <stable@kernel.org>
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    f761622e
head_64.S 19.4 KB