From patchwork Tue Sep 20 09:22:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suzuki K Poulose X-Patchwork-Id: 1679950 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=PKIVgati; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4MWxGZ2K8nz1ypS for ; Tue, 20 Sep 2022 19:35:02 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9ZL2PtT646ijcokXTJ3aEC4KOBcPZEhTWpioYQq9TF0=; b=PKIVgatif/AAp8 IAXElyQ7pkIPazHWFcRmRjtkA7UR2XVAmdWmWM7kcYLp4X4ls/OXAX4xuGSAZOoEzQNrhdbJsVA8J F+K3gWuEB5cDBmAehTgFQr8j5jTNEwpqDTo35Dw2DHX7lsRrmmi08Npt5Ppfdovj/c77Ew1OqAyMM 1sQRywVprLOTYABKngXrN2OpIYeXIGSaL44fMdgAMMweiPOSlQ1ligLzq0pdV/tJyzs9boMwVAW4n Un/fbgn4FnK9OFJ+nNcLxVF9QiaqIPMxXePdRZizMf4q/mGOD1cVKfqbphaOFl5oWDWf0hjomdyxk Va3/DXRNi4ObSAmmmlhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaZeI-002RmG-4e; Tue, 20 Sep 2022 09:34:38 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaZTB-002LFP-R3 for linux-arm-kernel@lists.infradead.org; Tue, 20 Sep 2022 09:23:11 +0000 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 1005D139F; Tue, 20 Sep 2022 02:23:13 -0700 (PDT) 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 6B74E3F73B; Tue, 20 Sep 2022 02:23:05 -0700 (PDT) From: Suzuki K Poulose To: gregkh@linuxfoundation.org Cc: coresight@lists.linaro.org, mathieu.poirier@linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mike.leach@linaro.org, leo.yan@linaro.org, Suzuki K Poulose Subject: [GIT PULL] Coresight changes for v6.1 Date: Tue, 20 Sep 2022 10:22:38 +0100 Message-Id: <20220920092238.3798762-1-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_022310_046939_F1E7BD11 X-CRM114-Status: GOOD ( 12.47 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Greg, Please find the coresight self hosted trace subsystem updates for v6.1. Kindly consider pulling. Thanks Suzuki Content analysis details: (-5.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [217.140.110.172 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org Hi Greg, Please find the coresight self hosted trace subsystem updates for v6.1. Kindly consider pulling. Thanks Suzuki The following changes since commit 1c23f9e627a7b412978b4e852793c5e3c3efc555: Linux 6.0-rc2 (2022-08-21 17:32:54 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git tags/coresight-next-v6.1 for you to fetch changes up to 5fc1531dd771cd1481116a66f992a190e01efce6: hwtracing: hisi_ptt: Fix up for "iommu/dma: Make header private" (2022-09-12 10:12:25 -0600) ---------------------------------------------------------------- coresight: Changes for v6.1 Coresight trace subsystem updates for v6.1 includes: - Support for HiSilicon PTT trace - Coresight cleanup of sysfs accessor functions, reduced code size. - Expose coresight timestamp source for ETMv4+ - DT binding updates to include missing properties - Minor documentation, Kconfig text fixes. Signed-off-by: Suzuki K Poulose ---------------------------------------------------------------- Christophe JAILLET (1): coresight: docs: Fix a broken reference German Gomez (2): coresight: etm4x: Expose default timestamp source in sysfs coresight: etm4x: docs: Add documentation for 'ts_source' sysfs interface James Clark (5): coresight: Remove unused function parameter coresight: Simplify sysfs accessors by using csdev_access abstraction coresight: Re-use same function for similar sysfs register accessors coresight: cti-sysfs: Re-use same functions for similar sysfs register accessors coresight: Make new csdev_access offsets unsigned Nathan Chancellor (1): coresight: cti-sysfs: Mark coresight_cti_reg_store() as __maybe_unused Randy Dunlap (1): coresight: trbe: fix Kconfig "its" grammar Rob Herring (2): dt-bindings: arm: coresight: Add 'power-domains' property dt-bindings: arm: coresight-tmc: Add 'iommu' property Stephen Rothwell (1): hwtracing: hisi_ptt: Fix up for "iommu/dma: Make header private" Yicong Yang (5): iommu/arm-smmu-v3: Make default domain type of HiSilicon PTT device to identity hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device hwtracing: hisi_ptt: Add tune function support for HiSilicon PCIe Tune and Trace device docs: trace: Add HiSilicon PTT device driver documentation MAINTAINERS: Add maintainer for HiSilicon PTT driver .../ABI/testing/sysfs-bus-coresight-devices-etm4x | 8 + Documentation/ABI/testing/sysfs-devices-hisi_ptt | 61 ++ .../bindings/arm/arm,coresight-catu.yaml | 3 + .../devicetree/bindings/arm/arm,coresight-cti.yaml | 3 + .../bindings/arm/arm,coresight-dynamic-funnel.yaml | 3 + .../arm/arm,coresight-dynamic-replicator.yaml | 3 + .../bindings/arm/arm,coresight-etb10.yaml | 3 + .../devicetree/bindings/arm/arm,coresight-etm.yaml | 3 + .../bindings/arm/arm,coresight-static-funnel.yaml | 3 + .../arm/arm,coresight-static-replicator.yaml | 3 + .../devicetree/bindings/arm/arm,coresight-stm.yaml | 3 + .../devicetree/bindings/arm/arm,coresight-tmc.yaml | 6 + .../bindings/arm/arm,coresight-tpiu.yaml | 3 + .../bindings/arm/arm,embedded-trace-extension.yaml | 3 + .../trace/coresight/coresight-cpu-debug.rst | 3 +- .../trace/coresight/coresight-etm4x-reference.rst | 14 + Documentation/trace/hisi-ptt.rst | 298 ++++++ Documentation/trace/index.rst | 1 + MAINTAINERS | 8 + arch/arm64/include/asm/sysreg.h | 1 + drivers/Makefile | 1 + drivers/hwtracing/Kconfig | 2 + drivers/hwtracing/coresight/Kconfig | 4 +- drivers/hwtracing/coresight/coresight-catu.c | 27 +- drivers/hwtracing/coresight/coresight-catu.h | 8 +- drivers/hwtracing/coresight/coresight-core.c | 28 + drivers/hwtracing/coresight/coresight-cti-sysfs.c | 213 ++-- drivers/hwtracing/coresight/coresight-etb10.c | 28 +- .../hwtracing/coresight/coresight-etm3x-sysfs.c | 34 +- .../hwtracing/coresight/coresight-etm4x-sysfs.c | 29 + drivers/hwtracing/coresight/coresight-priv.h | 72 +- drivers/hwtracing/coresight/coresight-replicator.c | 10 +- drivers/hwtracing/coresight/coresight-stm.c | 40 +- drivers/hwtracing/coresight/coresight-tmc-core.c | 48 +- drivers/hwtracing/coresight/coresight-tmc.h | 4 +- drivers/hwtracing/ptt/Kconfig | 12 + drivers/hwtracing/ptt/Makefile | 2 + drivers/hwtracing/ptt/hisi_ptt.c | 1046 ++++++++++++++++++++ drivers/hwtracing/ptt/hisi_ptt.h | 200 ++++ drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 21 + include/linux/coresight.h | 23 + 41 files changed, 1973 insertions(+), 312 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-devices-hisi_ptt create mode 100644 Documentation/trace/hisi-ptt.rst create mode 100644 drivers/hwtracing/ptt/Kconfig create mode 100644 drivers/hwtracing/ptt/Makefile create mode 100644 drivers/hwtracing/ptt/hisi_ptt.c create mode 100644 drivers/hwtracing/ptt/hisi_ptt.h