• Gerhard Stenzel's avatar
    powerpc/cell: Make ptcal more reliable · 37cd8ed9
    Gerhard Stenzel authored
    There have been a series of checkstops on QS21 related to
    ptcal being set up incorrectly. On systems that only
    have memory on a single node, ptcal fails when it gets
    a pointer to memory on the remote node.
    
    Moreover, agressive prefetching in memcpy and other
    functions may accidentally touch the first cache line
    of the page that we reserve for ptcal, which causes
    an ECC checkstop.
    
    We now allocate pages only from the specified node, moves the
    ptcal area into the middle of the allocated page to avoid
    potential prefetch problems and prints the address of the
    ptcal area to facilitate diagnostics.
    Signed-off-by: default avatarGerhard Stenzel <gerhard.stenzel@de.ibm.com>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    37cd8ed9
ras.c 7.74 KB