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 D1177D7236A for ; Fri, 23 Jan 2026 10:15:45 +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=yLGKmlwBcsKRuVnvcwfFo05Whu7tqMAU3ZkpCbq+6NY=; b=tGyatPksKbYOrWensKwjK310RP XBTP/AVnzy9fSDaeBhTzTuiTcMHVMK7prsKOJvJIzBdV3rPrMWbeH4vEwbdn3hh/V2ZqrrLMs6pcS iRhcMi+pr+YM1rrt81B3ecuKc7SPUHCgLcO1p5XSR3KuZm6hZn2S1CMPC+8XvBO4KIEq4imeVSR5p PlYRSFvCnatbmexhSIXjXKCndQ0U5Wuo+usxHB/2AqOYgZH2uuk0cgsmzZ2EUTg+7vTVlNTziS+GM 1jIKGYODIdme4ciDpFHyMkqb+WIjeAJ9PHGm/9JiZekgqHTNo2XGjHvO7ONtg7vIbar7g2tQloIsf EBsGCxwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vjECa-00000008hZT-0qpa; Fri, 23 Jan 2026 10:15:40 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vjECY-00000008hXu-0KKs for linux-arm-kernel@lists.infradead.org; Fri, 23 Jan 2026 10:15:39 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id DF74043950; Fri, 23 Jan 2026 10:15:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B76DDC19422; Fri, 23 Jan 2026 10:15:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1769163336; bh=k/b+dJITvtNnuA/A7jPw9p34GBhaE6Jxv5uMmkmw/W4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fqxIU8P3qW1iTDPRn+vmRzJmUvNot1gnGLmmU9CFWV/c1zC5/uhdPjeITG4pX294e ZJYA7s0Q9+RA58irFOhiTfBWZpp3NG3cntuYoFqhAaI3CPiHdXqt5nqunvuNK/zEdh gdaCdrelppotw2h4CSedAbKO6dcv7dK7ZJQPfbbQD/D3w6mXhS6yntSOHq1nepSXtj O3WVy8rL9kpN1injEzqkVq5zmP9LpQkCLbDa2ULzsYUtpbuMPm1NPYs4BN6DtqDuCK cfPuue9/zzqBCcIPBUg4yExSiTP5OGHDk0RoOSLtichoj0GL90ff5VR5aNVT16w6eO D0ORhNzQW6Smw== 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.98.2) (envelope-from ) id 1vjECU-000000050O1-0jQR; Fri, 23 Jan 2026 10:15:34 +0000 Date: Fri, 23 Jan 2026 10:15:33 +0000 Message-ID: <86qzrgbpoa.wl-maz@kernel.org> From: Marc Zyngier To: Leonardo Bras Cc: Tian Zheng , oliver.upton@linux.dev, catalin.marinas@arm.com, corbet@lwn.net, pbonzini@redhat.com, will@kernel.org, linux-kernel@vger.kernel.org, yuzenghui@huawei.com, wangzhou1@hisilicon.com, yezhenyu2@huawei.com, xiexiangyou@huawei.com, zhengchuan@huawei.com, linuxarm@huawei.com, joey.gouly@arm.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, suzuki.poulose@arm.com Subject: Re: [PATCH v2 1/5] arm64/sysreg: Add HDBSS related register information In-Reply-To: References: <20251121092342.3393318-1-zhengtian10@huawei.com> <20251121092342.3393318-2-zhengtian10@huawei.com> <86wm3iqlz8.wl-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/30.1 (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: leo.bras@arm.com, zhengtian10@huawei.com, oliver.upton@linux.dev, catalin.marinas@arm.com, corbet@lwn.net, pbonzini@redhat.com, will@kernel.org, linux-kernel@vger.kernel.org, yuzenghui@huawei.com, wangzhou1@hisilicon.com, yezhenyu2@huawei.com, xiexiangyou@huawei.com, zhengchuan@huawei.com, linuxarm@huawei.com, joey.gouly@arm.com, kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, suzuki.poulose@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-20260123_021538_172681_18FEE3EB X-CRM114-Status: GOOD ( 26.51 ) 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 Thu, 22 Jan 2026 15:12:28 +0000, Leonardo Bras wrote: > > On Sat, Nov 22, 2025 at 12:40:27PM +0000, Marc Zyngier wrote: > > On Fri, 21 Nov 2025 09:23:38 +0000, > > Tian Zheng wrote: > > > > > > From: eillon > > > > > > The ARM architecture added the HDBSS feature and descriptions of > > > related registers (HDBSSBR/HDBSSPROD) in the DDI0601(ID121123) version, > > > add them to Linux. > > > > > > Signed-off-by: eillon > > > Signed-off-by: Tian Zheng > > > --- > > > arch/arm64/include/asm/esr.h | 2 ++ > > > arch/arm64/include/asm/kvm_arm.h | 1 + > > > arch/arm64/tools/sysreg | 28 ++++++++++++++++++++++++++++ > > > 3 files changed, 31 insertions(+) > > > > > > diff --git a/arch/arm64/include/asm/esr.h b/arch/arm64/include/asm/esr.h > > > index e1deed824464..a6f3cf0b9b86 100644 > > > --- a/arch/arm64/include/asm/esr.h > > > +++ b/arch/arm64/include/asm/esr.h > > > @@ -159,6 +159,8 @@ > > > #define ESR_ELx_CM (UL(1) << ESR_ELx_CM_SHIFT) > > > > > > /* ISS2 field definitions for Data Aborts */ > > > +#define ESR_ELx_HDBSSF_SHIFT (11) > > > +#define ESR_ELx_HDBSSF (UL(1) << ESR_ELx_HDBSSF_SHIFT) > > > #define ESR_ELx_TnD_SHIFT (10) > > > #define ESR_ELx_TnD (UL(1) << ESR_ELx_TnD_SHIFT) > > > #define ESR_ELx_TagAccess_SHIFT (9) > > > diff --git a/arch/arm64/include/asm/kvm_arm.h b/arch/arm64/include/asm/kvm_arm.h > > > index 1da290aeedce..b71122680a03 100644 > > > --- a/arch/arm64/include/asm/kvm_arm.h > > > +++ b/arch/arm64/include/asm/kvm_arm.h > > > @@ -124,6 +124,7 @@ > > > TCR_EL2_ORGN0_MASK | TCR_EL2_IRGN0_MASK) > > > > > > /* VTCR_EL2 Registers bits */ > > > +#define VTCR_EL2_HDBSS (1UL << 45) > > > > I think it is time to convert VTCR_EL2 to the sysreg infrastructure > > instead of adding extra bits here. > > > Hi Marc, Tian, > > Marc, IIUC the above was implemented by > https://lore.kernel.org/all/20251210173024.561160-1-maz@kernel.org > > Which was recently applied to next, and it its way to mainstream. Yes. > Tian, I think it's worth rebasing this patchset on top of the above. Probably not on top of the series, but cherry-picking the patch is fine. In general, developing anything on top of -next is a terrible idea. Thanks, M. -- Without deviation from the norm, progress is not possible.