From patchwork Fri Jun 2 06:25:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 102328 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp835154vqr; Thu, 1 Jun 2023 23:47:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sifv4uJeS/f/8+h0M049oc0y/9sNJ27NYPAAPy9DCJbCwab08qyD0rVfWZbQWauT6+Xgs X-Received: by 2002:a05:620a:2715:b0:75b:23a0:d9bf with SMTP id b21-20020a05620a271500b0075b23a0d9bfmr11235248qkp.21.1685688451229; Thu, 01 Jun 2023 23:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685688451; cv=none; d=google.com; s=arc-20160816; b=EzgvIYd5Tgy2QCC12xopQw5oaymisXI3bERtrcG5slnCbweuZG7hbPK6yirg5adrZA jyhyJJjaKLm6FtLimQKWRnEFgpeK2L2aNm5yQD0p7W7JE609Ve9tPk3LPwjRZvGjVQYD AIRB+ufnTACJGLPvLhKDO7p3XtkXNs0/72oGmK3bZ8tHBo00GkzR5EcZX3eymSVZFYGI GhI3HqdzLSQA1Xo21y6NLe6Pn7439M/alX1HFFF7OqrANvUNfZmybqKi2HpKgldE1Iqa eFfTpB7UaF1Wjqs2QBU5XyC4kWHflFIjo8A371La7k7zJQCfUJZw5tdWGJPV/GOjxjLj L/YQ== 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=0edRsGZMxT8Eex/gLCeVRZYleW1HSo9qIDrWsE1vblo=; b=hfC8mI8RDSkOcevPhwHNXDMPRahzGYKIr0ZifUHrjuGE/v5ziJEtK+A2+F3OZBAJpm 6xMZ7DxFH4Vf3WaF0zVyFQPIr6XeRqpGbiVcVIpiIouxE6pdq4rGtTIQcXuyS5Fsjcck UwfHLcrZ6zDx/3QYadg5dlsqNM1gHNwYzqgt/i0TReSWvLm2z8oHJiDPsebT4nJROwdw 8zw56VHYalvUdeqsO7YPZrp8YVzWEgindxOFrUb0Ewx59x/1PIT5aWmfTCqorQjGVcPh 8Wqop2qyUyJakB1FKYZzbrCMItyBpllF0VPV6Jhamcp1NToePwbtNr1dU0f7i5rLY2g9 8XWA== 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 67-20020a630246000000b0054201a3f08csi484219pgc.793.2023.06.01.23.47.17; Thu, 01 Jun 2023 23:47:31 -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 S233964AbjFBG1o (ORCPT + 99 others); Fri, 2 Jun 2023 02:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233884AbjFBG1J (ORCPT ); Fri, 2 Jun 2023 02:27:09 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E042E1B9 for ; Thu, 1 Jun 2023 23:27:03 -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 EA4261474; Thu, 1 Jun 2023 23:27:48 -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 A32BD3F67D; Thu, 1 Jun 2023 23:26:59 -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 13/14] arm64/sysreg: Convert TRBTRG_EL1 register to automatic generation Date: Fri, 2 Jun 2023 11:55:51 +0530 Message-Id: <20230602062552.565992-14-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?1767572453576324525?= X-GMAIL-MSGID: =?utf-8?q?1767572453576324525?= This converts TRBTRG_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 131442f850dd..b3a32a67088f 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -235,13 +235,10 @@ /*** End of Statistical Profiling Extension ***/ -#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 TRBTRG_EL1_TRG_MASK GENMASK(31, 0) -#define TRBTRG_EL1_TRG_SHIFT 0 #define TRBIDR_EL1_F BIT(5) #define TRBIDR_EL1_P BIT(4) #define TRBIDR_EL1_Align_MASK GENMASK(3, 0) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index b3f9a545e1e7..98dff7010b86 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2250,3 +2250,8 @@ Field 11:10 PAS Field 9:8 SH Field 7:0 Attr EndSysreg + +Sysreg TRBTRG_EL1 3 0 9 11 6 +Res0 63:32 +Field 31:0 TRG +EndSysreg