Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C3089C433F5 for ; Tue, 3 May 2022 16:34:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=JWeflH77UlJDaFJsyGcXJArxvxBK0PVbpmTjaIOaEf8=; b=RxaBbXctEpmuzygoDs4MXUgyk8 nROWj1c1NgLwOgcWbv7ghV/4k7D0Coyngok+UW3cbF2D2rMVIPQnNrdbasw2rx+ZQlFJqHxeOFNZq HedNKn66wY+i0E1sQ3qnM5j2VMHoT5r48uOdKTkpB6aFkSHU868geW41D+ePaaICFgqiwHs1ftk27 l3XatmQbW4FNOACNtVuXQt8G4oFuJ6zyVBT6ss27BUkleq6GfKedapc+vZr7I20gOSAmsCmro6LYp kW0Q8Esu60+rz27NDEquyjW8yINTJFS10YsUiXda6UpqV4S6OvQ15aQJSdRfwwlGi75qalSc1omTm Kx1+RiXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlvSe-006jxX-Ml; Tue, 03 May 2022 16:33:16 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlvSS-006juA-Mm for linux-arm-kernel@lists.infradead.org; Tue, 03 May 2022 16:33:06 +0000 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 7132E61753; Tue, 3 May 2022 16:33:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF9C6C385B9; Tue, 3 May 2022 16:33:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651595582; bh=R1fxQhioy5YbiXntOIxVjit6GFTb0TsZjiX3QFaQbTs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oi8yciaaHmQ1UHiAVAMeG3vWTj4lZ0RXnH/iHlZvcgrvSOmrg1oXymB8NpEe11pR3 8PqWV4ZNMOu0W4SB6MYXVz40EawvJB6J1meL49KyKO3MU0OwakTmNPJfaA8l+OS6Wd 2c52pvHP3nhODHf2cIKEysgFXdHSZMCOKPCAg87SSkSOAcO8ZT1ihBlv0Pb9tfByg8 WMtSz7Ps6zNHSEu6kqdb8WnCfX+jbD2HXjOxaOg8hzNyWB9wL2gh/NK+F5zCVT7G3/ IxV7/LoPaBNnwSpqm3RxaOH5OfSwrFeHU9yVP/CBqw61f4xeHqey6oVZlvuCj1b5+j 7oYNwECPrB0dA== Date: Tue, 3 May 2022 17:32:57 +0100 From: Mark Brown To: Catalin Marinas Cc: Will Deacon , Mark Rutland , Marc Zyngier , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 00/12] arm64: Automatic system register definition generation Message-ID: References: <20220426181704.2583494-1-broonie@kernel.org> MIME-Version: 1.0 In-Reply-To: X-Cookie: Drop that pickle! X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_093304_809521_37E9C47F X-CRM114-Status: GOOD ( 23.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1785099060881953606==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============1785099060881953606== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Dy+7Ge0hfp65sNtz" Content-Disposition: inline --Dy+7Ge0hfp65sNtz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 03, 2022 at 12:28:50PM +0100, Catalin Marinas wrote: > I'm not convinced that we need the RES[01]_msb_lsb definitions, I'd > rather have a RES[01] with all the UL(x) or'ed in. We want to avoid > anyone making use of the RES1_x explicitly, though most likely we'd > notice this during review. But these are some 'constants' that will keep > changing even their macro name, not just the value (when one bit from > the field gets used for something else). Yes, I think that's just an implementation artifact rather than a thing that's specifically intended to be useful. > We could indeed add signed info for the enum fields at some point. As > for kernel possible like FTR_VISIBLE, not sure whether we should add > them to the same sysreg file. My instinct is to keep it strictly about > the architecture definitions, not kernel policy. My feeling with the kernel policy/ABI stuff is that we should put that in a separate file that references the symbols we generate here rather than merging the kernel policy into this file - as you say they're separate things. If we keep the stuff that's being typed in from the DDI0487 in it's own file it's going to be easier to cross check. We have enough different places where we need to type in all the kernel specific stuff (hwcaps documentation & code, cpufeatures, user visible CPU feature register lists & code and possibly more I don't remember off the top of my head) that I think we should be doing something to simplify those and make them less repetitive/redundant but it does make sense to keep it separate. --Dy+7Ge0hfp65sNtz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJxWTgACgkQJNaLcl1U h9CRvQf+ODCgpdTcljTPdERhtn9KI6iJUa6B6gMMTcUF06AwLfcGqaebop6Obujc 3930wV59XhuT94o4l4yFy+pZUfuxsrESAedqjmz4xcDmUlVYPEImqyz41LEISlz0 pOFGNgQtOMdzJ5x0PPn3Jmha8xJlhZ598Wk+4RP6gwjspFJ9vxS4Fjv4K+/K8RIK 6EhCDkkM4FOpMYJMnlu0CR3BnYyBy8UK52r/X99GkIMI1i2gv7pX2BH8zTIugyiZ CWgpMl8tuoevxkGcwl+U0yzkP3S4MmteRmUS47A6DEZ+kBlID8dJZhyfAI/t4LN5 eljSnSFFh2Hix+WdwT7Iu5+y0fJ6wg== =EbSL -----END PGP SIGNATURE----- --Dy+7Ge0hfp65sNtz-- --===============1785099060881953606== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============1785099060881953606==--