Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1122337rwd; Thu, 1 Jun 2023 10:43:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4HaO/LcpWKmGV4UXQPUZnN6/bJ3w1s+Z1CbCS/K9jF9j7iN36ikIX2e/sI4elh7rU6SfdX X-Received: by 2002:a17:902:cec5:b0:1b0:34c6:3bf2 with SMTP id d5-20020a170902cec500b001b034c63bf2mr7096956plg.5.1685641437886; Thu, 01 Jun 2023 10:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685641437; cv=none; d=google.com; s=arc-20160816; b=wMMKCQKwblRV79cJjzaUvR4+waUPbGY2chCecsnEqzp8tKnFcLhQNZkj+3MI8EPXFd fpmfwpYxbOBu3avtu1bVoRF4B8g8CvBKrPuQOGpfC0FBwPvHt0fUGo7JI6ngBnBTKjb8 4d8YCKcIBLy2xyw4di/Nf+01hHXKeAm1ywY161UVHrSx0DWnpc4aRDqCUhghlpFOBlpK FuqsmXdwBIjaGF2LZtqP0tX0qmnAH5ZYIpBjFZtXWY/KIN6VjaeU1ALx4Wf29CaNyw6/ YI/OcBOZ9ftyQh/7b7li6dBWpHbc1wRbDDroZ/6wqApOdv8eRSwR9Ma+iHiPygyV+GHJ Cmnw== 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 :dkim-signature; bh=VRHEMIVPe3oarpdkf6ZEnVTITxvHoDlvDUFuwgZq69A=; b=hsgKGodD/Nt62kF6ec5ThKzMTebpZBl53/biOExHyhh6N0BaCpIlI6fyGU63svg5VS UE5cTzQi/OVTxVVt6CZznHhvGQttyPVHsnTG0eA1UX4nKW+ED8qWwaIEk3DjElPNB7r7 JlKAiYGGjOWpJjx33IQ3ZE4UB5/dUZePAidJaOpy6LIjVHL78eFXx7MwIwpV3ZkBBgHD OZq7tZuElcg4JF7phIQqXEPnLD5TUllzQfgcUW2UNoRMUO9rxwBdQZg6+pGJEu7O3OQP uDkmKRg9l96doKEiYKlIvTxuyBc9ez2u8CYMNUaY6sOTrLbRnMOdsg5dsh7ZEAIKcRI5 SNKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="o/tcJHGX"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a170902e85000b001a6dfb35f63si3156070plg.385.2023.06.01.10.43.32; Thu, 01 Jun 2023 10:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@kernel.org header.s=k20201202 header.b="o/tcJHGX"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231881AbjFARjo (ORCPT + 99 others); Thu, 1 Jun 2023 13:39:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbjFARjn (ORCPT ); Thu, 1 Jun 2023 13:39:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D304136; Thu, 1 Jun 2023 10:39:42 -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 EE33E64860; Thu, 1 Jun 2023 17:39:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60D9AC4339E; Thu, 1 Jun 2023 17:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685641181; bh=rOyxKwyKoD8JRFg4gUZg/5MsYAzctjBiJEmXXIw+2Pg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=o/tcJHGXDGK+Cmz0WPMH9eqt4DXVRB87b+bOc4yCFZZx+pNoEHu0L6Kk/WHl5TZCQ v4wg++ka5L5/koa89l5lEtczt9Lp/CS49/lq9S/D/gsV6IN2cJNGZcqlW9mzDWtgf8 kSPa6HE9uQjRqdmZMZGwEA+2H5w1XPFs1bwtf87IXl053GkxGBjbRGWwQEhiSemK34 SURRDqI9JYl4AuMZSjsgfbIzfuYI4ScXci6h+5ayJwzrwQeS7v4C8WHfjDAbGm6Wt7 HhKwh2oygRzaHVjZAo7rCNsfYsqW/i3EtbygDwQjD02rjzFKXYyUdDoEjObai2iibs UOf6kgrQWTHWg== Received: by mail-vk1-f181.google.com with SMTP id 71dfb90a1353d-45c6c6e0ab2so599177e0c.1; Thu, 01 Jun 2023 10:39:41 -0700 (PDT) X-Gm-Message-State: AC+VfDzzxOBgQs22Zp+fPZ5LbXE5al098PVjDPukZSVDJiG9ue70wnq0 mTIF1LqBegezr4klJ3rP77T6/6P+iMKs1xV/gVo= X-Received: by 2002:aca:ead6:0:b0:398:2f7f:a5cd with SMTP id i205-20020acaead6000000b003982f7fa5cdmr1228908oih.24.1685641160132; Thu, 01 Jun 2023 10:39:20 -0700 (PDT) MIME-Version: 1.0 References: <20230531130833.635651916@infradead.org> <20230531132323.722039569@infradead.org> <70a69deb-7ad4-45b2-8e13-34955594a7ce@app.fastmail.com> <20230601101409.GS4253@hirez.programming.kicks-ass.net> <14c50e58-fecc-e96a-ee73-39ef4e4617c7@gmx.de> In-Reply-To: From: Masahiro Yamada Date: Fri, 2 Jun 2023 02:38:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 07/12] parisc/percpu: Work around the lack of __SIZEOF_INT128__ To: Linus Torvalds Cc: Helge Deller , Peter Zijlstra , Arnd Bergmann , Jonathan Corbet , Will Deacon , Boqun Feng , Mark Rutland , Catalin Marinas , dennis@kernel.org, Tejun Heo , Christoph Lameter , Heiko Carstens , gor@linux.ibm.com, Alexander Gordeev , borntraeger@linux.ibm.com, Sven Schnelle , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Joerg Roedel , suravee.suthikulpanit@amd.com, Robin Murphy , David Woodhouse , Baolu Lu , Herbert Xu , "David S . Miller" , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-s390@vger.kernel.org, iommu@lists.linux.dev, Linux-Arch , linux-crypto@vger.kernel.org, Stephen Rothwell , Michael Ellerman , "James E . J . Bottomley" , linux-parisc@vger.kernel.org, John David Anglin , Sam James Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.3 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-crypto@vger.kernel.org On Thu, Jun 1, 2023 at 10:29=E2=80=AFPM Linus Torvalds wrote: > > On Thu, Jun 1, 2023 at 6:32=E2=80=AFAM Helge Deller wrote= : > > > > I don't think we need to care about gcc-10 on parisc. > > Debian and Gentoo are the only supported distributions, while Debian > > requires gcc-12 to build > 6.x kernels, and I assume Gentoo uses at lea= st > > gcc-12 as well. > > > > So raising the gcc limit for parisc only (at least temporarily for now) > > should be fine and your workaround below wouldn't be necessary, right? > > This absolutely sounds like the right option. Let's simplify the > problem space by just saying that parisc needs the newer compiler. > > Right now we have that "minimum gcc version" in a somewhat annoying > place: it's in the ./scripts/min-tool-version.sh file as a shell > script. > > I wonder if we could move the gcc minimum version check into the > Kconfig file instead, and make it easier to let architectures override > the minimum version. Currently, it is invoked in the Kconfig time, but not directly in Kconfig files. scripts/Kconfig.include -> scripts/cc-version.sh -> scripts/min-tool-version.sh It would be ugly if we wrote the equivalent code directly in Kconfig files. > > I don't quite know how to do that sanely, though. I don't think we > have a sane way to error out at Kconfig time (except by forcing some > syntax error inside an 'if' statement or something horrendously hacky > like that). The parse stage can fail by $(error-if ) macro, but the evaluation stage never fails. I think it is a design. I think checking the compiler version during the parse stage makes sense given the current situation. The compiler version is fixed when Kconfig starts. If the compiler is found to be too old, there is no meaning to proceed. You suggested to choose a compiler in the Kconfig time: https://lore.kernel.org/lkml/CAHk-=3DwhdrvCkSWh=3DBRrwZwNo3=3DyLBXXM88NGx8V= EpP1VTgmkyQ@mail.gmail.com/ When we achieve that, moving the min version to Kconfig files will be the right thing to do. Then, everything will be evaluated dynamically. > > Added Masahiro to the (already overlong) participants list. > > Linus --=20 Best Regards Masahiro Yamada