From patchwork Wed Jun 14 06:59:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 107750 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1053607vqr; Wed, 14 Jun 2023 00:16:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5xtLCKBlG1cfC2I8kycIGfSDyzRPKTwJzCEldgLXKJ6LyJWzYMCo7S6JT0nf5mly9igC4i X-Received: by 2002:a17:906:6a02:b0:97e:38ab:b287 with SMTP id qw2-20020a1709066a0200b0097e38abb287mr11840254ejc.68.1686727000179; Wed, 14 Jun 2023 00:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686727000; cv=none; d=google.com; s=arc-20160816; b=AfhkCDhdsQh7Az0RQX8aa9dcq46fL/dSya33diUYHjxhaYfptTW7WTufpWebGAvY0K hmzB+lkwSMt7lsSebB2pHrZpVBHCMt7Hh90OfkqR9wxq8xElZVuL/s7OLczTSZItz0Oz 23si5kCncElPwk4rrFQwB8oxX/SCsv31nl9yQ9nq7MEssFS/kmnIy2e4LJMIKxeYSkF5 KtAgVmFE1RQMYODB4fb78ZAlaocVo4z2hK9L8oq3xyVRJYTqFA/icvhWpMEKa9gESYyo 7TkRsZJBR1LnTK21Bzj8QbyrJLkyiRqQFYiFbLcuLHM/B9Mun6NoH6iYpWwDQlKjcnDf az1g== 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=1YWjIdHpBTZmNSgfONc6Y5f8EHdHc+4we3CCy4Nduas=; b=XOu2qE4Ze4tg4PwPKTYV95WVOhXXPvE8mFWhdWcZYN2iRuBwJXq6VoGXJMCdUdxCLu nNE6HcovUw5xmyT4lNlwo8wy1ioLIGlj4nVIGVs3j0rPYqbBsUSb8SHns1URIRtIBIL7 ru9mCtlIixWr4e0CpgsMaU6OHYDoN/TZY222BmwG+c8HuRhiHo1ggGuRg1ooc10UEc9f FoBzWHAXveKobXwuq+1cTJMPbOzfkV+kVPVHko9GTK36so4Q5j8I95GQu7QKN8N7sO5x YeIkqpvE8rT02COCyVhqminL2dCfJu8MqF1+gm337Isa12uxJ35BI8/v69M2DrVMxaRV SDyQ== 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 lr27-20020a170906fb9b00b00978813d3ec2si7416102ejb.344.2023.06.14.00.16.15; Wed, 14 Jun 2023 00:16:40 -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 S243297AbjFNHCY (ORCPT + 99 others); Wed, 14 Jun 2023 03:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241009AbjFNHBt (ORCPT ); Wed, 14 Jun 2023 03:01:49 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4EF7026BF for ; Wed, 14 Jun 2023 00:01:16 -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 7CCC5152B; Wed, 14 Jun 2023 00:02:00 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.46.15]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 1E48E3F663; Wed, 14 Jun 2023 00:01:11 -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 14/14] arm64/sysreg: Convert TRBIDR_EL1 register to automatic generation Date: Wed, 14 Jun 2023 12:29:49 +0530 Message-Id: <20230614065949.146187-15-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?1768661450846970106?= X-GMAIL-MSGID: =?utf-8?q?1768661450846970106?= This converts TRBIDR_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 | 6 ------ arch/arm64/tools/sysreg | 13 +++++++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 088831b6cf6c..1b71bbd8b4e0 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -241,14 +241,8 @@ /*** End of Statistical Profiling Extension ***/ -#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 TRBIDR_EL1_F BIT(5) -#define TRBIDR_EL1_P BIT(4) -#define TRBIDR_EL1_Align_MASK GENMASK(3, 0) -#define TRBIDR_EL1_Align_SHIFT 0 #define SYS_PMINTENSET_EL1 sys_reg(3, 0, 9, 14, 1) #define SYS_PMINTENCLR_EL1 sys_reg(3, 0, 9, 14, 2) diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg index 4292e6014d2e..7f22faeaaba0 100644 --- a/arch/arm64/tools/sysreg +++ b/arch/arm64/tools/sysreg @@ -2264,3 +2264,16 @@ Sysreg TRBTRG_EL1 3 0 9 11 6 Res0 63:32 Field 31:0 TRG EndSysreg + +Sysreg TRBIDR_EL1 3 0 9 11 7 +Res0 63:12 +Enum 11:8 EA + 0b0000 NON_DESC + 0b0001 IGNORE + 0b0010 SERROR +EndEnum +Res0 7:6 +Field 5 F +Field 4 P +Field 3:0 Align +EndSysreg