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=-8.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 54A51C10F0E for ; Fri, 12 Apr 2019 10:28:06 +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 26EDD20850 for ; Fri, 12 Apr 2019 10:28:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="uYrj+o0t"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="m1LT+h/H" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26EDD20850 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=JaqjnkOy44RDWIf8yF51MYvNOW+yEaLt7q4z+oLs6yM=; b=uYr j+o0tnHxrrSxGdlg5GX3ikPzeVwzyqzPZbpudbukk+hYkv5hm+1W5n9Z8lfmJ4HgT14j6OqFIr3D9 7y1qkCpWB1LjPZdQ5xEDjzMl784da3d3jKSFS9sZmpXE07tdA2Uwc2r0cioZ//YCSFWe0hGgt6afX HvARFsSR1gYhlWUdmYoq62Q7avfT9n1yevQTO21XTT24/+WPdZF76o1a/SoMi1/Q8jUI+Ds3Dawga Of8kbaLrsd2PboT4rER+NHe/EHEiyza/1hHuK1zUe2c1879COwFHB/H9ElPhKuMNY8K2iQy/OWyTS tsRkSQPquO1Y/3vbU89skrY5qyP5EDQ==; 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 1hEtPd-0008DU-1M; Fri, 12 Apr 2019 10:28:01 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEtPY-0008CQ-Tc for linux-arm-kernel@lists.infradead.org; Fri, 12 Apr 2019 10:27:58 +0000 Received: by mail-ot1-x344.google.com with SMTP id c16so7939592otn.4 for ; Fri, 12 Apr 2019 03:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ak0sXwHrqDU6b08LnOyUh/QXVY4o/qkE5aK7erGO0HQ=; b=m1LT+h/HJjFW/2By8A45j9Lp2DjMWa6fB207dicHx8bGapA7JDGSs4nb8HIjEhKYDr cuUmcTyMx7HiEU+KSAOO/BzzJNc9zvTaOio9fgf09IpU150NWri8qdfImF3kwTJaFN8M EHPoeOtvG/DolFmXn4TvLWq7/dHfutvsL1P7PvO21EgPovQyJJE/KDFqN903S1UZxEwu cx3rFhXM9A6HwLi5Q2/KuudR9Of9tUzoGpOPmhsYOexXQqFnTLElN0p6QXBqE0Xsnm3q +JrsPWh39ah1vCThUfH0zE67O6FeLmdQKf0DJ+y2Ob9IyPltF4A7DolO+AXSsVYXGkPF WdoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ak0sXwHrqDU6b08LnOyUh/QXVY4o/qkE5aK7erGO0HQ=; b=DpTYMLfJIh7WQ+H2x0xYtp1TjSeDSjQ+doPJGIcHTEtCecJ+AMe+LBjs+kxM3nmb7X 8ZJRGqB9aeF+zvo0A03G5fWE+s15O7PcR/w5L9N/NRMTSc8rgEiipFIEh5UbAIfNyHT0 ITd7I6vijfnLW/XXJ5LWCZx1SGXFaFtigxgOg8zod6E9P1v29wglxREKAj2IO+ySC76Y 6K14Gqcr8OGrucrwNMtWdZVo4FOncThzDROGG+XyAQzbXeNurlE/q+3fioqYIOq9NdFH lrDyB/p8SCO+00gvhZ+5zRV+Cmw4HH3BgpYl2HSCFhRPqXK65U5uhKR2OihkoWOPP1Ml 8G2g== X-Gm-Message-State: APjAAAUgbx9c651kXC8ExqHvjpPyiJ9M10tIWt/F74XwGGvsGWJ5ZzNq oTs1VY05xUJzHsZey9/zbX6hvw== X-Google-Smtp-Source: APXvYqwvT9XGDxe/h02vLl5VGNg7LugajFUZ+DPSrGwAcsMh7t5yusNAzJyOXFBFpHmiQXQvWWvOjA== X-Received: by 2002:a05:6830:2113:: with SMTP id i19mr37069404otc.33.1555064875278; Fri, 12 Apr 2019 03:27:55 -0700 (PDT) Received: from localhost.localdomain (li808-42.members.linode.com. [104.237.132.42]) by smtp.gmail.com with ESMTPSA id 88sm17530692otj.3.2019.04.12.03.27.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 03:27:54 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Rob Herring , Mark Rutland , Alexander Shishkin , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/4] CoreSight: Support static funnel with DT binding consolidation Date: Fri, 12 Apr 2019 18:27:34 +0800 Message-Id: <20190412102738.12679-1-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190412_032756_968048_8C42D64B X-CRM114-Status: GOOD ( 12.52 ) 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: Leo Yan MIME-Version: 1.0 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 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. When support static funnel it's found the DT binding compatible string doesn't follow the same fashion between replicator and funnel; so the first two patches are firstly to refine the replicator DT binding and correspondingly, change the replicator driver to support new DT binding compatible. Patch 0003 is to update DT documentation to support static funnel (we call it as non-configurable funnel in documentation) and unify the compatible string with the same fashion for replicator and funnel. Patch 0004 is to support the static funnel in the CoreSight funnel driver. The consolidated DT binding compatible strings are as below: Dynamic replicator: "arm,coresight-dynamic-replicator", "arm,primecell"; Static replicator: "arm,coresight-static-replicator"; "arm,coresight-replicator"; (obsolete) Static funnel: "arm,coresight-static-funnel"; Dynamic funnel: "arm,coresight-dynamic-funnel", "arm,primecell"; "arm,coresight-funnel", "arm,primecell"; (obsolete) This patch set has been rebased on CoreSight next branch [1] with latest commit d5d246a56af0 ("coresight: Merge the static and dynamic replicator drivers") and tested on Hikey960/Hikey with perf commands: Hikey960: # perf record -e cs_etm/@ec033000.etr/ --per-thread ./main # perf report --tui Hikey: # perf record -e cs_etm/@f6404000.etr/ --per-thread uname # perf report --tui [1] https://git.linaro.org/kernel/coresight.git/log/?h=next == Changes for v5 == * Marked the the obsolete compatible strings to be more abvious (Suzuki). * Used pr_warn_once() to print out warning if DT binding uses the obsolete compatible string (Suzuki). == Changes for v4 == * Consolidate the DT binding compatible strings for replicator and funnel (Mathieu). * Changed replicator driver to support new compatible string. Leo Yan (4): dt-bindings: arm: coresight: Add new compatible for static replicator coresight: replicator: Add new device id for static replicator dt-bindings: arm: coresight: Unify funnel DT binding coresight: funnel: Support static funnel .../devicetree/bindings/arm/coresight.txt | 60 +++++++-- .../hwtracing/coresight/coresight-funnel.c | 116 ++++++++++++++---- .../coresight/coresight-replicator.c | 6 +- 3 files changed, 147 insertions(+), 35 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel