Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp530633img; Wed, 20 Mar 2019 05:53:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCqLFGRLL6fj3ow+dyhWmFysQS+gNja9XcB1U6O7CbnfuqMCs1Dgrk937X+QxNNpVXbXh4 X-Received: by 2002:a17:902:584:: with SMTP id f4mr7973596plf.330.1553086410003; Wed, 20 Mar 2019 05:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553086409; cv=none; d=google.com; s=arc-20160816; b=zjAPXz0gIx+SvBgNoO7ONHrZDUQR0IpYGl6TH57q21vv9hNL7d6zwb6rlrWBLhJqEL AvDAChwVxV38q1rN3KpM3qQpeI8OGHcBuYQFN81MsLiCwy9RM1haaLWz70wUP/KlYXC4 nl6fT/shb5m9yIgG1BS/s7zUZTBlFP5Q2Q7iR54EWSmII0HBgx4MU78k3aO3BaT1L9s7 BUc/sWD27DJNLVNObX4moXdNuG7RcrVkecQBmKZ0xgjQuqDfsuTLfPmxHCBsQnTBLGra Or3VAH0RBCi1LnLD9bOZVmcb9RlMKCFcwR57aIHdasj8uSGfAAfkJMVTaPnKqSoZhaEE 2Ssw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=HRvZrkeBftNHjsl0Gn/MFRH801lHq3SiRsOxVcESND4=; b=dNfJqC/DOl/qC+HLosDGn8vWySR7Npm9o4neikGBaETqceB9lmzqT1FQORyBt0g0tK w38iNjbLjlqAmL2U6t+XN63n3/jeuRHaA5cf61V+UFn+Jhy7Vtywo458AiIozhBgjRrb t+gZU+ukCGopSvddGfHxTxTbahgPQR/1XeO+vHl6gGVmGwLHNRIIJcBpST43Xiz6ykLb vC4+rnC2FKvTQ3OkEv9ad6csSfh9JmvcXLplDi9bUyPwPe70VJAVfaLil2eB9Mehh9Ik Q6/CkfhUZJCojW597RkQwBe6YGLmo9HmHCrkdmK9m4FY6CcmeeSu6ZGlrbRpkAlPEGYo PqIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r18si1673232pgd.585.2019.03.20.05.53.14; Wed, 20 Mar 2019 05:53:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727222AbfCTMwd (ORCPT + 99 others); Wed, 20 Mar 2019 08:52:33 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37304 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725996AbfCTMwd (ORCPT ); Wed, 20 Mar 2019 08:52:33 -0400 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: , , , , , CC: , , , , 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 Content-Type: text/plain X-Originating-IP: [100.106.92.139] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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