powerpc/powernv: panic() on OPAL < V3

The OpenPower Abstraction Layer firmware went through a couple
of iterations in the lab before being released. What we now know
as OPAL advertises itself as OPALv3.

OPALv2 and OPALv1 never made it outside the lab, and the possibility
of anyone at all ever building a mainline kernel today and expecting
it to boot on such hardware is zero.

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
Stewart Smith 2015-12-09 17:18:18 +11:00 committed by Michael Ellerman
parent a8da474ec1
commit 786842b62f
1 changed files with 1 additions and 4 deletions

View File

@ -103,11 +103,8 @@ int __init early_init_dt_scan_opal(unsigned long node,
powerpc_firmware_features |= FW_FEATURE_OPALv2; powerpc_firmware_features |= FW_FEATURE_OPALv2;
powerpc_firmware_features |= FW_FEATURE_OPALv3; powerpc_firmware_features |= FW_FEATURE_OPALv3;
pr_info("OPAL V3 detected !\n"); pr_info("OPAL V3 detected !\n");
} else if (of_flat_dt_is_compatible(node, "ibm,opal-v2")) {
powerpc_firmware_features |= FW_FEATURE_OPALv2;
pr_info("OPAL V2 detected !\n");
} else { } else {
pr_info("OPAL V1 detected !\n"); panic("OPAL != V3 detected, no longer supported.\n");
} }
/* Reinit all cores with the right endian */ /* Reinit all cores with the right endian */