Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp2681281rwj; Mon, 19 Dec 2022 07:36:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf6fKkIMcRkacu9Fegaolr6D6h0uR0mew4fH6rsk+DRs6j8e3svrm8FHYPvehD3Az8+4A+Tl X-Received: by 2002:a17:907:ca5:b0:7c1:28a7:f79b with SMTP id gi37-20020a1709070ca500b007c128a7f79bmr29304633ejc.59.1671464209770; Mon, 19 Dec 2022 07:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671464209; cv=none; d=google.com; s=arc-20160816; b=v6BqXPUjTKFGQFgvkMUBGhyMWTnkSZJKVt2W4wZVGuamEg0wFsc14kFTyM4iKD0rxn BzolFo0ELCLIKt/tJp3dDbV+kgUiXfa9KlsDy1y2TSrBr7XP18xoYzImlqLKUg8mkoBl 8K4Tz6gfzj+UZqCuXfDYBjVmFLYkfI0fwsbE9Ny/fPi7O/ykL89chdGiNFvV1L6xuP6N vbzMtCRSNtPpMmrXsP3V3NuexN8MWpmYWuHvlsl82aQXE9KjmEHkTUr8o66QF4k1tqZV YO9moIQgxcDm5mUJVS3Se4896w/hQpl09Uf1WKoXjhCcCEctTPSHvwUQZJa2M0F9LBjw 0Mzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LVw7R2AYDX8PE4EutO6/SpU4YhsYWwEz7F2Mk7wVKtU=; b=0k+QchEVW8n4nUMNbs+nZpFiZIMzsHsdyp/Q3QElIallm6ePV0HJIRn1Qb2KMaM9bL 2vE/FLIRejbOdlzJnab4fnzg61iQtNjwLjcGIUlpeiyzD8el/TdbN4ngWYLj3wQURvmC gxCxJPCAPP9ldLArr+z6BpFvyy1OKFgJE/x4mWNxmp5/x80yMRIGjGW1oOvPuptbQSvw bK+wntP4qgkT0IGRW0TanHbjGdr+4HKM+v1jCJ2AfQyAVuw1sv87mLdj7kk3x7wHBWXi kfKGRq7QLqMbGQ18dpB7YwofJzLKb6UL/sIia6PY8iVzHHYjTyv7Wnk7bcOoF+8DZEsJ MK7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TWOHbnn1; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa8-20020a170906fd8800b007c0a7bc2854si10328471ejb.410.2022.12.19.07.36.32; Mon, 19 Dec 2022 07:36:49 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=TWOHbnn1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231761AbiLSPA5 (ORCPT + 72 others); Mon, 19 Dec 2022 10:00:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232095AbiLSPA3 (ORCPT ); Mon, 19 Dec 2022 10:00:29 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC1CE2AC2 for ; Mon, 19 Dec 2022 07:00:27 -0800 (PST) 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 sin.source.kernel.org (Postfix) with ESMTPS id 39D1BCE0F98 for ; Mon, 19 Dec 2022 15:00:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDE70C433D2; Mon, 19 Dec 2022 15:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671462024; bh=JbD1CERCvAqPiTchVboz7aWPTf4CqkVZl5hSSLWV8+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TWOHbnn13mEX9dougL+e1l5NCO4uC1JocxLiRTSuLMFPPooSOsduPqT9WpQeOtG6O w2zJBKPFa+CLq98BUmfOJTMjK7bvGLBCpvveQ1ekQ8bR2LmWkgnufJ4Obi/Awvwz3M n7qP1lNleQHNul8coOBFRf32nkDXxU7wxe4tfgcU8ogUOrPfC1Itbs9hxlkmwndsXj 2rBH/FnRTPol7uGGixifpUdUvmPnbyxy+o72SDzNKVoOPR7m7cPSHLft1yAfwpc1h5 lGiwqAGg8ay3BTPXtyoQlRsnMWvSY6wtMMPNexp2/Kzyu25GTC7kKoU8xhzOMlmWgc 3GMADB2IG5MTQ== Date: Mon, 19 Dec 2022 15:00:15 +0000 From: Mark Brown To: Marc Zyngier Cc: Akihiko Odaki , linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, Mathieu Poirier , Oliver Upton , Suzuki K Poulose , Alexandru Elisei , James Morse , Will Deacon , Catalin Marinas , asahi@lists.linux.dev, Alyssa Rosenzweig , Sven Peter , Hector Martin Subject: Re: [PATCH v3 1/7] arm64/sysreg: Convert CCSIDR_EL1 to automatic generation Message-ID: References: <20221218051412.384657-1-akihiko.odaki@daynix.com> <20221218051412.384657-2-akihiko.odaki@daynix.com> <87cz8hez0i.wl-maz@kernel.org> <1ef32b0c-6cee-75f7-e1e0-ede1f5b9a016@daynix.com> <87bko0g8m2.wl-maz@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u5kU4UMJcC0W4wyS" Content-Disposition: inline In-Reply-To: <87bko0g8m2.wl-maz@kernel.org> X-Cookie: I brake for chezlogs! 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 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 --u5kU4UMJcC0W4wyS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Dec 18, 2022 at 01:11:01PM +0000, Marc Zyngier wrote: > Akihiko Odaki wrote: > > arch/arm64/tools/gen-sysreg.awk does not allow a hole and requires all > > bits are described hence these descriptions. If you have an > > alternative idea I'd like to hear. > I'd simply suggest creating an UNKNOWN field encompassing bits > [21:28]. Alternatively, feel free to try the patch below, which allows > you to describe these 4 bits as "Unkn 31:28", similar to Res0/Res1. I agree, where practical we should add new field types and other features as needed rather than trying to shoehorn things into what the tool currently supports. It is very much a work in progress which can't fully represent everything in the spec yet. For things like the registers with multiple possible views it's much more effort which shouldn't get in the way of progress on features but with something like this just updating the tool so we can match the architecture spec is the right thing. > Define an 'Unkn' field type modeled after the Res0/Res1 types > to allow such description. This allows the generation of I'd be tempted to spell out Unknown fully since Unkn is not such a common abbreviation but I can see the desire to keep the name shorter and it doesn't really matter so either way: Reviewed-by: Mark Brown --u5kU4UMJcC0W4wyS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmOgfH4ACgkQJNaLcl1U h9BsAgf/SbrRls2l2YJ4ke3IATlZrBSMsZVI98FuGsLwHeKknHxUHGkJKrMfdbk4 diEmW0Bk69Cn4VAzsMwg7l0x8JMGJwE94sMyUwX0DOC0r1xI/KrAxhS/PetsIlVv tJQPP9FYO33oJmjDsAqCwaO90Qkdk4I7QrDos/eO+yucA6tISgrM95FSufMwTZqX 9pu8j5CizDnf77pZIXVUjhDMVzdqJsiGg3YTuHZpDXdfXq/COW4ECCMKB25GmCSh /pB2NEvWJoX6ZiDoyi7XxokmMv8nOPnMYyahTM1jO2N5tEcav9E4t9levchdQ5n0 PTo3pY7o2LisFYorkFn5o4eys9hYRw== =BwsC -----END PGP SIGNATURE----- --u5kU4UMJcC0W4wyS--