From mboxrd@z Thu Jan 1 00:00:00 1970 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 36ABCCFA454 for ; Wed, 23 Oct 2024 17:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID: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=4HyuEXLLBwxwdXuJnGtmDbOh9uR4gvsig+Noc3lximE=; b=5FcH4Qof7VR9k9PuhmdmMqnmjc 8/W6jQ8jsIBu31HozfEkhUUumcDRJLgZtEMaHM6PX/hri2aArqq4yiND4MfGcMDNECxrbVSCsOUWB 0WlEc3Hl67y5qPOD151IhyxQ5IgXRg34waA4+2LKKwr13pNhS1GFk8SKRcvJjk4K5jAHh8tzOfyVT 6+PuDYSNSm2ZboJF/mBB4fWQE3VtBnpoh8UrIEQYtQMOaH1smSkWzmkwYnDY54+08DML4JHmuwruG 0hNUULj8hO1sT3zBC3SAA8RqrD+JoZZbndO83utMDCSU2DBbdJ+WULxKGW/w+8CHxfUCFGQg2aSNu QPrKzpfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3est-0000000FJbY-1mlf; Wed, 23 Oct 2024 17:10:59 +0000 Received: from nyc.source.kernel.org ([2604:1380:45d1:ec00::3]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3eDw-0000000FAHq-1bDD for linux-arm-kernel@lists.infradead.org; Wed, 23 Oct 2024 16:28:42 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 6ABBAA43420; Wed, 23 Oct 2024 16:28:30 +0000 (UTC) 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) 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241023_092840_558699_072AC8BE X-CRM114-Status: GOOD ( 16.74 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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.