Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp279864yba; Fri, 12 Apr 2019 03:28:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRalVcSvZR8C3H0PydDFL/k/SFA5zmlIKpXGFO2ZlMPc6Ggdp3dgNIoFCqqUmPBvVctXF1 X-Received: by 2002:a62:6f02:: with SMTP id k2mr40742787pfc.136.1555064935123; Fri, 12 Apr 2019 03:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555064935; cv=none; d=google.com; s=arc-20160816; b=KmLazEzSM9rITYQQSquwV+jGd6xzyvIHqLHPe/dVpNW5DBXQ1NP7hL//2i5NO27BLX e0Pb+2QeZytD00SmYy6zrbC1cOc5lhACnHPTA874qoEPqwMaJNMoPtFHuy84xQEAXwb+ kCA0TvAFaVQj+LTsKEGZpTA77oE6gqaKSVrm7ko5fa/0ckI91mna85NSmaveVmmfSnVo SZPLUytud+2YmJWzHrbe0ym9+TNS5eOXIAPtHMB24kvq9BI3WjjqnpYM6MrD38i5aHTK OJ+JQ5qU900umrNDhCfIeCy6gjrVi2jgSoSRpNsi2d1oZRwU+Pku+0gfoKkqEFdkkjJI rSXg== 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=zwBWA4l7AJEbt2po64HmExb+a9Nx3kCEQDrdsewHlSuf0TO2n8nmvdI1edfwTCMAB7 Yx3GOYI5tT4d8fpasObFYEebs0HdjavgIHM2fXlsDGGXlqB6uP5wA7X6ENI0ww/0Vlr0 b9SMcD3J4qM5Cd1oXlMrk29JhwHOSOlKUkpxJZU1Fcu7da+hLHcmOyLFoDvLyWZEFsZe ArOl1ilntMroj+mLUyFSjQeFiXyqf2nloZvT/DNTfuB6zXkdTCtOHzl5fljC6DXoHgbu +dHmD3Q6wZFgQTQMcnnVd51QW7H63kj+yoVGt2jk1U5qFqYyUvmJ2VP1XhFbqlsoMevl qG3g== 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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 p16si36909493pff.85.2019.04.12.03.28.39; Fri, 12 Apr 2019 03:28:55 -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; dkim=pass header.i=@linaro.org header.s=google header.b="m1LT+h/H"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727290AbfDLK14 (ORCPT + 99 others); Fri, 12 Apr 2019 06:27:56 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:46644 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbfDLK14 (ORCPT ); Fri, 12 Apr 2019 06:27:56 -0400 Received: by mail-ot1-f67.google.com with SMTP id s24so7898886otk.13 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=HcQm8c5zJ+23zwmO+eFqWk16ZPhgt4UP1r2BH2tenEgMt5Feoq/zfNTaoOUTySUCHO SSEf2nAccBE8WVCDfjUwp2Pjdxb6K1/VIz45FgoHdIosLI//vKgm6tU1uLoRCnIz4J91 AAVXyqpUc3Kgl2BQc5HdUqWevC/iUsNStIc0Ok+5tHEGuuXZpXQp+0cenV8en0bM6yQZ T4A/M0nNVciM5Ol8nwwSx/lpcJ1Icxx0mX7EHnXgqnVbAMRgIuignJNBimNtY9os11si XaWwnIdqfOEgAdyruddmc+0YsnZl6W+iWJ7QCAh6/ZzC/5aLZrbKcXYl8eRTzN2JH55J acUA== X-Gm-Message-State: APjAAAWgq302YunSmOgUWji7cLdituUTYBmErSWTtKHzRFKudo//a/vy 5x1rUK3HLFgUnkG9Mg+uRLYSCw== 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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