Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2034778imm; Thu, 24 May 2018 04:53:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr4yM9hecnrEjkV2s7UvaIxoLLalvIG1YABFi+D0G68JJikXb4DaF7ZzwwgK5+PlDhZNGQJ X-Received: by 2002:a17:902:8207:: with SMTP id x7-v6mr7108942pln.100.1527162823161; Thu, 24 May 2018 04:53:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527162823; cv=none; d=google.com; s=arc-20160816; b=Ikrzvv9TfWATGbICNVaTQDPvxA9toWIRGGIRmF5HdKHshkSWU8e3vT/Am6T5hAdFBq pC5yKUMWzMVYYFc2GS3SMOKavsph7yshSt/fPRDEus+F+Lu0/ulb5MVs9aQ1MKWcvqte KFqALhirHjlHe7ZnDPcESLJqGz5b++WyE78U0n8bIvCooDWxl170H6/vsPnpcpr4gIMv XHiHHGzvM6GkGh/1VEaDKkHjnEbRi3FDMcp3iFwD/kTzo9+UN/STeVby09HA4w0SROcP aHE0+OHhI2GK7HeQsTrn6zN3GIv6FGNnqz8vfJ32PlCMp8RckqITFtkSw9As76HkQKc9 e+4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=AQeioIyQs8LPTVxIuwVHgNxf0CyN2ccBpVNviLIO1c4=; b=QK1zTvIKXlYGndJiu42sTD0MrRtJ+Wqy+t2s2hUjE48sl1T5Tm91DvUWzMssOiesgR MU5VZk3g1LiTFQjf9XMXoL9N8YOpeeZgg0nxeY7sXEB38DRfwAXF1Pe797p3TrndRHpX hU+7h8ycGbNcyaD6iXwWIqkcEmnVBr3/zywbgiOUy7XklrNjCpW6+Hj/avUjtSWXrPfZ TXb5LeUsbwW/gZUuP/dZDDtOK7QOxKVsHYWRJRzCdCjW+JVvR3BeEGe5YZ7vQoBGZp9H /MwTWkXIYCthToESIZiWETUZvcLE+eA2tEseoenxieGFyRuJPVqdg4tfTjF6zptPVEZo WCpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1rku6pQD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11-v6si13907893pgt.114.2018.05.24.04.53.27; Thu, 24 May 2018 04:53:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1rku6pQD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966923AbeEXJq3 (ORCPT + 99 others); Thu, 24 May 2018 05:46:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:57614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966482AbeEXJqY (ORCPT ); Thu, 24 May 2018 05:46:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E9B3D208C3; Thu, 24 May 2018 09:46:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155183; bh=GP8MpZBEtGORR66CEsBH4axkU41u46J6VlYrWDCI64E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1rku6pQDHThQf21bmMsiVpv3EOu50n8Nlmq4RL98/Kowerpspp7PayfH+Q/xIcPOS NrP365qyTw7II44zNUhTSnVUdWB6BkTkTsLqk1uy2x3h2Sixo+2gCwIL9p+ANAaem/ MzPqYJZtx8KzoJcrTvCQ8CpkDEPpD6Fdf1e1xlD8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stewart Smith , Michael Ellerman , Mike Galbraith Subject: [PATCH 4.4 42/92] powerpc/powernv: panic() on OPAL < V3 Date: Thu, 24 May 2018 11:38:19 +0200 Message-Id: <20180524093203.069363412@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093159.286472249@linuxfoundation.org> References: <20180524093159.286472249@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stewart Smith commit 786842b62f81f20d14894925e8c225328ee8144b upstream. 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 Signed-off-by: Michael Ellerman Signed-off-by: Mike Galbraith Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/powernv/opal.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -103,11 +103,8 @@ int __init early_init_dt_scan_opal(unsig powerpc_firmware_features |= FW_FEATURE_OPALv2; powerpc_firmware_features |= FW_FEATURE_OPALv3; 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 { - pr_info("OPAL V1 detected !\n"); + panic("OPAL != V3 detected, no longer supported.\n"); } /* Reinit all cores with the right endian */