Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1566502rwd; Thu, 25 May 2023 14:44:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IQyoISjm1I7ZIC7kzNJ5/sPjiO0ksexVZML1GGxTNQzNxOCQ5VNPQbRZJYMSFiDYMRLDJ X-Received: by 2002:a05:6a00:2d01:b0:647:e6d9:88c2 with SMTP id fa1-20020a056a002d0100b00647e6d988c2mr324844pfb.0.1685051043377; Thu, 25 May 2023 14:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685051043; cv=none; d=google.com; s=arc-20160816; b=OiBYCuFo5KQO88q+pmC0SWiNcbKGwvaqODilDdhqi5cexPHyn4eWzP74N7U6YgfX/N vE8jNpmAQIjmPLaRQw01CFXuK3KH52I1LYoOuFiQdAEqvFRkWsxRBLBLWgDIOwTJYplZ iQANwiaZBgKhVFJpXEs3r79pWO9I7OLYDc19JuXhfNXHTSlPDRhGhNcEpAeq1yBRZYk3 nt1zyZGJGwRAdtGPGS61RzOcWv4jQTeBncrkS+bHzjrjfrbRlv55rUvs/RTqP6E2lQt2 EAL3xDj/NDd+H9ATH8iHJGkicGlhz7Qsl7rPZ9VBD8eOcavcw7W8VIwNuTaVf/T2nsSJ ALDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=9+VwLV0iEPlynwi1LSTqGxgNADCv+g+kF4twYCaw1HI=; b=FRmNURekY6FyRPiItm7xc+vMUBnQx3Yd+Pw2zd4wNhh2LqN8KvWmEyUlP4yPWHtiP4 rgK9q9kxiUa/OU9q0gpCVukxuEdD+9/j7z9U8i14TVdrefWZaNyBrY71AoSmDvpKAgMl SvVr1gxwLSvPcDr8pU3+wKupdAps5XO1iwb7Q9EyTAh2RPbTQbLEXo8zZfELRBVfA3KM f1q7D/7ly+Mt4N+mVsN4bkrswcBqkMOptndpRI1/wf967du44U1rt3TI/7ToHC/uLGdy KFMNhMIyzj/3Z93u4D1CQpO+4uDSvpmG3PtGI662aP5iswwfkKmhwljN21pMAhrSTOAO n8ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="Hh/9PSeJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a5-20020aa78e85000000b00643af2c3432si2413653pfr.222.2023.05.25.14.43.49; Thu, 25 May 2023 14:44:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="Hh/9PSeJ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241824AbjEYVjV (ORCPT + 99 others); Thu, 25 May 2023 17:39:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241745AbjEYVjU (ORCPT ); Thu, 25 May 2023 17:39:20 -0400 Received: from out-49.mta1.migadu.com (out-49.mta1.migadu.com [IPv6:2001:41d0:203:375::31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 403DCEE for ; Thu, 25 May 2023 14:39:19 -0700 (PDT) Date: Thu, 25 May 2023 21:39:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1685050757; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9+VwLV0iEPlynwi1LSTqGxgNADCv+g+kF4twYCaw1HI=; b=Hh/9PSeJIJyO2wP2Dx8GQ2aYt07ldwJNuqorWUj9m6abnDMvq0iJX4oM6iadR/GfTLFlYg Vgc7aLrOCotbyRiXeASo+Towwwl42xyDagWgrOEUrsA1SIbG7BmPBrUf5SBOTMoyQElNHB KuiZno9COc9Nehu73qxC4VqQ1lIvDp4= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Mark Brown Cc: Catalin Marinas , Will Deacon , Marc Zyngier , James Morse , Suzuki K Poulose , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, Shaoqin Huang Subject: Re: [PATCH v2 2/7] arm64/sysreg: Convert MDSCR_EL1 to automatic register generation Message-ID: References: <20230419-arm64-syreg-gen-v2-0-4c6add1f6257@kernel.org> <20230419-arm64-syreg-gen-v2-2-4c6add1f6257@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230419-arm64-syreg-gen-v2-2-4c6add1f6257@kernel.org> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 23, 2023 at 07:37:00PM +0100, Mark Brown wrote: > Convert MDSCR_EL1 to automatic register generation as per DDI0616 2023-03. > No functional change. > > Reviewed-by: Shaoqin Huang > Signed-off-by: Mark Brown > --- > arch/arm64/include/asm/sysreg.h | 1 - > arch/arm64/tools/sysreg | 28 ++++++++++++++++++++++++++++ > 2 files changed, 28 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h > index 3d69bda0e608..95de1aaee0e9 100644 > --- a/arch/arm64/include/asm/sysreg.h > +++ b/arch/arm64/include/asm/sysreg.h > @@ -135,7 +135,6 @@ > #define SYS_SVCR_SMSTOP_SMZA_EL0 sys_reg(0, 3, 4, 6, 3) > > #define SYS_OSDTRRX_EL1 sys_reg(2, 0, 0, 0, 2) > -#define SYS_MDSCR_EL1 sys_reg(2, 0, 0, 2, 2) > #define SYS_OSDTRTX_EL1 sys_reg(2, 0, 0, 3, 2) > #define SYS_OSECCR_EL1 sys_reg(2, 0, 0, 6, 2) > #define SYS_DBGBVRn_EL1(n) sys_reg(2, 0, 0, n, 4) > diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg > index df7a7ba97b43..601cc8024734 100644 > --- a/arch/arm64/tools/sysreg > +++ b/arch/arm64/tools/sysreg > @@ -55,6 +55,34 @@ Field 29 TX > Res0 28:0 > EndSysreg > > +Sysreg MDSCR_EL1 2 0 0 2 2 > +Res0 63:36 > +Field 35 EHBWE > +Field 34 EnSPM > +Field 33 TTA > +Field 32 EMBWE > +Field 31 TFO > +Field 30 RXfull > +Field 29 TXfull > +Res0 28 > +Field 27 RXO > +Field 26 TXU > +Res0 25:24 > +Field 23:22 INTdis > +Field 21 TDA > +Res0 20 > +Field 19 SC2 > +Res0 18:16 These bits are actually RAZ/WI. I know that doesn't amount to much right now, but eventually getting a mask of RAZ/WI bits for registers would be helpful for KVM sysreg emulation. > +Field 15 MDE > +Field 14 HDE > +Field 13 KDE > +Field 12 TDCC > +Res0 11:7 > +Field 6 ERR > +Res0 5:1 > +Field 0 SS > +EndSysreg > + > Sysreg ID_PFR0_EL1 3 0 0 1 0 > Res0 63:32 > UnsignedEnum 31:28 RAS > > -- > 2.30.2 > -- Thanks, Oliver