• Andrew Morton's avatar
    [PATCH] ppc64: Move EPOW log buffer to BSS · ac55528c
    Andrew Morton authored
    From: Olof Johansson <olof@austin.ibm.com>
    
    RTAS on IBM pSeries runs in real mode, so all pointers being passed in to
    it need to be in low memory.  There's two places in the RAS code that
    passes in pointers to items on the stack, which might end up being above
    the limit.
    
    Below patch resolves this by creating a buffer in BSS + a lock for
    serialization.  There's no reason to worry about contention on the lock,
    since rtas_call() also serializes on a single spinlock and this is an
    infrequent code path in the first place.
    ac55528c
ras.c 5.79 KB