Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp863302imw; Fri, 8 Jul 2022 13:13:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tjfPFru0LkxNmxCtmN7M0TBPR6pbWao9GtQ4vXKfLVZxiTtOTdVgVATo1AyB4S9b2DvHiH X-Received: by 2002:a05:6402:350f:b0:437:6618:174a with SMTP id b15-20020a056402350f00b004376618174amr7047352edd.329.1657311221786; Fri, 08 Jul 2022 13:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657311221; cv=none; d=google.com; s=arc-20160816; b=hxvdY88LW9yGqG5HS2yzT4t65f1RuxOYu6NMM3GmKVfW88+ZNG00wo02OH6XsNX4+8 xJ0sCsv3iQRuIcU/wP/073LEbD+Pz9VEEk7zvB5VrcjLLKsSm2CtBGal90O2y+ioJdkx B91ymREU9if+UuNL5AWR0WvGeY8kkxN8nziRmDsiSIH4wKLIVXTCvsiDgEfysNUsM29f pyQe8uHnoT8VFymMi4NfS9gJ3n0FYUwjULWvYkvf3vDCzZimZ80G58N6Gfj7q1urhGOb UThH2okjOEPX85jT9YiR3dBEb+Udb/TbvO7Y88nsMs89buX1Noh1PKcaXLsouDUT0U2G ZSIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=YpPvtfllp8u6zDCQvmXlbCCzNpnO/oRKiWPNdinJVik=; b=pCavyiJhJXcA4JRH2MFSK8HHC51ovohJr5Uvr6MLIlPw5kBH051DbwqZtanipgsq9e 55t4AkxHpxdQpHPOiVRWJOIx2YG9K1FcF53jAJ2RSGcEmmvSTdO82FZX0/juGXugi2sX DBrvT/ls5o6mYYw3oDjy6FBrwMhf1GuFKXDjIXiakX9fl+niXk2BevJ53WpeLLwKCxcR YP5o8o0dltnxyJPkVM6VwUa4npJfrviY1tMHNrHhiW/rDUZYcBCYgDM8pDu/JqCib1Vg +d5dLM38bcg91ap1yGWRjRZ5uYpOxbc414hc7VIRTAHQH9hDeMhx+LSI5MVEexTh3x0f rUuA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fy12-20020a1709069f0c00b0072ab880b38esi7065392ejc.764.2022.07.08.13.13.16; Fri, 08 Jul 2022 13:13:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239957AbiGHUEb convert rfc822-to-8bit (ORCPT + 99 others); Fri, 8 Jul 2022 16:04:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238564AbiGHUEa (ORCPT ); Fri, 8 Jul 2022 16:04:30 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC8C315817 for ; Fri, 8 Jul 2022 13:04:28 -0700 (PDT) Received: from mail-yb1-f182.google.com ([209.85.219.182]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MK3eC-1nroYu3Bsc-00LXkx for ; Fri, 08 Jul 2022 22:04:26 +0200 Received: by mail-yb1-f182.google.com with SMTP id h132so8804614ybb.4 for ; Fri, 08 Jul 2022 13:04:26 -0700 (PDT) X-Gm-Message-State: AJIora+mvlUh37pWQdA/TtdPkD8+t6ZLpz2x4ZRCyNPQtHF3vclrsayQ KWKCukCFuyECn+ARiMW6qn9f42IrGLMVxhkwlek= X-Received: by 2002:a5b:b47:0:b0:66e:3617:d262 with SMTP id b7-20020a5b0b47000000b0066e3617d262mr5273482ybr.106.1657310665592; Fri, 08 Jul 2022 13:04:25 -0700 (PDT) MIME-Version: 1.0 References: <20220524093939.30927-1-pali@kernel.org> <20220702094405.tp7eo4df7fjvn2ng@pali> <8D562851-304F-4153-9194-426CC22B7FF2@ellerman.id.au> <20220704103951.nm4m4kpgnus3ucqo@pali> <20220708171227.74nbcgsk63y4bdna@pali> In-Reply-To: <20220708171227.74nbcgsk63y4bdna@pali> From: Arnd Bergmann Date: Fri, 8 Jul 2022 22:04:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler To: =?UTF-8?Q?Pali_Roh=C3=A1r?= Cc: Arnd Bergmann , Michael Ellerman , linuxppc-dev , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Provags-ID: V03:K1:YjtXZ4WSmWX9jKUxjdS3jZ9wOHyp0zzRNLlBkRST/UBGYPYJzET Rp3cbUkaywPjfo1REmUKLFD3aUowGbxx1InHTzAOMYAYAVMZVvwicFqcTi72bVR6CnQxaZW n1dSetfGjzvMaSzjUimR/YdHNhz61k2Ck1+4NvzWLXz6G199GIFjjHtsfW03b1hMFeL7NVm ln5fdOfRseyvU6v4prPVw== X-UI-Out-Filterresults: notjunk:1;V03:K0:X+0oUCDcVIk=:7Dhk8PA75E/bdq2WAGWn8P 3RWSZ8WbSrVMvbvDWM3CR7HCEbbIr5D9W8p9xNUTB1SrqBxoX9paeyeADY1t+Vo2qJcwDjwrn pZFCST0iGZy6tmUFuoTJA7BX79oPCS6SrgDb4DS6weZz56zICqBOXXAKisw6MLDbCsT8W9oa3 iSoBH1Dwm2oLvNCw2DBDXEtHLZXGJ4DRGR7As4ITFO4uqfrK6tdf0reBn0DaQ2rmllzPbqimw FeAflHy0aLIXlgQsS7S1XV7+ysBok3UTYS9QGbVqcXbvlQAnP2sKvG7rN/wYXt+NKhCsxGFk8 sVDL8PJ+Uhnr/S21lRgq1l7vzf0N9DgAZiJafm9j76p5FsGpsQ/c8pDSawAgg8ogw+3T3+uJ4 skrSGTJp6SGQ+AxcxTqBjYsVxZ1MP5pWl/YPqMSPKl0M/o9uG3PUUX/rNw3GI3adpVybpGLqi Epn0hKQvg3TrGODoTHEa669N/9lFDhOmDScB+xRSMfPEnroe+7U/UZ1Jlz/+QU0vmWMdTjLjc fUaqO2BqrCOQA8MWet4FqSiM1QQGofg3FIv0LXI+5J5vzCD1MQTzG7MmZgQahk24unt1gFX73 yNdmu86ai5fNsAuN9IPhiXXQQWivoMJWss+74O8ILMQ4vT5EvtZPVcthMWnpkGNMr2VcS4A72 GUXZO/CZ8OhyykQ8vFaK3bE8bQ2shooRZbeAj8kqwjnxAw4oOTCLKJ/L0Oi4YrzOn9lFsM2VT 8wifmixscE/gEdEBFNuByUrE4S55QTjTgbfwwmSkWE401TPvfxA9xc4VCaMM68QsBt2T3cF4e 4nrp5Cz8wtW74p14mu/TU5ufk3mjJm1vIKbX+AVA5KzeLIkcUpG8Alxaqzm/5AVI+Hcyc54Bv duwTK9V5Og9fhKryQePQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 On Fri, Jul 8, 2022 at 7:12 PM Pali Rohár wrote: > > On Monday 04 July 2022 14:07:10 Arnd Bergmann wrote: > > Another problem I see is that a kernel that is built for both E500 and E500MC > > uses -mcpu=e500mc and may not actually work on the older ones either > > (even with your patch). > > Such configuration is not supported, see arch/powerpc/platforms/Kconfig.cputype: > > config PPC_E500MC > bool "e500mc Support" > select PPC_FPU > select COMMON_CLK > depends on E500 > help > This must be enabled for running on e500mc (and derivatives > such as e5500/e6500), and must be disabled for running on > e500v1 or e500v2. > > Based on this option you can enable either support for e500v1/e500v2 or > for e500mc. But not both. This looks like a bad decision in Kconfig though, as there is nothing enforcing the rule: If you want support for E500MC, you have to select PPC_85xx, which implies E500 and allows selecting any combination of E500v1, E500v2 and E500MC based machines, but enabling any E500MC based one breaks all the others. If this is a hard dependency, I think it should be enforced by making E500MC a separate top-level option in the "Processor Type" choice statement. However, if they can actually coexist, the help text and the Makefile need to be fixed. Arnd