From patchwork Fri Jun 2 06:25:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 102316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp828706vqr; Thu, 1 Jun 2023 23:29:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56c7s/R2HI/H6YSPvrSfpObtd6h79xX64B/8R2XuURYReGTaPO1Rb9B1qxkev+mByJJ7mp X-Received: by 2002:a05:6a00:168a:b0:64d:2487:5b3c with SMTP id k10-20020a056a00168a00b0064d24875b3cmr11702000pfc.29.1685687342210; Thu, 01 Jun 2023 23:29:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685687342; cv=none; d=google.com; s=arc-20160816; b=arVlDihhawEQJZHta37NuQqUum/Qoe4gtv4owkqeCrcr2sVakxaBPitA6B0xsU9dlc K5SuM/ts0FN73hWs83iOs7rZzAfdUJPah90fsqm5vyk/XaZkrRoNw0xMnRys+Yv6VBV4 gMPCcncXKTCQ4WWw9Se4AAC4M4qMY+ox/SF9jgTdpU4u0g1uzjw9phvsmKddefsAjuHv 24l3Hx6qi3MkHLSG2Xwu6Ya8AtpsDDucvzOOYoN3ODxUQ+MI09T130fgby1HI8iuHhe+ kFE2vhL2ex0heXLsFnmuA3oX9VI/UBhG3FPIqY3k0K/24ejbE6KTJlEVrgJ7pRg4FNN6 BgmA== 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=nG6H2uql6z4WfqZAhq+MRj4sgGX++cwMUXvLQGq3Oj8=; b=wPBpA6mJIT3dMSp5oHzaj9CwTOO12Tn9Lz20uvVBqLK8eODdEgD0pHnLBLSr7P3Ajn Uj3Z+tei5pSy/i8+g3MAjGq4UO2hgs6o9gKK0yQGu0t6aGy9WaVGeegHFLoDc9drzbw9 LERfX2BkHLpe3L9a/MjveugCbGIExg7VEgmlOo4RDZydrsJm0VgDFz25WLQJ2VuexJsm 26juB52HxT99HLUTjKPqKtPEVpDfwJaDtERkMhF+1paDhoNJ43XUic/rdjXxZ7337QLx V1dE3a+PwtOWn/E6xa0I4nrGBYbxyxx/E2fVYPT8AYpmaXoUkJGpKLa+Y8rXdBKfKeFt mK9A== 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 w63-20020a638242000000b0053011490008si431427pgd.885.2023.06.01.23.28.50; Thu, 01 Jun 2023 23:29: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 S233890AbjFBG1g (ORCPT + 99 others); Fri, 2 Jun 2023 02:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233831AbjFBG1D (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 3FD75E5C for ; Thu, 1 Jun 2023 23:26:46 -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 7295D1474; Thu, 1 Jun 2023 23:27:31 -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 F36913F67D; Thu, 1 Jun 2023 23:26:41 -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 09/14] arm64/sysreg: Convert TRBPTR_EL1 register to automatic generation Date: Fri, 2 Jun 2023 11:55:47 +0530 Message-Id: <20230602062552.565992-10-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?1767571290932856934?= X-GMAIL-MSGID: =?utf-8?q?1767571290932856934?= 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 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 643b7ccf6172..13b144075381 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -235,15 +235,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