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 BD8B9C433EF for ; Fri, 22 Apr 2022 12:16:08 +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=kJPbPBkTjehYspIxiA/01ZXD62SXnDZs1wF4syYD0MI=; b=x2k8CAOA2zFJwai2Kg3WP+KlLy McdDIPyy0PKEE3lzDyrE3CJoHrEwC/jk3dj7gfYkATpUtj3vz23fG1CCIgNVkeLL+Xg0rpL8+8hgh FR6SwPxiF2nC8/kcsDcnCN8KIlbyiF0ylhk70CMipY+DijRdL8fDCCeUZ+j00ORdsnoBas1Zva3fG 4QK7wic+gtXJWiVGkticMrtY6DsVJKjqrnD66RfbtRbAvqfGS71K1vK870j6bjMaFt1W8P6QmTNW0 JBkXzRnAzvmoALgNvf/G2hAeJXmkZmYZxksSsoVaPsejUuEhYgu4I8+e+0rY5W2PwRgZ0ze9uZjRn Dbnu7ARg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhsBg-000LdR-UK; Fri, 22 Apr 2022 12:15:01 +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 1nhsBd-000Lcm-2X for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 12:14:59 +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 6C92261FE8; Fri, 22 Apr 2022 12:14:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6920CC385A0; Fri, 22 Apr 2022 12:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650629695; bh=Zngoqbx56Me5rGkAqCWt0syXNjPdtH0ptv47imFIx2A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S8bCWNz65ipp3dxeo87ujYaDVl/nmB7UKGFgpIvg+IUoCYaIK1yqPw4IB34ZsHaqc CFAfckdAdGE8dSvGkOIl0xmUA4n8Pw0ETUmQQzOe7U2ASr+QPtcvNsHkbF3Ph9ijEe FdVoZfQZhxEFqORo+2NBI3tbdIWOFBXD+nU1k9iH3jLMjlfsjh1BT8gyZ1/XDtBB/T oXxAkNFhCPuRce34uDYWIwi4tVcsujx7BrZ0S5OjgF8e7Mf1LBQL+kgqlLF4BznyMr Yxz0OSHGlCprPFqsQt8p8tvMohbVVRFpEV3phlKbKJDElPnzp19JgxIeuJjLSxKEKa fLOPQjqwtK+5Q== Date: Fri, 22 Apr 2022 13:14:51 +0100 From: Mark Brown To: Mark Rutland Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v4 8/8] arm64/sysreg: Generate definitions for SCTLR_EL1 Message-ID: References: <20220419104329.188489-1-broonie@kernel.org> <20220419104329.188489-9-broonie@kernel.org> MIME-Version: 1.0 In-Reply-To: X-Cookie: Whoever dies with the most toys wins. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_051457_193079_1E8D9419 X-CRM114-Status: GOOD ( 23.67 ) 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="===============3502912677574319319==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3502912677574319319== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="SASI3jtLqo5HpenD" Content-Disposition: inline --SASI3jtLqo5HpenD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Apr 21, 2022 at 11:05:27AM +0100, Mark Rutland wrote: > On Tue, Apr 19, 2022 at 11:43:29AM +0100, Mark Brown wrote: > > Several fields which are defined in the current revision of DDI0487 but > > which are not yet used by the kernel are left as RES1 in order to ensure > > that the SCTLR_EL1_RES1 mask used for early initialisation of SCTLR_EL1 is > > not changed. These are LSMAOE, nTLSMD, EIS, TSCXT and EOS. > I think that going forward we'll hit similar issues when adding new fields, so > we probably want to distinguish "architecturally RESx" and "The kernel wants to > treat these as RESx". > I suspect we should add those fields to the scripting, but (manually) add a > definition to a header with both the architectural RES1 bits and the bits we're > treating as RES1 even though they're now been allocated a purpose. > I'm not sure how to name that clearly, though. I think I'd come to a similar conclusion but as you say the naming is annoying and in cases like these ones there's so few users and they're oring in other bits so it might be more sensible to just or in these now defined RES1 bits in the user, skipping out on the naming question entirely - in this case the usage is in INIT_SCTLR_EL2_MMU_*. Looking at it again now I'm inclined to go that way for this one. --SASI3jtLqo5HpenD Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmJinDoACgkQJNaLcl1U h9A0DAf/dVysdUDol21kTJEAr2g19q9xzQTdtb9x7fEkuKrowMzc9jeRiSQIXlxI fdkUlbFuSWaoS2h3Qvg+ZumraCsU5wsCPATBeTaQo+BlRUTqSBuFzJ85kleLNTy7 7ly+yZTMYWSGKzrN01gaEpygoSZqPyXvlgKEyJ+Bq/7GRlfzX6H+4h1OxytbKYyK kHjvM6lJNKR0Y08jRi1sS4lZWkcEYQ/Rc1AsXCQej6hwJy8/Te6aMRd3Kzi8g00d L2//L2Wa/Nom/2ABp6DG340Vhk9YeFC1X2C4DUCWJ1RFmQ3vDTppKb4xyvZ9U+dW xIVoQ5uY4/6zlpuzKsjB2jHGIfWoYQ== =FI5j -----END PGP SIGNATURE----- --SASI3jtLqo5HpenD-- --===============3502912677574319319== 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 --===============3502912677574319319==--