]> 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)
commit11265c864bdbbe4db72c73e8531cf50bea0aae6a
treea6d61d06dbf2929477e066d14eceff2ea7a5ac31
parent5407620871050aa4cb38be7da77a2be29527f5c6
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