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=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, USER_AGENT_GIT autolearn=ham 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 F4145C43381 for ; Wed, 20 Mar 2019 12:52:54 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C498A2075C for ; Wed, 20 Mar 2019 12:52:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="H1mkOnnJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C498A2075C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hisilicon.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-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=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=5fIcav6zc9QDsPU2zZs+N/FcdS4tALgBTlG/v3JsIjQ=; b=H1mkOnnJz/Qsnf L5tRP5qQrPCyU9Rf6fG/zau3rWQCJGW91gruaoPy+YC/q1blEdK14xgztXGNqbuGVHiGNCRlJlxaL Cel0+vSle8bygpZSo6VRp/Rsf4RwL/0HHwPF28gb7zPFKpJimxjKmF8CFX2Tuqvh9adC4bNitIKeT nhVi0APVa8pwT7ZCc6x2o8x08DKv6/FTaDXQVbAOZvoRSuNzu3kL/VbRmWpWd09E28Gd3AHviAesT OdHUErKnz9eWstWjG1Ai7cNsqCGIOGs+C3FWhewDhGonjOi59X77VhfxGUCzk9xn/nSTosCTjAjX7 i3P/NTTA3wjWzCgHfYPQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6ai9-0002Qt-Pq; Wed, 20 Mar 2019 12:52:49 +0000 Received: from szxga07-in.huawei.com ([45.249.212.35] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6ai6-0002Pj-P6 for linux-arm-kernel@lists.infradead.org; Wed, 20 Mar 2019 12:52:47 +0000 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3714C3AE664F8A08E120; Wed, 20 Mar 2019 20:52:31 +0800 (CST) Received: from SHA1000170415.huawei.com (100.106.92.139) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Wed, 20 Mar 2019 20:52:22 +0800 From: Wanglai Shi To: , , , , , Subject: [PATCH v2 0/3] Support static funnel and CoreSight DT on Hikey960 Date: Wed, 20 Mar 2019 20:38:07 +0800 Message-ID: <1553085490-42870-1-git-send-email-shiwanglai@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [100.106.92.139] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190320_055247_020936_D5505779 X-CRM114-Status: GOOD ( 12.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, suzhuangluan@hisilicon.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, leo.yan@linaro.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Leo Yan Since before there have no platforms use static funnel in mainline kernel (though maybe some in-house SoC has used it but didn't upstream for mainline kernel yet so we don't be aware for it), when enable CoreSight DT binding for hikey960, we found the SoC uses the static funnel in the link path and but it's not supported in CoreSight funnel driver. So patches 0001/0002 are two patches to support static funnel, this first patch is to update DT documentation to support static funnel (we call it as non-configurable funnel in documentation); the second patch is to support the static funnel in the CoreSight funnel driver. Credits to Suzuki shared code for CoreSight replicator refactoring, patches 0001/0002 heavily follows up the same fashion in Suzuki's shared code. Patch 0003 is the DT binding for CoreSight enabling on Hikey960, and it's the first consumer for use static funnel binding. This patch set has been tested on Hikey960 with perf command for trace data recording and decoding with below commands: # perf record -e cs_etm/@20010000.etf/ --per-thread ./main # perf report --tui Leo Yan (2): dt-bindings: arm: coresight: Support non-configurable funnel coresight: funnel: Support static funnel Wanglai Shi (1): arm64: dts: hi3660: Add CoreSight support .../devicetree/bindings/arm/coresight.txt | 45 +- .../boot/dts/hisilicon/hi3660-coresight.dtsi | 456 ++++++++++++++++++ arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 + .../hwtracing/coresight/coresight-funnel.c | 112 +++-- 4 files changed, 585 insertions(+), 30 deletions(-) create mode 100644 arch/arm64/boot/dts/hisilicon/hi3660-coresight.dtsi -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel