]> git.itanic.dy.fi Git - linux-stable/commit
powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly
authorTony Breeds <tony@bakeyournoodle.com>
Thu, 20 Feb 2014 10:13:52 +0000 (21:13 +1100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:45 +0000 (17:13 +0100)
commit4fe2fdcab4dfef44f48e19c8ffabbbe7401f031f
tree4d17e22909e5e9fba6420cb4d2c7e341191cbbea
parent5a99ca7fc8b4d2c3e01f3caab239ea9e96d81efc
powerpc/le: Ensure that the 'stop-self' RTAS token is handled correctly

commit 41dd03a94c7d408d2ef32530545097f7d1befe5c upstream.

Currently we're storing a host endian RTAS token in
rtas_stop_self_args.token.  We then pass that directly to rtas.  This is
fine on big endian however on little endian the token is not what we
expect.

This will typically result in hitting:
panic("Alas, I survived.\n");

To fix this we always use the stop-self token in host order and always
convert it to be32 before passing this to rtas.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/powerpc/platforms/pseries/hotplug-cpu.c