Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2310955rwl; Thu, 6 Apr 2023 08:31:11 -0700 (PDT) X-Google-Smtp-Source: AKy350agNK5i/8rddAwsVfm6j92uTHtpgJn+tos6XOo/0P2gm1lKmnt1R8eBFGrupfhPSat5DCn4 X-Received: by 2002:a05:6a20:a82a:b0:d6:82a:ab45 with SMTP id cb42-20020a056a20a82a00b000d6082aab45mr3373856pzb.29.1680795071199; Thu, 06 Apr 2023 08:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680795071; cv=none; d=google.com; s=arc-20160816; b=JBE0iPUHj4gIOtfjYaz/09TfpPxJ9J1kwBPuG6LI/imubtG7qsmc18oA7Cq1Ci4hZO W8joWuSCIz1JHNapNo2fQ1AVh087ko0tH6uybiQLRhpaIV+6mTbA2tJJ94FawwFXJjkr E9MnxX/fqfIdoz2NuKoVgrcipzEM5lsSCrxtEqxhsDk6E9TwIHkDQXp3pgdxKvDYAp0c 1WCnyxT2/zTDPewKN4QaCWbs1vqAMcQgiNsr+j7C4HefhGdTHtEP0eblFD4IcrdgEeti G2nQiaz18n7BOaGcyXhbLkK48MhsKHTysWX6YBIwgboyZ2zMSITr3PpTy8VSMVIb+spy Z1iQ== 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=L/qXG35ec5G+eA/lrsHAy97V+X4wVVxWLtESiV3v4R4=; b=zTHarYhhw6LN8pK8SHy2w8yXLvk8R/4y7l+AnDxstJlu+Khpwn880TVC4SPGh2sEiq RSIs2aUDPuJh597Wu8gPsbgIZv4xNbkwxb4KgVRLB9Y8DAtaQXPBVv0XvByfafQVRpFd mJ0ZTA3Amews6zZqcm9cqj6l2jQXFYAWHU/GWxqxT7UFeRUe5ezdCFnMfvT78N9GYNmG xvQRC0xzaJLyqdvsk0cGRQYSbXuEF2Egj3ZAhJ/MgaE+W3LYMKhHLmRRjtc3euH+Qm+k qzVMRteIVX3wHoUhXZvKwCyJq8yw5JXbnmryrC1qB86nuxFM4yoCvvNG9azV5e87ONL8 eDXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mYHkuQ4x; 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 w185-20020a6362c2000000b0051325c1af3dsi1453559pgb.399.2023.04.06.08.30.54; Thu, 06 Apr 2023 08:31:11 -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=@kernel.org header.s=k20201202 header.b=mYHkuQ4x; 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 S239734AbjDFP2t (ORCPT + 99 others); Thu, 6 Apr 2023 11:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239735AbjDFP0K (ORCPT ); Thu, 6 Apr 2023 11:26:10 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9318DA244 for ; Thu, 6 Apr 2023 08:25:58 -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 28D7F64956 for ; Thu, 6 Apr 2023 15:25:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D5EB2C433AC; Thu, 6 Apr 2023 15:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680794757; bh=0XcFxg2ON9n02AwkyUk+wOw5Kqak4ShAAevzNca1xvI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mYHkuQ4xbB3ZPaH5cfe81BTQiCl1DaCLmjEdW1gEgWozyywUvAdj/u+kZ3gCOkEHt v156BcMQfJ3TrI6O8IBkkxCFwRpPtSjBitdm7a2QbMaky3R91Xsc+y8Um8VNKc9c/E 7Ki7Wz38wQ2iBsC0Mcmq6Zo4lvHmb7YD2Tb1ghXku//AvhOnIiWiMp87zTo9zUvc9c OMa5Z/gDkYZ/4+e3ldFstihQ0W+EfqnONZayqUla97UHsT+yJOWl+xxboR3z7A+7vC RXFOhdWRmkoBNOwjjTjVNLBAOP4oS8jAeFld5uQXJEL2TRz3zEldBoZgeTHUeYpTZ1 KB2iOn3+ndqKw== Date: Thu, 6 Apr 2023 16:25:52 +0100 From: Mark Brown To: Will Deacon Cc: Catalin Marinas , Joey Gouly , Anshuman Khandual , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] arm64/sysreg: Convert HFGITR_EL2 to automatic generation Message-ID: <8aeccf95-6582-495e-930c-2d6723a21b6f@sirena.org.uk> References: <20230306-arm64-fgt-reg-gen-v3-0-decba93cbaab@kernel.org> <20230306-arm64-fgt-reg-gen-v3-2-decba93cbaab@kernel.org> <20230406144653.GB11479@willie-the-truck> <8474042a-d0e3-4316-9740-733c524f2e27@sirena.org.uk> <20230406150456.GA11802@willie-the-truck> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dFFL3Q5P6UjSt4HY" Content-Disposition: inline In-Reply-To: <20230406150456.GA11802@willie-the-truck> X-Cookie: Man and wife make one fool. X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 --dFFL3Q5P6UjSt4HY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 06, 2023 at 04:04:57PM +0100, Will Deacon wrote: > On Thu, Apr 06, 2023 at 04:02:18PM +0100, Mark Brown wrote: > > On Thu, Apr 06, 2023 at 03:46:54PM +0100, Will Deacon wrote: > > > Can't we generate this file from the architecture xml? That would hopefully > > > avoid typos like this and make review less tedious. > > I agree that this seems like a sensible idea however there has > > previously been pushback on the idea of providing tooling to do that, > > and we would want to manually integrate the output of any such tool > > since there are a number of cases where for legacy or usability reasons > > we rename or combine fields. The cases where we use a Fields block to > > cover identical ELx versions are another issue. > > I also note that while the XML is viewable on the web AFAICT the only > > directly downloadable version of the architecture XML available > > externally is in PDF format which is not entirely helpful for this > > purpose. > Sorry, I didn't mean to automate this in the tree, just that you could > do it locally when you generate the patch (as I suspect this must be > tedious for you to write out by hand too!). We've had a string of typos > in the definitions so far, and it would be nice to take steps to avoid > that for future changes. Yeah, normally it's not too bad (and it can be useful to make sure you've actually looked at the entire register definition properly) but I did just about get annoyed enough to write something locally while doing this register. You could certainly get a good chunk of the way there, especially for simple fields (enums would need manual naming IIRC) - if it hadn't been for the pushback mentioned above combined with what's on developer.arm.com I'd probably have got round to doing something already. --dFFL3Q5P6UjSt4HY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmQu5H8ACgkQJNaLcl1U h9ASYwf+PKDiTK9B9hnM0lw5l4npXwSDgcAfZid5yLu8ZrXAK4Q3UdmdsQisS5oB Hcah25KOzgKd7I9CNYkMwe9V8vhCOXZYOiJ9M4+Ws2U1WRG9KK3E8HjvMFJTExSs y6PJZNtc3F9PQT0An/D3pK6a28z4hA8UoVCqzi5bqHBuZO6V0+FJipU5P7PvdXaQ OuDYlwZ9yYAsuy46gtU+EGSCyoy6PRm1n37zjHGGzMgywdbdeje46s/Mi5ZnBzYu tE/n7X+5SqVZx7XBkBC2yqZKpUfiEpUKPvocUimL5AJpIUF4fDIEIkbkIioOeCPa MWuF05raXBrWnvDpWvsNRrMzC8qHHg== =9Lpm -----END PGP SIGNATURE----- --dFFL3Q5P6UjSt4HY--