Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1879358pxb; Sun, 10 Jan 2021 14:53:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ8epVCPa0j3y/GwJqNSUCvOj3V7/FdVwn8FZOhihlnzoSPlcYSENQv39c2h0N2kbzaDcx X-Received: by 2002:a05:6402:1646:: with SMTP id s6mr12159274edx.319.1610319227244; Sun, 10 Jan 2021 14:53:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610319227; cv=none; d=google.com; s=arc-20160816; b=V69yiQdJrErSOxCPhLWXlyw8U2UpzrRJQogIMUU9wpZHnXH0DpMlPgnJUMGMC6t85y l9y8l5QUWMbAkw9RVQ3c5X88dBG2lR7ZVwxkSTx4RCkhd9hpSibp+schj7DmdRV1d5Z1 PLOWIKR1r/LmC3TbMjc36m/jIBf3z0g9Bucbng4lCdJ59/cJLoj5D6dNVz4JUkLJG1yg cO4JwpKoxKFXpEmNktmmXQSfpyNje6oH/8/Mw7ovJ9nOHdeMlgtyMTBDeykZGid6zo5+ ka1AVaqYaErPZmfIcJV9JHTt6mV+yhME+w0wonEKNkpR4J8ZEZUGpnhvCEiMe/l771wb s1mg== 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=7/3X1zn5QVAfwA0z3IBP8b6u2YuKEPbtdo7pKMv8Gco=; b=r2Cxa6UugqgBvS8GWFB1mY2Ti5fDJDweWriYJDThGoL60lJ3lMYq3A3hSkw7JoXHxI QzkO3ChxEYn2b4y0dppO8I5vjE907oVGwurPgMDiumVjlYf8FNIjUGV/UduqRH6VqIU4 WWJqdy/mm6avz8MH4JjYvOmXrlU2Ysjg/q2a9AyS8W6IRedLpTnf13QbM4bQvF16nb3q 1mdKr8Xtk9wSq1MDtol/4Qw83jutZRwFffy1nNkvReEgSo3yb8+VJaOa0abFYKJafM6b V+/U/1yvS3/hsezgpnXj3NFPisomS1Fme/wC3WqK75oDU9lkUWYKymhuHW/dmUhVhWB8 3UCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt22si5699618ejb.107.2021.01.10.14.53.24; Sun, 10 Jan 2021 14:53:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727520AbhAJWva (ORCPT + 99 others); Sun, 10 Jan 2021 17:51:30 -0500 Received: from foss.arm.com ([217.140.110.172]:39118 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727463AbhAJWvZ (ORCPT ); Sun, 10 Jan 2021 17:51:25 -0500 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 A5DF215BF; Sun, 10 Jan 2021 14:49:44 -0800 (PST) Received: from ewhatever.cambridge.arm.com (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3C8E03F719; Sun, 10 Jan 2021 14:49:43 -0800 (PST) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: coresight@lists.linaro.org, mathieu.poirier@linaro.org, anshuman.khandual@arm.com, mike.leach@linaro.org, leo.yan@linaro.org, linux-kernel@vger.kernel.org, jonathan.zhouwen@huawei.com, catalin.marinas@arm.com, Will Deacon , Suzuki K Poulose Subject: [PATCH v7 27/28] arm64: Add TRFCR_ELx definitions Date: Sun, 10 Jan 2021 22:48:49 +0000 Message-Id: <20210110224850.1880240-28-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20210110224850.1880240-1-suzuki.poulose@arm.com> References: <20210110224850.1880240-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan Zhou Add definitions for the Arm v8.4 SelfHosted trace extensions registers. Acked-by: Catalin Marinas Cc: Will Deacon Acked-by: Mathieu Poirier Signed-off-by: Jonathan Zhou [ split the register definitions to separate patch rename some of the symbols ] Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/sysreg.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h index 8b5e7e5c3cc8..4acff97519b9 100644 --- a/arch/arm64/include/asm/sysreg.h +++ b/arch/arm64/include/asm/sysreg.h @@ -191,6 +191,7 @@ #define SYS_GCR_EL1 sys_reg(3, 0, 1, 0, 6) #define SYS_ZCR_EL1 sys_reg(3, 0, 1, 2, 0) +#define SYS_TRFCR_EL1 sys_reg(3, 0, 1, 2, 1) #define SYS_TTBR0_EL1 sys_reg(3, 0, 2, 0, 0) #define SYS_TTBR1_EL1 sys_reg(3, 0, 2, 0, 1) @@ -471,6 +472,7 @@ #define SYS_SCTLR_EL2 sys_reg(3, 4, 1, 0, 0) #define SYS_ZCR_EL2 sys_reg(3, 4, 1, 2, 0) +#define SYS_TRFCR_EL2 sys_reg(3, 4, 1, 2, 1) #define SYS_DACR32_EL2 sys_reg(3, 4, 3, 0, 0) #define SYS_SPSR_EL2 sys_reg(3, 4, 4, 0, 0) #define SYS_ELR_EL2 sys_reg(3, 4, 4, 0, 1) @@ -829,6 +831,7 @@ #define ID_AA64MMFR2_CNP_SHIFT 0 /* id_aa64dfr0 */ +#define ID_AA64DFR0_TRACE_FILT_SHIFT 40 #define ID_AA64DFR0_DOUBLELOCK_SHIFT 36 #define ID_AA64DFR0_PMSVER_SHIFT 32 #define ID_AA64DFR0_CTX_CMPS_SHIFT 28 @@ -1003,6 +1006,14 @@ /* Safe value for MPIDR_EL1: Bit31:RES1, Bit30:U:0, Bit24:MT:0 */ #define SYS_MPIDR_SAFE_VAL (BIT(31)) +#define TRFCR_ELx_TS_SHIFT 5 +#define TRFCR_ELx_TS_VIRTUAL ((0x1UL) << TRFCR_ELx_TS_SHIFT) +#define TRFCR_ELx_TS_GUEST_PHYSICAL ((0x2UL) << TRFCR_ELx_TS_SHIFT) +#define TRFCR_ELx_TS_PHYSICAL ((0x3UL) << TRFCR_ELx_TS_SHIFT) +#define TRFCR_EL2_CX BIT(3) +#define TRFCR_ELx_ExTRE BIT(1) +#define TRFCR_ELx_E0TRE BIT(0) + #ifdef __ASSEMBLY__ .irp num,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 -- 2.24.1