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 473D3D3B9BA for ; Tue, 26 Nov 2024 16:31:34 +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=9fUNf4HXhVknFreQ1vvAvvxrTFmappFrRQ2tcogkxAA=; b=Z5o1sSgc/g7fza/7lG0XGJOdCy SFGoLeDonZOJwTTEadpuSVgqsnKm2ABDQqhvcWQ9uoPauCZ0NcyyTvNYcnKVHApPTZ0S/yjm6nEd+ SjHIA991KKwuzIGrXWuwS1PUuoyt9OpuHaY0aGVaq5Qk0Sf2Dl7aCo3LjKO48QYq32AwIh8kETbTz biGfTckelejwqu075bi1j+9+vFy6eJmjmyz2Wn9wpait/XGe4RXNaHgg0IbJZIgc+voVzQaKmcuVq 3j1I8kTYpxoDSbCiisd11Ra4ea8qOtUHU8VArFjQJv9bxHuiGVfiz9AhB1pz6vOyFaEcTbtVENMW3 33csBzNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFyTB-0000000BAGS-2h3E; Tue, 26 Nov 2024 16:31:21 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFySD-0000000BAA9-2Kid for linux-arm-kernel@lists.infradead.org; Tue, 26 Nov 2024 16:30:22 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 2898F5C5BB9; Tue, 26 Nov 2024 16:29:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40A81C4CECF; Tue, 26 Nov 2024 16:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732638619; bh=W2P9kBCA/lMEwgV3a21V/MPjCI6RTvlgYfJj6gZss+Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UB4VxGACdNmWv1C9hBpnKM9KJF8lwyGFXYPcQF+TzStnMhL//+Mfv1ecbZ2EQPw28 ZD+1CD7q62QjvY42xByD7cbsSvbR6nN1k2N7QrPX4WXlO1tSqG0JFgpqfFadMR+tUX tqzTLWhq+yVlP45mDXfosWTfGmG7HnkfOaCEntUJ9zAQSvW1UzB+pFCy7PxScvkQTp Y05Te3f1+iGsNF6DFR99gV8V6I9h1n7N1QaFUt+Qguai3AC1Xyk3x582I1VGW9kMOz DuLwiybhjUBMs59KLny8EkCohcml7zmGLSmEA5wg7PC617hxSrLtDFPonS91nzyjnq /1JjOQmHvWVGg== 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 1tFyS9-00G36n-2D; Tue, 26 Nov 2024 16:30:17 +0000 Date: Tue, 26 Nov 2024 16:30:16 +0000 Message-ID: <86ed2yufdz.wl-maz@kernel.org> From: Marc Zyngier To: Oliver Upton Cc: kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Joey Gouly , Suzuki K Poulose , Zenghui Yu , Alexandru Elisei Subject: Re: [PATCH] KVM: arm64: Fix S1/S2 combination when FWB==1 and S2 has Device memory type In-Reply-To: References: <20241125094756.609590-1-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: oliver.upton@linux.dev, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, joey.gouly@arm.com, suzuki.poulose@arm.com, 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-20241126_083021_639642_46C84E77 X-CRM114-Status: GOOD ( 16.52 ) 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 Tue, 26 Nov 2024 15:27:00 +0000, Oliver Upton wrote: > > On Mon, Nov 25, 2024 at 09:47:56AM +0000, Marc Zyngier wrote: > > The G.a revision of the ARM ARM had it pretty clear that HCR_EL2.FWB > > had no influence on "The way that stage 1 memory types and attributes > > are combined with stage 2 Device type and attributes." (D5.5.5). > > > > However, this wording was lost in further revisions of the architecture. > > > > Restore the intended behaviour, which is to take the strongest memory > > type of S1 and S2 in this case, as if FWB was 0. The specification is > > being fixed accordingly. > > Since you're already asking for a spec fix, could you mention that the > column headers in DDI0487K.a Table D8-95 are incorrect? MemAttr[1:0] is > used twice, although I believe the first column is actually MemAttr[3:2]. That one has already been fixed as D22366, as described in the Known Issues document for version K.a (issue 07) [1]. Thanks, M. [1] https://developer.arm.com/documentation/102105/latest/ -- Without deviation from the norm, progress is not possible.