Skip to content
Commit 711b5138 authored by Dan Streetman's avatar Dan Streetman Committed by Benjamin Herrenschmidt
Browse files

powerpc: Only save/restore SDR1 if in hypervisor mode



Currently, when not in hypervisor mode the kernel
Oopses during suspend or hibernation when accessing
the SDR1 register, because it is only available
in hypervisor mode.  Access to it needs to be
protected in BEGIN/END_FW_FTR_SECTION.

Signed-off-by: default avatarDan Streetman <ddstreet@ieee.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reported-by: default avatarJimmy Pan <jipan@redhat.com>
Tested-by: default avatarJimmy Pan <jipan@redhat.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent de00b30d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment