]> git.hungrycats.org Git - linux/commit
[PATCH] ppc64: better handling of H_ENTER failures
authorPaul Mackerras <paulus@samba.org>
Tue, 24 Aug 2004 16:39:21 +0000 (09:39 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 16:39:21 +0000 (09:39 -0700)
commit8b6c83d30c0b39233182521248e755cdf898c156
tree73ad12556d4fc972ae81378cbdc1df09f666261b
parent0b06badfb51cce3347c23c4cc4393cc4a59231a8
[PATCH] ppc64: better handling of H_ENTER failures

This changes the hash insertion routines to return an error instead of
calling panic() when HV refuses to insert a HPTE (the hypervisor call to
set up a hashtable PTE is H_ENTER).

The error is now propagated upstream, and either bad_page_fault() is
called (kernel mode) or a SIGBUS signal is forced (user mode).  Some
other panic() cases are also turned into BUG_ON.

Overall, this should provide us with better debugging data if the
problem happens, and avoids errors from userland mapping /dev/mem and
trying to use forbidden IOs (XFree ?) to bring the whole kernel down.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/head.S
arch/ppc64/kernel/pSeries_lpar.c
arch/ppc64/mm/hash_low.S
arch/ppc64/mm/hash_utils.c
include/asm-ppc64/system.h