Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp84355rwb; Fri, 4 Aug 2023 09:29:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJK+EZiuHCkjJTFUWdan7y42tfrhteqgA5iv7cY7i3vgMCqFUA4zvLLUHNYhw2Wx7gGZ0l X-Received: by 2002:a05:6a00:842:b0:67e:18c6:d2c6 with SMTP id q2-20020a056a00084200b0067e18c6d2c6mr3299281pfk.5.1691166587904; Fri, 04 Aug 2023 09:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691166587; cv=none; d=google.com; s=arc-20160816; b=ZlT/DTlaskOKotIfsv/nUpDNy9RFLM9ZQ512rMORxANClqFmFCVnytVCgYtTK3Z7n/ wEPkZ9rNiXsSLFzlIccS03CTzzjCR4RzYjZ9Bnl1CUBSYaX+rk5BAyuM8MOuhKlI9uzO vEdMo/W/S5Jef+TunU2Ht9OO4foqa3iLBeqjMNPufc8WSLqHXaNTxuFUXqbOAVS2cZ6P J5eJju+2MM/5w5N9BpHGzOTeti6+93EHw3hUWRzJieytesM0abCO4T89wJjIN+U6WKbC xXQIhoXKMLuuE+jU0B/ahZiwbw3HLj4DXCq4HPyPk29+wrwgtBFrAtvnW4C6khAQojvR 7PTA== 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=aHfM0jDJKl5oDfSHsa616UAQe+O0ShskCQa96lYG5IU=; fh=/ddxMUqlicNMuB4WiCL4Q5Xwrblzrdxnx9joRQZ1bLs=; b=MsSQL/ckI5iPBOmOY88z4Itld3ixJI/kE3k5gd7wAObfbiQyIVUtniNU2zzv4iEKwb YY8CtCLVJhDDkNkP/lEHI68rW6PUvMtzmjPCWZko4x4Q/U0wiYTdnT/Sg8G2esqi5O62 pV2vPTL3kcKSffljUc9DaHfQxnW6ghVYY/UnlCwJmDFkXXtIkt9nVN8YkYolNfxlLSOu DDVIcRaA6F6uc+gtSs1DPHwL+rI7gBwkdDIigyhjSojPZM/S4KqqJIKcU8HJzWPFzpkz 6utwbeOyFPLJU04BscxoZalYcaywTwkK6dChrfEYtqEsisb2lK1kwj0dlzWiULm4J03W x6FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j8OZTvIK; 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 o2-20020a656142000000b00553b5116cefsi1950974pgv.16.2023.08.04.09.29.31; Fri, 04 Aug 2023 09:29:47 -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=j8OZTvIK; 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 S232289AbjHDQER (ORCPT + 99 others); Fri, 4 Aug 2023 12:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232250AbjHDQEM (ORCPT ); Fri, 4 Aug 2023 12:04:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAEED49EF for ; Fri, 4 Aug 2023 09:03:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 68C6D62093 for ; Fri, 4 Aug 2023 16:03:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 89CDCC433C8; Fri, 4 Aug 2023 16:03:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691165034; bh=wC1m67ImHISvj4AzBsW1U4Nhm8/KyDRI6F1fpNbGyu4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8OZTvIKJZenXKc5jnItkdyUDMwQD5mOte+QklB6LkgPCs/Lm2RF7vBf9wMHfkMnF 01oe/h7hoycCaSQ6dkCik98O413AuYdYhohyqqghw6+SVjhQuoYd/zq2akSvVlQvjd pSA/ZSg/kBp2kA0oz87O42Au/wCFnzB0mT4K5G9+C3hVmw6MgXhq5ZqN1h2HIXNDDd CJgMe3fMQSWcLleBzaqN91mqXCo0c9paMkEM30pqhDVDqyuy2uoGbzoNM6gWywlPv0 ++BszlsageWhiRuohjwjXAAbcN43HIrr2hrcUcYsG2WIbC/520Danp/KPaynKOW6Ur Uy4kfNnSXoHOA== Date: Fri, 4 Aug 2023 17:03:48 +0100 From: Mark Brown To: James Clark Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon , Suzuki K Poulose , Mike Leach , Leo Yan , Alexander Shishkin , James Morse , Kristina Martsenko , Anshuman Khandual , Rob Herring , Jintack Lim , Joey Gouly , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] arm64/sysreg: Move TRFCR definitions to sysreg Message-ID: <016cbd81-3aad-4160-88b7-13aa303e1821@sirena.org.uk> References: <20230804085219.260790-1-james.clark@arm.com> <20230804085219.260790-2-james.clark@arm.com> <143152c8-61b8-4a71-9090-7203342b661c@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d2rkxrb7n6zeRl/C" Content-Disposition: inline In-Reply-To: X-Cookie: I'm hungry, time to eat lunch. X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 --d2rkxrb7n6zeRl/C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Aug 04, 2023 at 04:55:19PM +0100, James Clark wrote: > On 04/08/2023 13:10, Mark Brown wrote: > > On Fri, Aug 04, 2023 at 09:52:16AM +0100, James Clark wrote: > >> TRFCR_EL2_CX needs to become TRFCR_ELx_CX to avoid unnecessary > >> duplication and make the SysregFields block re-usable. > > That field is only present in the EL2 version. I would tend to leave > > the registers split for that reason, there's some minor potential for > > confusion if people refer to the sysreg file rather than the docs, or > > potentially confuse some future automation. However that's not a super > > strongly held opinion. > True, the potential for confusion is a good reason to not try to avoid > duplication. Probably helps if it is ever auto generated or validated as > well. > I could update it on the next version. But do I leave all the existing > _ELx usages in the code, or change them all to _EL1 (Except CX_EL2)? To > leave them as _ELx sysreg would look like this, even though _EL1 would > probably be more accurate: > SysregFields TRFCR_EL2 You could just leave this as _ELx and simply not reference it for the EL1 definition which is proably fair? Perhaps with a comment saying why there's an expanded definition for EL1. I don't think it fundamentally matters which way it's done so long as EL1 stays a subset of the EL2 definition (which seems likely, and we can always revisit should that happen). --d2rkxrb7n6zeRl/C Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmTNIWMACgkQJNaLcl1U h9DiUgf/bryWefgita5AL0aOugwkBFYKLVa0Y9DAOskmI+VddalSFJ/DZK6XOa6J ezXal989d6CGQFqlQ5puuQ7kaHdJTe5s8FmNqr2TQUwJ09o2QES2qOxBlSjheYad rmjBLPHdqfm3mSO5g8JuldAHmTHaZr0iYgwSUslo/cGDlyEwgVjwSIm9SQR1AUNv yAsZiP0u4Sb5GazTU+u0VfrthvFDle12Mt7MDw09hZPtM614FVVLvVr3lOGG5HWu uQVbGCVd4QyeN/UcHZs1LdYVK+oKbCWPqxFax/yHyjc0UOj/AqW60led7n05uGQZ fKvnYm/hfuNJKaVeLBeF96/xOGcZog== =f08w -----END PGP SIGNATURE----- --d2rkxrb7n6zeRl/C--