]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/le: Enable RTAS events support
authorGreg Kurz <gkurz@linux.vnet.ibm.com>
Fri, 4 Apr 2014 07:35:13 +0000 (09:35 +0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Apr 2014 00:33:12 +0000 (10:33 +1000)
commit1a46cd7f83b0edddbb711c1c205a712c5c9834b4
treea6d61d06dbf2929477e066d14eceff2ea7a5ac31
parent7b6b58da4c1e0c3e3908db2d9a33a00ebc77aaf7
powerpc/le: Enable RTAS events support

The current kernel code assumes big endian and parses RTAS events all
wrong. The most visible effect is that we cannot honor EPOW events,
meaning, for example, we cannot shut down a guest properly from the
hypervisor.

This new patch is largely inspired by Nathan's work: we get rid of all
the bit fields in the RTAS event structures (even the unused ones, for
consistency). We also introduce endian safe accessors for the fields used
by the kernel (trivial rtas_error_type() accessor added for consistency).

Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/rtas.h
arch/powerpc/kernel/rtas.c
arch/powerpc/kernel/rtasd.c
arch/powerpc/platforms/pseries/io_event_irq.c
arch/powerpc/platforms/pseries/ras.c