From patchwork Wed Jun 14 06:59:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 107738 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1048407vqr; Wed, 14 Jun 2023 00:04:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59Wh8AwNFldO/Wn0gDs/Cj6r3cMVYvo0cQROx08CZ1nx9tqL2mnlk+hRhmx2QPgp5LcZMI X-Received: by 2002:a17:903:2286:b0:1ac:9cad:1845 with SMTP id b6-20020a170903228600b001ac9cad1845mr12156204plh.18.1686726277706; Wed, 14 Jun 2023 00:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686726277; cv=none; d=google.com; s=arc-20160816; b=Yz9RyHGFenQVJi2HZzTrSLzQ+FyFDNd7vs9t/XvGjHTENfKXXBK+jyFTnyBKdBNTKg 0a3XZ7g1sFdk/VtnhqBRgI5L/hz3QWgbOh5o1/I42G1HgrZAzzX0RWHH9E33agNeVFVe NchNVDzBPG/ZGUu7zDAyE7uh8DYMNBYKUyu50bLA0AmyJoKdcDO6ePGFW/q5oq1em0BD WCVFW7f7glk9EoaFVtBCqUMEaoONA/Q9SetRAalPC/bwexkMuRa85awYOnPnUFwonO/I B081dHvIZVl0+2wE+raJemlVbECOCZY/X1OHPnFJBQpHy31siVAvU4MV5AlOJckheNru CSjw== 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=rRXPGBgFuEYv04D0/QdafWKZ90+TPNLAh3/rP59YZFw=; b=SK9U6q4nirIcJxW6PaZN38KzmkQK3pjFHpIxklgkH/Aw1KKDYiU7y+66h8OtN3QKPJ p1GrAAqwEcBqGDf6MM+KlmflKZSRQKNqO86qO16ZHJUG1fYxBCd0m7mbD7s16rybNgKr Pcv2IpmWl2hzFbNC+WzPHt2rGhG6M0sTr7QudEZlEaBOBcg9tVHjube5C2xldzNZJHtP 4dVOMGEMb8f35vNKIy0pBPSyTF4c6ncw3FVZ9r56Dm1JALo5+owGxI6puVhfiOTFA4Hv Cq2QsvA0m58LRpPsDf9Ov5LISaEBFh0Crf2riRtfQ4x/OK6tX/HjDSFBWQm08A6tLJ/A IepA== 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 o18-20020a170902d4d200b001b3de2e77b3si3573478plg.137.2023.06.14.00.04.24; Wed, 14 Jun 2023 00:04:37 -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 S243235AbjFNHBb (ORCPT + 99 others); Wed, 14 Jun 2023 03:01:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238564AbjFNHBA (ORCPT ); Wed, 14 Jun 2023 03:01:00 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19F101FD0 for ; Wed, 14 Jun 2023 00:00:52 -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 2B75F1FB; Wed, 14 Jun 2023 00:01:37 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.46.15]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id D65983F663; Wed, 14 Jun 2023 00:00:48 -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 V3 09/14] arm64/sysreg: Convert TRBPTR_EL1 register to automatic generation Date: Wed, 14 Jun 2023 12:29:44 +0530 Message-Id: <20230614065949.146187-10-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230614065949.146187-1-anshuman.khandual@arm.com> References: <20230614065949.146187-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?1768660693461432067?= X-GMAIL-MSGID: =?utf-8?q?1768660693461432067?= This converts TRBPTR_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 Reviewed-by: Mark Brown Signed-off-by: Anshuman Khandual Reviewed-by: Mark Brown --- arch/arm64/include/asm/sysreg.h | 3 --- arch/arm64/tools/sysreg | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 7dc053150010..6f2a0bef1db8 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -241,15 +241,12 @@ /*** End of Statistical Profiling Extension ***/ -#define SYS_TRBPTR_EL1 sys_reg(3, 0, 9, 11, 1) #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 TRBPTR_EL1_PTR_MASK GENMASK_ULL(63, 0) -#define TRBPTR_EL1_PTR_SHIFT 0 #define TRBBASER_EL1_BASE_MASK GENMASK_ULL(63, 12) #define TRBBASER_EL1_BASE_SHIFT 12 #define TRBSR_EL1_EC_MASK GENMASK(31, 26) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index a43309607d42..ad6da3ea1cd5 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2218,3 +2218,7 @@ Enum 2:1 FM EndEnum Field 0 E EndSysreg + +Sysreg TRBPTR_EL1 3 0 9 11 1 +Field 63:0 PTR +EndSysreg