2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/arch/powerpc/platforms
Mahesh Salgaonkar 6507955c97 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>
2014-10-13 18:09:50 +11:00
..
8xx powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
40x powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
44x powerpc: Fix build failure when CONFIG_USB=y 2014-09-25 23:14:54 +10:00
52xx powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
82xx powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
83xx powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
85xx Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git 2014-10-04 08:59:06 +10:00
86xx powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
512x powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
amigaone lib/scatterlist: make ARCH_HAS_SG_CHAIN an actual Kconfig 2014-08-08 15:57:26 -07:00
cell powerpc/cell: Move data segment faulting code out of cell platform 2014-10-08 20:14:55 +11:00
chrp powerpc: Remove powerpc specific cmd_line 2014-10-02 17:33:55 +10:00
embedded6xx powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
maple POWERPC: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
pasemi powerpc: make of_device_ids const 2014-09-25 23:14:46 +10:00
powermac powerpc: Remove powerpc specific cmd_line 2014-10-02 17:33:55 +10:00
powernv powerpc/powernv: Fallback to old HMI handling behavior for old firmware 2014-10-13 18:09:50 +11:00
ps3 Merge branch 'powernv-cpuidle' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc 2014-04-02 13:47:29 -07:00
pseries powerpc/iommu/ddw: Fix endianness 2014-10-03 14:22:34 +10:00
fsl_uli1575.c of/irq: Refactor interrupt-map parsing 2013-10-24 11:43:04 +01:00
Kconfig powerpc: Remove platforms/wsp and associated pieces 2014-06-11 16:35:38 +10:00
Kconfig.cputype powerpc: Use CONFIG_ARCH_HAS_FAST_MULTIPLIER 2014-09-25 23:14:49 +10:00
Makefile powerpc: Remove platforms/wsp and associated pieces 2014-06-11 16:35:38 +10:00