]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/cell: Make ptcal more reliable
authorGerhard Stenzel <stenzel@de.ibm.com>
Wed, 13 May 2009 05:50:46 +0000 (05:50 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 15 May 2009 06:43:42 +0000 (16:43 +1000)
commit8c2905352d11003d1e2e53d2438db3c290b98cd4
tree7de01cea9c05684953905438f7afe87039d9026f
parent6896f8f64686e6f4516da04e4d9bbabf3c2af3e8
powerpc/cell: Make ptcal more reliable

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: Gerhard Stenzel <gerhard.stenzel@de.ibm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/cell/ras.c