From patchwork Fri Apr 12 10:27:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 162105 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp449387jan; Fri, 12 Apr 2019 03:27:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyt9jYbik7RHdFOOnQKhXVSVSv1POMmAZSVCcFauBK+h6aCH310YP4Yc1I8AyIr3ajTert2 X-Received: by 2002:a63:2045:: with SMTP id r5mr37853927pgm.394.1555064876909; Fri, 12 Apr 2019 03:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555064876; cv=none; d=google.com; s=arc-20160816; b=O2DBxuj1Ar/VKugwd+kA+Rs/vDvg9Zi09yTBgjL8d1iyIfwUU3ent90HAhY3LvQx3c g3pn9OeKKfA8ftvIUDiUvEZFm6SLeP680zk1tjwjk9NckE4xcP9BzKLmPUUUUV8d+OQc EyjIlbIMGuNsRoNqjMperHP8cB5LuqMndgxiNOicvVsC6XEDL0wAvbAYAjEbK2V4P7ok 0H0npLlNbUPLtOpKmtrGCuJSHhogr2O1B8lrJPYwR9X2eD1l3SYPb8OIbrwwbVsEGjXc r/+SgcquqZxnTS67qnlA0povt+1aVZLrO8HwTiRU01gwSjnpfsD/N5h0EQ8m2D1o2XEK xiig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=ak0sXwHrqDU6b08LnOyUh/QXVY4o/qkE5aK7erGO0HQ=; b=vLPn28YzC+1rTEjM6NLJDUrtJ2+7XbeYzjcwa6C53dqxdeYgNlODbpmpf/TBU8rZuq pJ6mZehdVsvIBWw4HL0S4bfNGv5fbzD0MjEWs3cgF7lIczXAQSIxvGOZ9/Hm+ucpdHO3 EiAwT2ZNzKIPBWnHLRwzBfjaUob+/dCmh5HHjdIRHpad/8EYpoxSLZBducUu3knBos3J IzsI+rWjHqIGihktXGIDbrwAgYLMouvIdwMnkqe4Rmq8DSv50ejeEl3JyzWoU/dRfHFc 1v0be+Vqrvguk9dMwscy2E8yOQ4QbOwzdCK4ze9TDrtM7JM7yfIw/dK6LwVOUtRVD+WF ruuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m1LT+h/H"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c19si38009807pfi.230.2019.04.12.03.27.56; Fri, 12 Apr 2019 03:27:56 -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; dkim=pass header.i=@linaro.org header.s=google header.b="m1LT+h/H"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726973AbfDLK14 (ORCPT + 7 others); Fri, 12 Apr 2019 06:27:56 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:33942 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726682AbfDLK1z (ORCPT ); Fri, 12 Apr 2019 06:27:55 -0400 Received: by mail-ot1-f67.google.com with SMTP id k21so7956640otf.1 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=WmvLE+ALlf1CPk7YmqiOsPOCcntKf7LdAa4906poAzX1ycUptdzemrrxUJNg8THPjj hyMysnffpd71DFMIIV0lQ/iVOLst7p2qIbhnungfvTPNaiC4ANvCi6iuYrGbKNP9VGdY 2NTClRO34u+1u9w0uIr2hluIJp9O0KRP4Caas9VeTh+bt/EHPzAlS8fG+HXkut87VK1a dVOGE4LKPbOcBN6Pfz60n742oEX01UJOaPpIJTStnRv2ec4vD8WlT2yxMz68E+mVmwfj QorAmViy8w2DhGzJepTa3ZFzCa6qr9ELzkR10TTYnknYEoEH7SgdvVWyh5B2VMDSWIYl p8/Q== X-Gm-Message-State: APjAAAUdbTib26WOw845er8xAvS44LLbgBL996l/rxd0B9NX9aFyLjBX /Woyo3SN/Lw0JaIMeaso6xuBLw== 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 Cc: Leo Yan 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 Reviewed-by: Suzuki K Poulose Reviewed-by: Suzuki K Poulose Reviewed-by: Rob Herring