Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3409378rwa; Tue, 23 Aug 2022 04:25:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR6y1N/l578JqUbnACMVtQ4hVJfAPNb6sHTyPziJdHWIb22EWPBGpTux+6YKLAed2F1iVc3R X-Received: by 2002:a05:6402:354d:b0:447:14c8:e3d0 with SMTP id f13-20020a056402354d00b0044714c8e3d0mr2668566edd.43.1661253914513; Tue, 23 Aug 2022 04:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253914; cv=none; d=google.com; s=arc-20160816; b=K8NvffRMFEjR6/XT9/kjEGbhkQOFV+L9+BQG814PZr62484U7zFWQG+BKDZw9xW6u5 LY6mlo3OBiKJeCmAdcZnkadf3MTBAcdc9PtDQFrVDSTWjTE6YrB+vCE7KLcrmGwenXdZ ts79TtmGETE1N8Ys2IqwF6jDXL4/s0h85mKPYZuAMX7C+kFK9S/PcAluBgFKkHmYi8th 70Ytklw0CNc1WV8n5up8uwrHoYeRuSIJKZfPNRp1eVg+oteCbp7Rh/v0nlruqJMBNWv5 CvOLEJ5WdGVcs43tPkvd/QJhd9PSPDW+mI6ZGq7cnvxLSt2gB+W+aCR2NH5aZh2Wy+ZM 3DkA== 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=JaJ/Bgk/6wmYJk92O2yCDEGg0p1SNfEMcNfAVDRY+s0=; b=lwWRCbG3lCAdhOG/WnxkME5aD1mSDvxDHcrFgCc0ege8N29O77L8Vy5Ikd65nGE7S3 G5oZkkV+9jPxgl5vlSTftwDxPvPjP8o3Fya/GkivQAQxPyj4zUCpPHYPEflFn4WeXaXZ 51G+xBOMXGiPsgtjh6Y481G8ASbjLl8Nj5RvdbTssZ18kTWPmLqEdMn6oG/Q/XYzhbdg Z4QHcfYZ/lVKsx2k/xFaTbuR9R35pMB00Uo4lWglUvmo+wNfwPtdvobRutYBqx0V11jE sHZvHet67py8PIEhcW/tsce+9cLIM0SWunMYRcETmuChHN3A+la55BtG4IeJi9KD57cm Fmxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sSz8nVNi; 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 z9-20020a056402274900b00446b9916bcesi2353322edd.13.2022.08.23.04.24.48; Tue, 23 Aug 2022 04:25:14 -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=sSz8nVNi; 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 S1356475AbiHWKra (ORCPT + 99 others); Tue, 23 Aug 2022 06:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356136AbiHWKlc (ORCPT ); Tue, 23 Aug 2022 06:41:32 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F567A7A98; Tue, 23 Aug 2022 02:08:52 -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 ams.source.kernel.org (Postfix) with ESMTPS id C3460B81C65; Tue, 23 Aug 2022 09:08:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0030AC433C1; Tue, 23 Aug 2022 09:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245728; bh=800Ti04Gr9T0VEvRB2LDK0haSnicZUITX9uNJeI3KT0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sSz8nVNihSBqIx/iseZgc3Uh/pQ6S6wWHUpVwsAnWqEU1tSWrCsfuCpYTFPcY6oIt Fz4I6LGBohd2/2dIZQTcKeTzcJXK6yW8CAb+160TzhyWhvdkm3zT4j8cDKJbcXvHs7 ShVt116BtkkNujkgoGJp4Ygk2gT/aY08p1kNDquo= 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 4.19 169/287] powerpc/32: Do not allow selection of e5500 or e6500 CPUs on PPC32 Date: Tue, 23 Aug 2022 10:25:38 +0200 Message-Id: <20220823080106.452222920@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 ad0216c41d2c..67ad128a9a3d 100644 --- a/arch/powerpc/platforms/Kconfig.cputype +++ b/arch/powerpc/platforms/Kconfig.cputype @@ -134,11 +134,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