powerpc/swsusp: Only use tlbie in POWER4 mode

Michael Ellerman mpe at ellerman.id.au
Mon Apr 11 22:35:13 AEST 2016


On Wed, 2016-02-03 at 06:12:45 UTC, Russell Currey wrote:
> If CONFIG_HIBERNATION and CONFIG_PPC_BOOK3S_64 are set, code in
> arch/powerpc/kernel/swsusp_amd64.S which uses the tlbia macro is enabled.
> tlbia in turn uses tlbie, an instruction which takes more than one
> operand in newer versions of POWER.  As such, the kernel fails to build
> due to the assembler complaining about missing operands.
> 
> This can be worked around by assembling the instruction as in POWER4.
> This fixes the build breakage caused by enabling CONFIG_HIBERNATION.
> Hibernation is currently only tested on G5 PowerMacs, which should be
> unaffected by this change.  For other platforms it may now build,
> whether or not it works is a different story.
> 
> Signed-off-by: Russell Currey <ruscur at russell.cc>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/e3824e4281b8e31d55c08a06b2

cheers


More information about the Linuxppc-dev mailing list