]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb665834cfed7aa82fbdc292bb04db6ec6a822e0c
tree46d338141eca8c1ae048365ee7e8326132b3db64
parent0046fcbbfa6595314164acbf3e0e1955c31e3f3c
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