From patchwork Fri Jun 2 06:25:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 102325 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp832789vqr; Thu, 1 Jun 2023 23:41:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ODiRmRANV/1ReiQq1O6n8rt3zm+biLc71S3GyUEGp2WDY75sqGmp8L7Y3X1Li+NSTTxGa X-Received: by 2002:a05:6a20:3d85:b0:100:60f3:2975 with SMTP id s5-20020a056a203d8500b0010060f32975mr14098361pzi.4.1685688062404; Thu, 01 Jun 2023 23:41:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685688062; cv=none; d=google.com; s=arc-20160816; b=Zun1Hys9AULezwepNLPTnx+m8GWOQMCQbc+fq2hcAaPVkJfL2YXMDIevL0IGFQlg0u bv3mc31Wijw06CTulEL3DJ/1hXwiYlKs1kcyw27t10mkX72isdZIELoFrfmktgy1Ui3p SvlxuxPBF+trVtg0c000AXp1839WaaLYyqq0BMa74hZLSD+GcAPoxcdmH7yvsp6Jzx+/ BE7erg+7CpV/bVjZxhMTzrtgfFx95WkSNng5ysDI0w1YxnNLRXcGxc7mMYxbSAbsCBXp 4+qQOhLPTNIiQ2lN6TJ8QM5YM1DVYEyut095g7sCq82n3P0ALcYIA+FHZ5bkB202iC6z rWpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=NTaLTpjVOK6IsRhS+RHDlNM35BUJAyM8S21aSoQCJzU=; b=ktk8sBY6BE+0SRq2Jfoh+R/WfQlfabQn+jujJ6Zhr/3lnlC08HRbRqeT81YtFeKXvf ydaw+l8KjVx43dRT+UdgLvt+2H5ah9Z7Hek9G83vGYtF1BZKsJe2msaUJuk+zfSPARb9 Yhmak7YgoNw97ppMfU1Ptiar97edgJXYg5HviymOQbICCTrXM9/zvMaROJtiuk8INB72 eXaHoMwyj3RovbyYNpAbgLZ3d69eGUzg4bNxRYWG+wi06o0/0xZ+c4YGYWP5WiylxLMR 9ltlqDrv8K7K3yNWDtLVxGg66hLYY5/CavwhBGQuIboYnP91SYUQDOmu5GVorvU8oWCe zSAQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 21-20020a630115000000b0053fb7cd1ac4si486181pgb.519.2023.06.01.23.40.49; Thu, 01 Jun 2023 23:41:02 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233945AbjFBG1l (ORCPT + 99 others); Fri, 2 Jun 2023 02:27:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233867AbjFBG1I (ORCPT ); Fri, 2 Jun 2023 02:27:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 53C171B3 for ; Thu, 1 Jun 2023 23:26:59 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7DC911063; Thu, 1 Jun 2023 23:27:44 -0700 (PDT) Received: from a077893.blr.arm.com (unknown [10.162.41.6]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 589B63F67D; Thu, 1 Jun 2023 23:26:55 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, broonie@kernel.org Cc: Anshuman Khandual , Catalin Marinas , Will Deacon , Marc Zyngier , Rob Herring , Suzuki K Poulose , James Morse , kvmarm@lists.linux.dev, coresight@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 12/14] arm64/sysreg: Convert TRBMAR_EL1 register to automatic generation Date: Fri, 2 Jun 2023 11:55:50 +0530 Message-Id: <20230602062552.565992-13-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230602062552.565992-1-anshuman.khandual@arm.com> References: <20230602062552.565992-1-anshuman.khandual@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767572045704730364?= X-GMAIL-MSGID: =?utf-8?q?1767572045704730364?= This converts TRBMAR_EL1 register to automatic generation without causing any functional change. Cc: Catalin Marinas Cc: Will Deacon Cc: Marc Zyngier Cc: Mark Brown Cc: Rob Herring Cc: Suzuki K Poulose Cc: James Morse Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual Reviewed-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 5 ----- arch/arm64/tools/sysreg | 7 +++++++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 768d12fc4834..131442f850dd 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -235,16 +235,11 @@ /*** End of Statistical Profiling Extension ***/ -#define SYS_TRBMAR_EL1 sys_reg(3, 0, 9, 11, 4) #define SYS_TRBTRG_EL1 sys_reg(3, 0, 9, 11, 6) #define SYS_TRBIDR_EL1 sys_reg(3, 0, 9, 11, 7) #define TRBSR_EL1_BSC_MASK GENMASK(5, 0) #define TRBSR_EL1_BSC_SHIFT 0 -#define TRBMAR_EL1_SH_MASK GENMASK(9, 8) -#define TRBMAR_EL1_SH_SHIFT 8 -#define TRBMAR_EL1_Attr_MASK GENMASK(7, 0) -#define TRBMAR_EL1_Attr_SHIFT 0 #define TRBTRG_EL1_TRG_MASK GENMASK(31, 0) #define TRBTRG_EL1_TRG_SHIFT 0 #define TRBIDR_EL1_F BIT(5) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 6d12980f01c7..b3f9a545e1e7 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2243,3 +2243,10 @@ Field 17 S Res0 16 Field 15:0 MSS EndSysreg + +Sysreg TRBMAR_EL1 3 0 9 11 4 +Res0 63:12 +Field 11:10 PAS +Field 9:8 SH +Field 7:0 Attr +EndSysreg