From patchwork Fri Jun 2 06:25:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 102321 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp831890vqr; Thu, 1 Jun 2023 23:38:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4sIrgeujPMJ8lI9RcVVcmY9YXstlPxVkb+SrSYRQHKEk23bPt+SMaOws1Rs84PRUXIr/wX X-Received: by 2002:a05:6a21:1508:b0:10f:8b61:195f with SMTP id nq8-20020a056a21150800b0010f8b61195fmr11228561pzb.46.1685687885949; Thu, 01 Jun 2023 23:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685687885; cv=none; d=google.com; s=arc-20160816; b=jLWJBlICylKYc5C18LjqvVfQtR0dogPtR2q4L8d7Y2ecFC8mcyYPsPrDEAr2ukhxsA MCs2JsWvSl+gil+vKC3zIkG6a1LlhZGhcQm/N2hRYBiaj3zQdub6MsntQ6bTvwFnFSNa e9JJ7BOV6nSlubAvFVdcy3Li+bhQwXO7n4nOzaeEfDnphJDc06+yfnIzGPIFcaz8zysk BcfspX9dsgUcIqBv1h1jF2Xc6DOGlrZiFscu9zg0Gp9GrSk4UvCrgaG3u7eLx3GHwriI pMQnUUr2VDzECOPa/eWneNGWPV+PcWLqDo6jZm2cO6q/1XBuO7KbsTwH0y1J6beiy0+a 3IjQ== 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=iCME+Zvy23O52qG6gQvCOp+WSKT64HIxQmz+T9nrpNY=; b=GExGcbENkWA+YMSzy2KxRqQrW3G4gy1VZRGVh69vm0dRjXj5L3xuTJ5GtGpFoi3wW3 19ZT8cJj+F0yQC9Jfpz0Q+noNY1PwRFbDk9adjLpWWF55OLwGQ2qJf89Bl8AzZp7tTzO Z1x2f2EuZBXwwxLQQJrLsiWfyJ33I1ckH6LugI3OOFpEuB0kp1lXQpMCwmqFL2hY/nHs NnRPOaG1QrTUceUYWR7vp9ib8BbwuSj0heSG3F66Ju4z0XlHE065g+MF+CgfMTTyAcOz IDYoIGC19LVF3reNM83A0YPfEKwsDdkRSV1Iu40JI5u+fdeP3scY8LiQCdL34oMJ/vMj r3dQ== 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 y11-20020aa79aeb000000b00643a730d50bsi197633pfp.389.2023.06.01.23.37.52; Thu, 01 Jun 2023 23:38:05 -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 S233814AbjFBG1c (ORCPT + 99 others); Fri, 2 Jun 2023 02:27:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233836AbjFBG1D (ORCPT ); Fri, 2 Jun 2023 02:27:03 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C439819B for ; Thu, 1 Jun 2023 23:26:50 -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 033221042; Thu, 1 Jun 2023 23:27:36 -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 88B033F67D; Thu, 1 Jun 2023 23:26:46 -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 10/14] arm64/sysreg: Convert TRBBASER_EL1 register to automatic generation Date: Fri, 2 Jun 2023 11:55:48 +0530 Message-Id: <20230602062552.565992-11-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?1767571860895255603?= X-GMAIL-MSGID: =?utf-8?q?1767571860895255603?= This converts TRBBASER_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 | 3 --- arch/arm64/tools/sysreg | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 13b144075381..27d89b7ea0fa 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -235,14 +235,11 @@ /*** End of Statistical Profiling Extension ***/ -#define SYS_TRBBASER_EL1 sys_reg(3, 0, 9, 11, 2) #define SYS_TRBSR_EL1 sys_reg(3, 0, 9, 11, 3) #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 TRBBASER_EL1_BASE_MASK GENMASK_ULL(63, 12) -#define TRBBASER_EL1_BASE_SHIFT 12 #define TRBSR_EL1_EC_MASK GENMASK(31, 26) #define TRBSR_EL1_EC_SHIFT 26 #define TRBSR_EL1_IRQ BIT(22) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index ad6da3ea1cd5..c58731f69467 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2222,3 +2222,8 @@ EndSysreg Sysreg TRBPTR_EL1 3 0 9 11 1 Field 63:0 PTR EndSysreg + +Sysreg TRBBASER_EL1 3 0 9 11 2 +Field 63:12 BASE +Res0 11:0 +EndSysreg