From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 458AE1CBE8C; Wed, 23 Oct 2024 16:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729700919; cv=none; b=df6gcpRUUa2SRROY5/8qnJFf1dCLTXeAvhBDUISrAZniZKpfBvXY7pmFKB56HJemfYOH7c9BljrDviKdv1zvkjydHW5p3kxDB3ezIR/zMH8g5hexjueJDZtWaP00Ny6jqurDLXGGZHelvJ0VCsa901GtWr04Tl4tkctLgATFHRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729700919; c=relaxed/simple; bh=mg/jFO4VAre4oPjGo3tKTAcmPTubs+Mwu5gG6GSacWc=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=V4VjGN41Ib3fHuGrTAV0LkkR9nPIk4Z7aMiRr6iCzvxlOCWrlh37NxT6cmOoS4ccaacQN2IKGxen/Fw/XYSOiGvZ7THwC9U2mRp6FP2O5ipVOP9QHp8jE7kEnlFQX7mnzYY1psSbuS9W1dPwt1s3iRgQqcGfLXPPPS4jecvPO5s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bzzKLR/D; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bzzKLR/D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25C2CC4CECD; Wed, 23 Oct 2024 16:28:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1729700919; bh=mg/jFO4VAre4oPjGo3tKTAcmPTubs+Mwu5gG6GSacWc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bzzKLR/D53RJa+MByJZJVOuswKIOJ4AEdtAUR2amBoqDZLDLxbGH/B+DPrHY46OqY Z2OsEUBgmfv+ClrPFnaRoobZUsi93kEgV667pBG3Z614leFfeJO9ZWvYA5+0jKWqpS DJr7monCQoyRb5ki7L/KbyuzGa+5yzGlqIqjAQBKkEeIl0RIuUgKjhFcaWy5C+ILuz TqnTNV84IlY7kgsECUdVFtAtvlNnhOH6k1wJPD41UYtuilU0hAWi0wMWoUbMY8oS+2 XbHiw6/4LPMf56DNRhvYybi68pHZ8xJUs8oMj+AgfOnCxgZTZLZWPspHx1Xepn3gvk MgxwnTpm1bpXA== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1t3eDt-006BOr-7F; Wed, 23 Oct 2024 17:28:37 +0100 Date: Wed, 23 Oct 2024 17:28:36 +0100 Message-ID: <861q064wcr.wl-maz@kernel.org> From: Marc Zyngier To: Mark Brown Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, Joey Gouly , Suzuki K Poulose , Oliver Upton , Zenghui Yu , Alexandru Elisei Subject: Re: [PATCH v5 27/37] arm64: Add encoding for POR_EL2 In-Reply-To: References: <20241023145345.1613824-1-maz@kernel.org> <20241023145345.1613824-28-maz@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/29.4 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: broonie@kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, joey.gouly@arm.com, suzuki.poulose@arm.com, oliver.upton@linux.dev, yuzenghui@huawei.com, alexandru.elisei@arm.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Wed, 23 Oct 2024 17:13:47 +0100, Mark Brown wrote: > > [1 ] > On Wed, Oct 23, 2024 at 03:53:35PM +0100, Marc Zyngier wrote: > > POR_EL2 is the equivalent of POR_EL1 for the EL2&0 translation > > regime, and it is sorely missing from the sysreg file. > > > +Sysreg POR_EL2 3 4 10 2 4 > > +Fields PIRx_ELx > > +EndSysreg > > We should probably rename the Fields here, though there'd be an awful > lot of xs in that name. If you're in a renaming mood, please start with the TCR2_EL1x brain-damage. Having a way to map an EL12 *accessor* onto the actual register should come at zero cost to the namespace, and the tooling should be augmented to support the way the architecture works. M. -- Without deviation from the norm, progress is not possible.