Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4466393rwb; Tue, 6 Sep 2022 07:58:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7EBOYbEBapzHA97BlFDS2+YSkbqr/yeMZtmVXiJSueVr23yku6LrAnm5kzBLgwMfLvKtsn X-Received: by 2002:a17:902:f604:b0:172:ffa5:2ed9 with SMTP id n4-20020a170902f60400b00172ffa52ed9mr55183226plg.7.1662476291398; Tue, 06 Sep 2022 07:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662476291; cv=none; d=google.com; s=arc-20160816; b=lOg4vCg0Sn9cYUoptRbcC+Reqv9U/fQtjwXpRrBUae7DYh+oPdfOmxWR/alrS/qspb F1m+fBxVIL61tCwu1N23o1dVbysiSF+19oozqNvu8jhhwy8Wfoq70DezxYgxTkiJoQbE Xyr4XZTgGGzyrdSkplMG73XyT58EAfdkjP5S/KbghrS6AuqBN01XGK+9IBxPmxd8qIP1 lCmZSFEPxtSp2TcfOgLIwzgTzs1QnKB34AmrrRqSVY1C7KfkAdTDi3Wna4j743Lytszq yugH42ILlVTgO5SjxIJFEOFyE5C+RBH8S1ooMxE02wZ8L0JuPvV+P+wnKjqYXpb8mDzZ YyZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pFR0NHFKtZv9mg8TzN4gygNi79N7sYo1qkoXg2t8WOA=; b=q2LphMPoxmr6QhiNMr6Dqyx4X1DivZFszwNNYJeW63pj6ByrWg/Ooz0SCkvPuKrLlm sdmD1YmSVrencu/h1dgrfuRu/Ni10tRoUK6i3RM3c3PuyqjoTtRDe0g749CG8fElZanH PvmQ9ah6oGmVQqgCBfoW/ItwdjE7Gss1YQVv/y4DDdYdDUZ4oa3ynZAOMfY09NSTYiai jNdYWHlnSMGU04jBbwFl3aGqGd1qxVbocCUDDxwS1MkoD2VzboSAPOKbd4lBBOTZ7YEs ttFM4sSFfS1e669HDcgFP2/Pl6lBLh09gYaVxCzWg/LbwxwcJnsMQJsSPnwHR7WgEuDn AivQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xi6tyNkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me6-20020a17090b17c600b001fe0682652esi16755724pjb.184.2022.09.06.07.58.00; Tue, 06 Sep 2022 07:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xi6tyNkj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240353AbiIFOGI (ORCPT + 99 others); Tue, 6 Sep 2022 10:06:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241502AbiIFOEm (ORCPT ); Tue, 6 Sep 2022 10:04:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 347367F119; Tue, 6 Sep 2022 06:45:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F17AD6154E; Tue, 6 Sep 2022 13:44:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0FAF6C433D7; Tue, 6 Sep 2022 13:44:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471853; bh=2ksWF3+Dh8PKAjG4HgagqD1gFfPasKEasH82ovX11Ls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xi6tyNkjKNS0U3Yfi5PklvY/e3u/AB2aflU3s3THnrbJTP21vQukB6v2+oriIm/sU pUGtnXNJ5qxphJ+0TjtJuKHC1WHoP7Q0sfzEGSSbjPJ45ZRCIa6CjvdHgfoIxgocQ4 vm5MRbiuvVY4ECt2Kr8AZ7iSx/6RHXQWEUXNM5zQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Ellerman Subject: [PATCH 5.19 061/155] Revert "powerpc: Remove unused FW_FEATURE_NATIVE references" Date: Tue, 6 Sep 2022 15:30:09 +0200 Message-Id: <20220906132832.010980486@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132829.417117002@linuxfoundation.org> References: <20220906132829.417117002@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Ellerman commit 310d1344e3c58cc2d625aa4e52cfcb7d8a26fcbf upstream. This reverts commit 79b74a68486765a4fe685ac4069bc71366c538f5. It broke booting on IBM Cell machines when the kernel is also built with CONFIG_PPC_PS3=y. That's because FW_FEATURE_NATIVE_ALWAYS = 0 does have an important effect, which is to clear the PS3 ALWAYS features from FW_FEATURE_ALWAYS. Note that CONFIG_PPC_NATIVE has since been renamed CONFIG_PPC_HASH_MMU_NATIVE. Fixes: 79b74a684867 ("powerpc: Remove unused FW_FEATURE_NATIVE references") Cc: stable@vger.kernel.org # v5.17+ Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220823115952.1203106-1-mpe@ellerman.id.au Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/firmware.h | 8 ++++++++ 1 file changed, 8 insertions(+) --- a/arch/powerpc/include/asm/firmware.h +++ b/arch/powerpc/include/asm/firmware.h @@ -82,6 +82,8 @@ enum { FW_FEATURE_POWERNV_ALWAYS = 0, FW_FEATURE_PS3_POSSIBLE = FW_FEATURE_LPAR | FW_FEATURE_PS3_LV1, FW_FEATURE_PS3_ALWAYS = FW_FEATURE_LPAR | FW_FEATURE_PS3_LV1, + FW_FEATURE_NATIVE_POSSIBLE = 0, + FW_FEATURE_NATIVE_ALWAYS = 0, FW_FEATURE_POSSIBLE = #ifdef CONFIG_PPC_PSERIES FW_FEATURE_PSERIES_POSSIBLE | @@ -92,6 +94,9 @@ enum { #ifdef CONFIG_PPC_PS3 FW_FEATURE_PS3_POSSIBLE | #endif +#ifdef CONFIG_PPC_HASH_MMU_NATIVE + FW_FEATURE_NATIVE_ALWAYS | +#endif 0, FW_FEATURE_ALWAYS = #ifdef CONFIG_PPC_PSERIES @@ -103,6 +108,9 @@ enum { #ifdef CONFIG_PPC_PS3 FW_FEATURE_PS3_ALWAYS & #endif +#ifdef CONFIG_PPC_HASH_MMU_NATIVE + FW_FEATURE_NATIVE_ALWAYS & +#endif FW_FEATURE_POSSIBLE, #else /* CONFIG_PPC64 */