From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E78BCC433DB for ; Fri, 8 Jan 2021 01:04:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9EC362076E for ; Fri, 8 Jan 2021 01:04:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9EC362076E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mCqWsvVsCoEYSoAw2pn0BEES2+zOi4wq22ZPTSQ1NvY=; b=b/8b9cL8d4AiY70018VQEPMVX 7t2+W8UFWKnDiJLmn72Nl2Pfl92yfqlZclB/TE4eMNDm8CeVjFu3q75DhBwUpXSp7OPOWoPPF8sqn 9ipj96iSlAHeD2owcOVP6JIinXIEEnw+ID1+89jmowYYAFFSaEEVDQsFCqF6PxhBgI0Bg3vlG0y+C /4Oq4IJcUqM5lPHNtmPOWDa5IHdnE711R2+5hYhLm6XxNQIp2corVaNcTbGVqG9wgCg1i+IRk2ODe qeRGdtyfX60dWBNi4miAeYmjmSRBlIo2539J5pvkzLWHRNZfdBIfS2Gaf59qq6Rh45DzORWuTXtAR jBTIbA9Gg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxgA8-00064N-7N; Fri, 08 Jan 2021 01:01:56 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kxgA5-00063F-W4 for linux-arm-kernel@lists.infradead.org; Fri, 08 Jan 2021 01:01:55 +0000 Received: by mail-pg1-x52c.google.com with SMTP id z21so6548683pgj.4 for ; Thu, 07 Jan 2021 17:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=H8IcOdAyibzRQGXQEP5k4aObN4wu9DJRf0dSDz/i5L0=; b=C9NGEUuAM5vBKRzR24q3eqYuT//r0M6Puseln6vu2k2CbVRLZQsp+a/82vpmcRdTLV hHrxzm/p7eCUn7VON7FKSjPiK9MRpomjVu20r5iicVI4C1UTzOycDFux6NbDqtk/O2M3 lru09DBZcaEMhe+dJuNNEP0lz2FPTJwxrxWlVEeLY65vq2OX4Mrw16zzOoUHTpV5hvnK vfmh/NyAjNwIxACpumqSdNhFfwtAx676c6LYfG7lEZML3vxbtouV3Y/j51u7l00/TnDd 629qrt30yLW92TnzV+94ifr5o+sP5T7Kp8NRvvLoQCTC3s5UU4inVsiGs+wH5FrB78A9 83Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=H8IcOdAyibzRQGXQEP5k4aObN4wu9DJRf0dSDz/i5L0=; b=doCBhLfQtQp9WDBOP3+Mll7fWw2hnth2t0fDy2lWzhBBNOfdYAr/44pRLM4UZUd+cm DCgUDsR7YX9Bj+pbM2yLkE51sS88job330N+QhQrxArtu9PsxlwX7Eq8lCK74/qeGgmp K4GO7iZCDAegc/9jq8Ub801YjZ0W1jeT6UFAeMeysCyjwbV2Tt4hwB+YiL7n0ILCcVme dQmdWCziUq17YL60flw/2pAEnNXNiJ0zT1X/3MZq+/ogwNq1uKninWKsHR+u1u/m1VTb Nu4ds7IEx2h5rOBF5lsf6gXp9igzD7g0j6AZqbBUlBcugWZllNKDByuyLPzSGVK7p8kZ kVuA== X-Gm-Message-State: AOAM530A2m4utm54iTnKM98U23zRPh16Vp+l1i5A+4RK4WQw2wJ7rFoL qvr6xkx5cJc/LfwdqESUmZVHQg== X-Google-Smtp-Source: ABdhPJw4NL308Jew6euuvK4s6qyKTILSBa9PnGCWJuhxO1DIMrQrzkxc2z1sM9lZOhZk5ZQU3ZwUvA== X-Received: by 2002:a63:6e8f:: with SMTP id j137mr4412260pgc.416.1610067711528; Thu, 07 Jan 2021 17:01:51 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id jx4sm6140238pjb.24.2021.01.07.17.01.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 17:01:50 -0800 (PST) Date: Thu, 7 Jan 2021 18:01:48 -0700 From: Mathieu Poirier To: Suzuki K Poulose Subject: Re: [PATCH v6 25/26] arm64: Add TRFCR_ELx definitions Message-ID: <20210108010148.GH43045@xps15> References: <20210107123859.674252-1-suzuki.poulose@arm.com> <20210107123859.674252-26-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210107123859.674252-26-suzuki.poulose@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210107_200154_079130_62F115B4 X-CRM114-Status: GOOD ( 17.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: anshuman.khandual@arm.com, Catalin Marinas , coresight@lists.linaro.org, linux-kernel@vger.kernel.org, Jonathan Zhou , leo.yan@linaro.org, Will Deacon , linux-arm-kernel@lists.infradead.org, mike.leach@linaro.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Jan 07, 2021 at 12:38:58PM +0000, Suzuki K Poulose wrote: > From: Jonathan Zhou > > Add definitions for the Arm v8.4 SelfHosted trace extensions registers. > > Acked-by: Catalin Marinas > Cc: Will Deacon > Signed-off-by: Jonathan Zhou > [ split the register definitions to separate patch > rename some of the symbols ] > Signed-off-by: Suzuki K Poulose Acked-by: Mathieu Poirier > --- > 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 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel