]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/powernv: Fallback to old HMI handling behavior for old firmware
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Fri, 10 Oct 2014 15:58:26 +0000 (21:28 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Oct 2014 07:09:50 +0000 (18:09 +1100)
commit6507955c9781a75f1b085f0cf0a77b9df06f0197
treea46622e45042b72b3ce6341c109e16f264413913
parentc675c7db629bd1abf4a9a36c0200686716eeea05
powerpc/powernv: Fallback to old HMI handling behavior for old firmware

Recently we moved HMI handling into Linux kernel instead of taking
HMI directly in OPAL. This new change is dependent on new OPAL call
for HMI recovery which was introduced in newer firmware. While this new
change works fine with latest OPAL firmware, we broke the HMI handling
if we run newer kernel on old OPAL firmware that results in system hang.

This patch fixes this issue by falling back to old HMI behavior on older
OPAL firmware.

This patch introduces a check for opal token OPAL_HANDLE_HMI to see
if we are running on newer firmware or old firmware. On newer firmware
this check would return OPAL_TOKEN_PRESENT, otherwise we are running on
old firmware and fallback to old HMI behavior.

Old firmware: POWER8 System Firmware Release as of today <= SV810_087
Action: Let OPAL handle HMIs

Newer firmware: in development/yet to be released.
Action: Let Linux host handle HMIs.

This patch depends on opal check token patch posted at ppc-devel
https://lists.ozlabs.org/pipermail/linuxppc-dev/2014-August/120224.html

Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
[mpe: Minor comment and printk rewording]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c