From patchwork Wed Mar 20 12:38:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wanglai Shi X-Patchwork-Id: 160660 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp251107jan; Wed, 20 Mar 2019 05:52:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyV+rpivDRot7qyvyp2CiSoUpmtHBtV3cFK3ulJiCX/nhfV3NQFiz90Ob5wNNh7AtOFcwGU X-Received: by 2002:a17:902:f83:: with SMTP id 3mr32468018plz.125.1553086354237; Wed, 20 Mar 2019 05:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553086354; cv=none; d=google.com; s=arc-20160816; b=Yazv143NlOr5weSvRziqYxQIXMZnNTXk9bF7FUOONt43mtUmLbn1bj9RBbR19Ncwh7 WRRDU8c2ZSORu5LPa+ZfHevU/uleEJ7wLAjGxumBGKlHq+UNsoKSdWIGjbAH/23Csirk xJeA7uSGpAVzAX3dn8cG7MWViInlZu7G4Vc/jGfDwKtlJ2tzKj0563wmePkjx9eIUshO P0jpot0vEvtRxLz722N3bWZkYv0IAAmrnvgP3gaMvkvxjnJQCa8hlpdq+KEk3RKO9Hcg mesUG4DcSYkwgZCh3s1MMBAfyGLhjp33LOK7egDMi9eLA07e+AGsLjO9qjlHShrmg1wp pT4Q== 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=Z3sdy8YNBVu5Hj5a1rpbuyHosDaD52+lHDu+WnzmIoW8uOuK4K3+Fnp8i6Ht5xJJf3 hf9Cfn/UUCa8Z45coYS19Tfh8RNZjdmRS88fah13vHN+B6TVi78YQto7wrAxAKipXEaX SqJFxkOQUnHEN2pWb0+ajgR3N0V9AqJ7kLBd7H5LMaAaPkVSEgDPW18stNI3KAfHSM0N sPZw4R4/0D/n2VRMacJeEB1KQgmLNTD2DkqRB5ByW7MHKkWXuMJDpAbAH5ylShxxE4cT o/Wt4zIY+r4N4RAY7gqOJhFXIHJNlUgMlpyiEkl1o0+OS+9ZiyPxovTr+ve1UF3xJOLX ehvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 l39si1925711plb.143.2019.03.20.05.52.34; Wed, 20 Mar 2019 05:52:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726239AbfCTMwd (ORCPT + 7 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 X-Originating-IP: [100.106.92.139] X-CFilter-Loop: Reflected Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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