Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3308373rwo; Fri, 4 Aug 2023 02:52:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIb52yoRCs/r3b/3G2BNb72Y6BlLHC0vM+EbnH4F4uD7DO5g+yU4GTZjjCVgWE7rSOJhaR X-Received: by 2002:a05:6a21:789d:b0:132:842f:8adb with SMTP id bf29-20020a056a21789d00b00132842f8adbmr1611637pzc.23.1691142751053; Fri, 04 Aug 2023 02:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691142751; cv=none; d=google.com; s=arc-20160816; b=ph8BLuXYQK8faCeTUoGAga6Txc1diGUAnpgNj9halH+L07JJWXVAbBsnhSv5Srl8Le YF8JVlH/kfJ0ZYBpEcQbGdso47rY0fMZ75voTBHmGLCen7XtSs60e0zR+equ4uxWRC4d idTlWcJGl9RgVvdQOMhlRxCDbf1OL4n78DlVi9jIBGJUs/mLo3vik7K8IOcK4WLO0q7Y J8n6JZmM2rt6CzxEfoI6QFKY9hK1YRynhkoEnCh0Bqd5Zippz3BGbsDpq6Y36aLucCMi ebB+UC4hOsTM+JCxm6y/hXZ30r0BimuumYTmP7a4AN45mRuw3YAmf48G51jPFDau+QBh PiCQ== 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 :message-id:date:subject:cc:to:from; bh=26JrgvS0Ls1mXvLE1SpnaLH5X33XJko7VXSNRrX36qc=; fh=gzsRWniEvpnkgBxPOCIR2xEnGyeSwAL3OQIatOENPCw=; b=NIoiriDaP+7EsZ1doxmdTN28VmX5kE0PcTL2W4oTOwWwNH2mL6HtwLDEAX6eR+6y/p JLbAYZssu6wXG/h1u/QLSoDtQpfM3fbyR6U8t3kX83lMxlAb0tmKtVi9F9Fz/vAJzcN2 sV6Wv5WrsDWVwyvT2z/MF+mXIoOs/TpMJk7DDiVhVavmKdG+Mr/SsL9TTPFlCfPlg3NH C5+ruC7+n5oJXZHKuyi4E5a2gqv9WwIHlMsgbDTV/PTjJOcK1Bpah//YCDsKWNzL7Pl0 x+QdmKbm2sIMDtk5lqjLyRvf9iP4b4cKaV8QlLLCTMu4cM1AbVUpoRFx/e/CQ2dREOGZ W+xA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j17-20020a635951000000b0056416c221d1si1567038pgm.581.2023.08.04.02.52.18; Fri, 04 Aug 2023 02:52:31 -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 S229923AbjHDJE2 (ORCPT + 99 others); Fri, 4 Aug 2023 05:04:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229659AbjHDJDr (ORCPT ); Fri, 4 Aug 2023 05:03:47 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9843B4ECE for ; Fri, 4 Aug 2023 02:00:29 -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 01A1B2F4; Fri, 4 Aug 2023 01:53:20 -0700 (PDT) Received: from e127643.arm.com (unknown [10.57.3.154]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3F40E3F6C4; Fri, 4 Aug 2023 01:52:34 -0700 (PDT) From: James Clark To: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Cc: James Clark , Catalin Marinas , Will Deacon , Suzuki K Poulose , Mike Leach , Leo Yan , Alexander Shishkin , Mark Brown , James Morse , Kristina Martsenko , Anshuman Khandual , Rob Herring , Jintack Lim , Joey Gouly , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] coresight: Allow guests to be traced when FEAT_TRF and VHE are present Date: Fri, 4 Aug 2023 09:52:15 +0100 Message-Id: <20230804085219.260790-1-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 The first commit moves the register to sysreg because I add the EL12 version in the second commit. I couldn't really think of the best way to make it fit in sysreg without any changes, because all the fields are shared between EL1 and EL2 except for the CX bit which was named differently for that reason in the original definition. The CX bit only exists in TRFCR_EL2. The test results have some single spurious EL2 addresses, but I don't think this is an issue with this patchset because it happens in the host-userspace case which maintains the existing programming of TRFCR. It's likely an issue with the model but I will follow it up separately. James Clark (2): arm64/sysreg: Move TRFCR definitions to sysreg coresight: Allow guests to be traced when FEAT_TRF and VHE are present arch/arm64/include/asm/sysreg.h | 12 ----- arch/arm64/tools/sysreg | 26 ++++++++++ .../coresight/coresight-etm4x-core.c | 47 ++++++++++++++++--- drivers/hwtracing/coresight/coresight-etm4x.h | 2 +- drivers/hwtracing/coresight/coresight-priv.h | 3 ++ 5 files changed, 70 insertions(+), 20 deletions(-) -- 2.34.1