Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2926913rwb; Mon, 15 Aug 2022 14:12:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7sb317wLhI9Ft+VGoFzsotaws9FB6Fx0a53WQBFtwX5ycQgErC4AbSbblQFTXjNRF6EFih X-Received: by 2002:a17:907:980d:b0:732:f9ca:891c with SMTP id ji13-20020a170907980d00b00732f9ca891cmr11547686ejc.298.1660597938563; Mon, 15 Aug 2022 14:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660597938; cv=none; d=google.com; s=arc-20160816; b=luto57YvZW4QrC39SvMPmjhAs83ttrwLiO5QLY3SQaid2aq8VxXtddgsW6H3wWXBgF ZVdXoR59Q0LqaxFDWQ5aAd/AlT/XP7zHYWGxvMODAgQrgY88X2tlcl8TVK89NVqarPsx kPGh5PISTQPInYP66jpRbGKO100IL2udUlAd8HqSdQ5uceylphy7Cbf4mLAGh/brU6mf JwTEzHgWiXJTARdjVt8NyoJfzYCCcNU0xxCZYQev/v0D5B0oZNgYUpCsQYCXZLB7QluK OKR2gcYN9ABas9Tp9rOyfZob8P+SOD239XK3S3tcC6+sLeSNJo5PfDPLNdfqXO2OX1Xm mBDQ== 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=mxAHHcVlvwGm1CTJYFWGxJ8oC+a5uVRdivWhlNZQAEQ=; b=wF72pClKSVgsA1OzN5otomG+zQkzct3qc5feZRXNKu2Tca47P67bxlz6x9KOQH5fXr vwZE6gc6LP1Rfrk6qBNGoWl2tmiAGZsxZW/+4TbdXD+P1uQEHITigQOdPzq0/0uzsI5l vJfcaVwQPwwWsJWAr5YJYNm1JdqpDEXq4Qr+iA7y7p/v/MA4jxfS/P/NKX7GGqY5A4m0 oH7rBaPHMKFPc2buX3tf6vaYY/XTMHq5Vigizpqf/p0BG9x3WLVSLXTaHNsd8uIJW9uJ djCUu0NmKNrNat0Tp2QOhmQGivG51vqspT6COkcPKsBPbMQONwseTIwCQ22UlgHGoc5a x74A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sG0lRVrT; 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 p1-20020a170906784100b00708884b555asi6613147ejm.392.2022.08.15.14.11.53; Mon, 15 Aug 2022 14:12:18 -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=sG0lRVrT; 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 S1344341AbiHOTkJ (ORCPT + 99 others); Mon, 15 Aug 2022 15:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344493AbiHOTgp (ORCPT ); Mon, 15 Aug 2022 15:36:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F180D3121B; Mon, 15 Aug 2022 11:46: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 80C7F611EC; Mon, 15 Aug 2022 18:46:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFCB2C433B5; Mon, 15 Aug 2022 18:46:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589171; bh=cRlLFjAVgnrgy41c8V3O5sjZBDaCSnMXi0/hnIxRhHE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sG0lRVrTTPjT3TmXGIWDQaTbzay3DUxlUYOwPn/Ex0DH8Mp0DXkbbijk5holPtN8J OyYDvxbaDS7lIXss2ONas5PYGtja7edCx0B9gg6rK6tzWA50mHWonoMFWiTxG38MSW L1VHrvvgMaZlqH8qLjtCN9LqTzhxAW8poL04bGM0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Michael Ellerman , Sasha Levin Subject: [PATCH 5.15 636/779] powerpc/32: Do not allow selection of e5500 or e6500 CPUs on PPC32 Date: Mon, 15 Aug 2022 20:04:40 +0200 Message-Id: <20220815180404.529163114@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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: Christophe Leroy [ Upstream commit 9be013b2a9ecb29b5168e4b9db0e48ed53acf37c ] Commit 0e00a8c9fd92 ("powerpc: Allow CPU selection also on PPC32") enlarged the CPU selection logic to PPC32 by removing depend to PPC64, and failed to restrict that depend to E5500_CPU and E6500_CPU. Fortunately that got unnoticed because -mcpu=8540 will override the -mcpu=e500mc64 or -mpcu=e6500 as they are ealier, but that's fragile and may no be right in the future. Add back the depend PPC64 on E5500_CPU and E6500_CPU. Fixes: 0e00a8c9fd92 ("powerpc: Allow CPU selection also on PPC32") Signed-off-by: Christophe Leroy Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/8abab4888da69ff78b73a56f64d9678a7bf684e9.1657549153.git.christophe.leroy@csgroup.eu Signed-off-by: Sasha Levin --- arch/powerpc/platforms/Kconfig.cputype | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms/Kconfig.cputype index 87a95cbff2f3..81f8c9634832 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -170,11 +170,11 @@ config POWER9_CPU config E5500_CPU bool "Freescale e5500" - depends on E500 + depends on PPC64 && E500 config E6500_CPU bool "Freescale e6500" - depends on E500 + depends on PPC64 && E500 config 860_CPU bool "8xx family" -- 2.35.1