]>
Commit | Line | Data |
---|---|---|
bdae2828 GKH |
1 | From 786842b62f81f20d14894925e8c225328ee8144b Mon Sep 17 00:00:00 2001 |
2 | From: Stewart Smith <stewart@linux.vnet.ibm.com> | |
3 | Date: Wed, 9 Dec 2015 17:18:18 +1100 | |
4 | Subject: powerpc/powernv: panic() on OPAL < V3 | |
5 | ||
6 | From: Stewart Smith <stewart@linux.vnet.ibm.com> | |
7 | ||
8 | commit 786842b62f81f20d14894925e8c225328ee8144b upstream. | |
9 | ||
10 | The OpenPower Abstraction Layer firmware went through a couple | |
11 | of iterations in the lab before being released. What we now know | |
12 | as OPAL advertises itself as OPALv3. | |
13 | ||
14 | OPALv2 and OPALv1 never made it outside the lab, and the possibility | |
15 | of anyone at all ever building a mainline kernel today and expecting | |
16 | it to boot on such hardware is zero. | |
17 | ||
18 | Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> | |
19 | Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> | |
20 | Signed-off-by: Mike Galbraith <mgalbraith@suse.de> | |
21 | Signed-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 */ |