Home
last modified time | relevance | path

Searched hist:"55 fc0c561742c710857dc5a7a591b461a561cf1f" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dras.cdiff 55fc0c561742c710857dc5a7a591b461a561cf1f Wed Mar 21 10:49:59 CDT 2012 Anton Blanchard <anton@samba.org> powerpc/pseries: Parse and handle EPOW interrupts

We have code to take environmental and power warning (EPOW)
interrupts but it simply prints a terse error message:

EPOW <0x6240040000000b8 0x0 0x0>

which tells us nothing about what happened. Even worse, if we
don't correctly respond to the interrupt we may get terminated
by firmware.

Add code to printk some useful information when we get EPOW events.
We want to make it clear that we have an error, that it was
reported by firmware and that the RTAS error log will have more
detailed information. eg:

Ambient temperature too high reported by firmware.
Check RTAS error log for details

Depending on the error encountered, we now issue an immediate or
an orderly power down.

Move initialization of the EPOW interrupt earlier in boot since we
want to respond to them as early as possible.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>