From patchwork Thu Mar 28 02:35:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 161283 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp163995jan; Wed, 27 Mar 2019 19:36:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEpu3EJizGsYTyF0idE+rQqtTD49gJS1sEM+fNCDJ17fRBO467wsR1SYQFk5x4ZR9aMYND X-Received: by 2002:a17:902:290b:: with SMTP id g11mr40410982plb.269.1553740574635; Wed, 27 Mar 2019 19:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553740574; cv=none; d=google.com; s=arc-20160816; b=jUiGxcF7SKQlQuYalrplEbJDyoPzf8qgRaxZ4MxY4BVR7t+yCZDWPYj3DHuZuW3vhp VEMcjT0K3AYd4R4j/LMtWfSUPYa5uR0PlRkHR3iG4mOq15c3p5IvC0+Me+vuLHusquRN WspsmqaAt/z3EP2MY7YHBCuHsAq20a7YmB88ZhCEJAMOgaCtV9A4OhqY4mY5hN+Ywo3n uX/8qQ4gqAjzKQcy3jUar3MPTFtKBnQeWX6jLqjqwMnRJ0gdqEBBgIc+6ZJ8glxUx3Rt RbvNvDESCjQeSum4fyPMS3OIKIbBKKY1R1T3FlFwqJNAVcsl0+bkDYqjtJuOW68Eg2Pu Kpjg== 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=QT3x1Md3mQTDphty4tkPRUZzz248zgaCTuckeZqsUjQ=; b=0rHVsbIa4KnjmlzJPg/02Zuy2ZDoPsQdBfwkmNMU5A4zkU2Qzbbnp4DoB85zPI82hJ 8NHjJQx+R1+4xio0CkqmelpU/S4hBvmq+AmrQOQ8nUGJYLD7QqiWFJrYUNGGzqYfx7XG aY3cCsoqfBXVtvA5Cesatkw+0OVuxWzCX/1Hu36T7V9Q8FR8A/rvb6qoQkJkv+J+8XeF c01QPZL5XPQB3zHtWd+DHfaBgl6IT6JFyizUUsgA6ZpiToMQMbdHPk/lwP912qGQmlwn pnvaLUlFtB9aYQnYuvYeuui/8KBCaXFUuPBl1zePDSerf+M+YRTrxXvVJd/JRwlGKyEO 9pLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LpGvEsB6; 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 r35si19666150pgl.379.2019.03.27.19.36.14; Wed, 27 Mar 2019 19:36:14 -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=LpGvEsB6; 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 S1727928AbfC1CgN (ORCPT + 7 others); Wed, 27 Mar 2019 22:36:13 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:36756 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727604AbfC1CgN (ORCPT ); Wed, 27 Mar 2019 22:36:13 -0400 Received: by mail-yw1-f68.google.com with SMTP id u197so14134441ywf.3 for ; Wed, 27 Mar 2019 19:36:13 -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=QT3x1Md3mQTDphty4tkPRUZzz248zgaCTuckeZqsUjQ=; b=LpGvEsB6dlfpQOKvvPfB3+q5ULiSGoNG26QkPtBXP/NDXHfBWq8vLnciWdKJJMbI6G zOEyzGRCCB0leDNuEcTFWIDg1fi4oRc0+lZd3FgfxZAd9S+W+nsCukD/wqthhtAZuKzE zR4msgSUnx7Lf2fmppjxHqKqnG9lPp8aq86JbNi4Z+g8bSwKI8gHsgZkLZX9dp/jUbU2 5CwERI0hva8BKfS+20vgd6a+9td1mZYUS6/gkvMhi2s3WhfyeNV7zKkM9iGG65Sm5Jgx Dy2LDDdOp1NsQCPPKD7K7HKy/9k1a12L5YD7v9bhC+gCuc3l445YZsX3cQXdgxTohY1L BBRw== 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=QT3x1Md3mQTDphty4tkPRUZzz248zgaCTuckeZqsUjQ=; b=m9pJFi+QcwF1FjWYTcGubtFZ05FhiRqC6V3+0Fuenr7NflTDsIYz8sF74KkdwzRXQc ZMKNS8xxTKS/nJRhTJE/9KQneyTCxJ6u1ZjiG5E3IkmXchxaOcklcpWxJ1v3BnISFiIU Jx637gLlQ8OFr0IeGq3DN9o5t+xhXUdl484ouPg/+2rbgkKWCWFeiKV9Q0C/4491yiAh qZc15hfaA2pFi4WZRKNBvQdrmexKgRA7MW0NgzVMkzjyumHPZRzXsc7eT0ZGafckZ2TC 4D2XrP1IYpA/UZiMgtFJhb5GLWjPPmR0IPSaw+Ic2OBRtgD/gLKlIgfS8/D2FFbMQgAc EJfw== X-Gm-Message-State: APjAAAWtFhPJU3EPxRxsQflxBo4pdV4ZJ8CmTX2DgWo0D360oJ/NgjUg IlnqEgSmBg0yjadsPEirWps5+w== X-Received: by 2002:a25:2a0d:: with SMTP id q13mr4363916ybq.257.1553740572635; Wed, 27 Mar 2019 19:36:12 -0700 (PDT) Received: from localhost.localdomain (li931-65.members.linode.com. [45.56.113.65]) by smtp.gmail.com with ESMTPSA id t71sm16272787ywc.4.2019.03.27.19.36.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 19:36:10 -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, coresight@lists.linaro.org, Wanglai Shi Cc: Leo Yan Subject: [PATCH v3 0/2] CoreSight: Support static funnel Date: Thu, 28 Mar 2019 10:35:07 +0800 Message-Id: <20190328023509.22242-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. So the 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, the static funnel related implementation heavily follows up the same fashion in Suzuki's replicator code. 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 with perf commands: # perf record -e cs_etm/@20010000.etf/ --per-thread ./main # 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 Leo Yan (2): dt-bindings: arm: coresight: Support static funnel coresight: funnel: Support static funnel .../devicetree/bindings/arm/coresight.txt | 45 ++++++- .../hwtracing/coresight/coresight-funnel.c | 112 +++++++++++++----- 2 files changed, 127 insertions(+), 30 deletions(-) -- 2.17.1