powerpc: Only save/restore SDR1 if in hypervisor mode
authorDan Streetman <ddstreet@ieee.org>
Wed, 30 Oct 2013 02:25:14 +0000 (22:25 -0400)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 31 Oct 2013 01:37:29 +0000 (12:37 +1100)
commit711b5138d54fcfd5e312cea895d6e706a46eff19
tree46d338141eca8c1ae048365ee7e8326132b3db64
parentde00b30d054857990dc573648e4767ec512009c7
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: Dan Streetman <ddstreet@ieee.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Reported-by: Jimmy Pan <jipan@redhat.com>
Tested-by: Jimmy Pan <jipan@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/swsusp_asm64.S