From patchwork Sat Apr 6 11:21:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 10888127 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4894313B5 for ; Sat, 6 Apr 2019 11:22:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE94828ACF for ; Sat, 6 Apr 2019 11:22:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC98E28A1E; Sat, 6 Apr 2019 11:22:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C168C28A1E for ; Sat, 6 Apr 2019 11:22:26 +0000 (UTC) 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=5EkqLAYXeDKXlUv7c4iOQtVwEoazkvKAEcZhca1/yU0=; b=Fsr AXULg73Z4DtuEVi5XjmBeNE24GYyq19hMXIkOoj1PHzwOmi8uAE0xN6Yoz3g1gPQzzFI2WTU6uBTd URykWQEhp+89cEFerqre3XU2BBoiQpUtsLgbp7aOi0qej7HHvM5il9QDmQg5/AGRasBI/ug0u9pF7 9H5QNSMvSr29/eA9fw/KgDpPDNhr+GCOzsU7qsSMc4icf07i/3svLbK+qdniu28b/MgvEUfWHwCQb h/yL/gR7OHT2I4UXb57oJdvVxxfWQiNGaEzm/35KEIEATL9oDtiTgTLaIBmICTTaeUPH3XzK7j9fj CLza4R7vludv32Jlil2EqTdTdSKpEsg==; 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 1hCjOv-0003Ro-45; Sat, 06 Apr 2019 11:22:21 +0000 Received: from mail-yw1-xc43.google.com ([2607:f8b0:4864:20::c43]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hCjOr-0003RV-8y for linux-arm-kernel@lists.infradead.org; Sat, 06 Apr 2019 11:22:19 +0000 Received: by mail-yw1-xc43.google.com with SMTP id z9so3266046ywd.6 for ; Sat, 06 Apr 2019 04:22:16 -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=zK7fvSVQMj/07ORfWmLuBaritLRIGJovrhUIsFGapPk=; b=fbRbu2iwKv+K20JLz22HqAZm14hdsYGYK7Lc5WVsAaxtynFF8PO7AqqBSfh2siPEOt ZjdOuJbawPSSHXEQvK5ifO67gecMAcAVTipRaLyNAVkPikpJ6zEJSDhieOwyi3uZRQIa AXcNE+jT+9RZzJnbRAYJT1gbXNVhyr0Ql82wFN2FshBZGHaUV8vplP2RY95x8I5eAGBr 9R1Cbuol1cKXrLrjsp2Izc1f0d/q2493hsv8/OvLZy0bTkLTjnpX3HDYY2orE/MXB5w8 VTX6X1sWA7eVHzjexjqjm5vrTvUb5QZ0w6sDRorOzkXWe0MwF6YR/Nqp2gVtIhnyLAuE pYDw== 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=zK7fvSVQMj/07ORfWmLuBaritLRIGJovrhUIsFGapPk=; b=NGfdLa9VS5wf+dWh7hkO2ETfK4XJJTXWeMkcwXFYiaPfz3SX/zHu9oXNL9H/LZDNaj MqOJPhCnL0Q2/aOXKlEFpXVXcKw8tljxH3HGAABOmKRc/W0CYsLmBhaEMCLn3ywnX5ZA bafZ1dGkF3CTNnvK+uTTgJnsMOODCiGY7kQXYIlPp9vp9zrccOsbDlEQw0MZWac+/qIR izl4Zh03SUBqEHlzE259rm6n6VAmFTRF2VsCXk29JGaFYyQAhLMYapDZra023OAbHlm9 TRyrOgcb9AfDSbqp9NExi7O2z7kbMgF2l4Dk6jmF6RD4Z2uE1BQNy1MARwUuLioIHyOg iIQA== X-Gm-Message-State: APjAAAXlvRrTz10fta5Q392KJjWAM41DSjxq7IzzmGimiYiEWV/8gubG LOrOlHOamg4oJPCBLluPOVKG1w== X-Google-Smtp-Source: APXvYqxKmV6zZtWJrNWP0dJ872MM50J+UCx4TxD1Y+z48T758pZiEkxAPSPeteswZxPfuSo0OFEh2A== X-Received: by 2002:a81:3611:: with SMTP id d17mr14945559ywa.344.1554549735546; Sat, 06 Apr 2019 04:22:15 -0700 (PDT) Received: from localhost.localdomain (li931-65.members.linode.com. [45.56.113.65]) by smtp.gmail.com with ESMTPSA id w22sm12729360yww.58.2019.04.06.04.22.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Apr 2019 04:22:14 -0700 (PDT) From: Leo Yan To: Mathieu Poirier , Suzuki K Poulose , Rob Herring , Mark Rutland , Alexander Shishkin , Wanglai Shi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/4] CoreSight: Support static funnel with DT binding consolidation Date: Sat, 6 Apr 2019 19:21:41 +0800 Message-Id: <20190406112145.15184-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-20190406_042217_348695_FCEC3669 X-CRM114-Status: GOOD ( 11.78 ) 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 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. 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 P.s. in this version, Hikey960 CoreSight DT binding has not been included and will be sent out separately. [1] https://git.linaro.org/kernel/coresight.git/log/?h=next == 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 | 112 +++++++++++++----- .../coresight/coresight-replicator.c | 3 +- 3 files changed, 141 insertions(+), 34 deletions(-)