]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.133/powerpc-powernv-panic-on-opal-v3.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 4.4.133 / powerpc-powernv-panic-on-opal-v3.patch
CommitLineData
bdae2828
GKH
1From 786842b62f81f20d14894925e8c225328ee8144b Mon Sep 17 00:00:00 2001
2From: Stewart Smith <stewart@linux.vnet.ibm.com>
3Date: Wed, 9 Dec 2015 17:18:18 +1100
4Subject: powerpc/powernv: panic() on OPAL < V3
5
6From: Stewart Smith <stewart@linux.vnet.ibm.com>
7
8commit 786842b62f81f20d14894925e8c225328ee8144b upstream.
9
10The OpenPower Abstraction Layer firmware went through a couple
11of iterations in the lab before being released. What we now know
12as OPAL advertises itself as OPALv3.
13
14OPALv2 and OPALv1 never made it outside the lab, and the possibility
15of anyone at all ever building a mainline kernel today and expecting
16it to boot on such hardware is zero.
17
18Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
19Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
20Signed-off-by: Mike Galbraith <mgalbraith@suse.de>
21Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22
23---
24 arch/powerpc/platforms/powernv/opal.c | 5 +----
25 1 file changed, 1 insertion(+), 4 deletions(-)
26
27--- a/arch/powerpc/platforms/powernv/opal.c
28+++ b/arch/powerpc/platforms/powernv/opal.c
29@@ -103,11 +103,8 @@ int __init early_init_dt_scan_opal(unsig
30 powerpc_firmware_features |= FW_FEATURE_OPALv2;
31 powerpc_firmware_features |= FW_FEATURE_OPALv3;
32 pr_info("OPAL V3 detected !\n");
33- } else if (of_flat_dt_is_compatible(node, "ibm,opal-v2")) {
34- powerpc_firmware_features |= FW_FEATURE_OPALv2;
35- pr_info("OPAL V2 detected !\n");
36 } else {
37- pr_info("OPAL V1 detected !\n");
38+ panic("OPAL != V3 detected, no longer supported.\n");
39 }
40
41 /* Reinit all cores with the right endian */