From patchwork Sat Mar 25 18:23:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 95997 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp565468qgd; Sat, 25 Mar 2017 11:24:50 -0700 (PDT) X-Received: by 10.98.155.149 with SMTP id e21mr16720269pfk.24.1490466289962; Sat, 25 Mar 2017 11:24:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si6973259pln.158.2017.03.25.11.24.49; Sat, 25 Mar 2017 11:24:49 -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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751742AbdCYSYs (ORCPT + 7 others); Sat, 25 Mar 2017 14:24:48 -0400 Received: from mail-wr0-f176.google.com ([209.85.128.176]:32776 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639AbdCYSYr (ORCPT ); Sat, 25 Mar 2017 14:24:47 -0400 Received: by mail-wr0-f176.google.com with SMTP id y90so11126326wrb.0 for ; Sat, 25 Mar 2017 11:24:09 -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:in-reply-to:references; bh=xMlFBFVvemMZBuArtf+E4kfWHZeztmeOkn06OJtD6FE=; b=HeRv77l1CBrHpEIDqyp8eKrBebk5LOSSvGKFjRZEtOWfWirEnLuNa+yFATEuiw2ZD7 4DXrBKsT4ihWvQuGB2vG2i6a62JmnF7BG/uoLDFp03qKSgZs6MVMCMlEMuPt6UW4VfVq CkU5WEznqUVTlLAMe20V4kYTtmjjqQsEv+8Qs= 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:in-reply-to :references; bh=xMlFBFVvemMZBuArtf+E4kfWHZeztmeOkn06OJtD6FE=; b=jKDT6GUA0sie9wcLDXyjTFAh7UMMXoTW94SOfcenvx21DX0ANpaqXgwNpEM4d6Oiq6 xSEgFwv8AKdNQYUg7i2p0UX6+IwxZdJ5wfi/PMKhwC/PPGFgrN/blbGdf8tbCYbGRrSK PWzxrsEITr/OH31tP0u7VG494J/H3d6Xh7l65NvExSPWcihRAjPr3tUgeRar1Apj71ah iJVAxnFbNqNVBgXmZ3+48ni7sUjLn1n+vPijyxrej/IZOE+5cs5BFh+BlmMJcsQOxhkK MCMMEfbrHD1rZaLIWKtMopJKTiv3jg7zKGFd9KTgPqqMfGGu0fkLZHVbdUZ/Aiwe+dh5 JAoQ== X-Gm-Message-State: AFeK/H3vmXPCo/d4fJse3tu57H1KQ5WiJ08Zd8LbKd49r5CKHMFBlX/PADSJ72SgnUVP3Gxi X-Received: by 10.223.156.2 with SMTP id f2mr12989917wrc.176.1490466248174; Sat, 25 Mar 2017 11:24:08 -0700 (PDT) Received: from localhost.localdomain (li1529-187.members.linode.com. [139.162.244.187]) by smtp.gmail.com with ESMTPSA id e72sm7464075wma.5.2017.03.25.11.24.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Mar 2017 11:24:06 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Rob Herring , Mark Rutland , Wei Xu , Catalin Marinas , Will Deacon , Andy Gross , David Brown , Michael Turquette , Stephen Boyd , Mathieu Poirier , Guodong Xu , John Stultz , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, mike.leach@linaro.org, Suzuki.Poulose@arm.com, sudeep.holla@arm.com Cc: Leo Yan Subject: [PATCH v5 2/9] doc: Add documentation for Coresight CPU debug Date: Sun, 26 Mar 2017 02:23:10 +0800 Message-Id: <1490466197-29163-3-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490466197-29163-1-git-send-email-leo.yan@linaro.org> References: <1490466197-29163-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Update kernel-parameters.txt to add two new parameters: - coresight_cpu_debug.enable is a knob to enable debugging at boot time. - coresight_cpu_debug.idle_constraint is used to constrain idle states to ensure Coresight CPU debug component can be accessible. Signed-off-by: Leo Yan --- Documentation/admin-guide/kernel-parameters.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 2ba45ca..6ed57d9 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -650,6 +650,27 @@ /proc//coredump_filter. See also Documentation/filesystems/proc.txt. + coresight_cpu_debug.enable + [ARM,ARM64] + Format: + Enable/disable the CPU sampling based debugging. + 0: default value, disable debugging + 1: enable debugging at boot time + + coresight_cpu_debug.idle_constraint + [ARM,ARM64] + Format: + Some platforms have designed the idle states to disable + CPU power domain and need manually set constraint so + can access coresight CPU debug component safely. Setting + this parameter for latency requirement in + microseconds, finally we can constraint all or partial + idle states to ensure the CPU power domain is enabled. + Default is -1, which means no limiation to CPU idle + states; if set to 0, this means disabling all idle + states; user can choose other platform dependent values + so can disable specific idle states for the platform. + cpuidle.off=1 [CPU_IDLE] disable the cpuidle sub-system From patchwork Sat Mar 25 18:23:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 95998 Delivered-To: patch@linaro.org Received: by 10.140.89.233 with SMTP id v96csp565494qgd; Sat, 25 Mar 2017 11:24:57 -0700 (PDT) X-Received: by 10.84.224.198 with SMTP id k6mr5468622pln.15.1490466297383; Sat, 25 Mar 2017 11:24:57 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si6962306pgg.258.2017.03.25.11.24.57; Sat, 25 Mar 2017 11:24:57 -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=neutral (body hash did not verify) header.i=@linaro.org; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751774AbdCYSYx (ORCPT + 7 others); Sat, 25 Mar 2017 14:24:53 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:33817 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751701AbdCYSYr (ORCPT ); Sat, 25 Mar 2017 14:24:47 -0400 Received: by mail-wr0-f177.google.com with SMTP id l43so11142827wre.1 for ; Sat, 25 Mar 2017 11:24:30 -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:in-reply-to:references; bh=4ukf6welsMEFldYZ6ctWYvalhyOmeGvP31ppnMdmxi4=; b=Rorhdf7c9MOvx/9KniItsgpUgiup6rpJXnNMHH0RqojnU/mWUjvUPxz2cDsmsNFlVX h2TeEleSuJKdzgklVlGQQZVePmRkEauFZh3ohs9xYRi5YXoLkw1XbJO0fIozIefbJDYL oReUqgkg8xvm+aKdxoyVIsh6kMu/8GCRJvqwM= 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:in-reply-to :references; bh=4ukf6welsMEFldYZ6ctWYvalhyOmeGvP31ppnMdmxi4=; b=FRwNSr5/0AqMp2X2G/BKcb2pajWOUhwLhcnZKCZHvtm1rzHtJQ8y783+9W4iCuZag2 EvGeMTxfm4sAth4/0dCfO8VGzIIUAGaX5KAYqthQrS24Gd94lQ3hRFUZ/yUxWFeWsm5Q qDS5ZJtJxErbdii1aQrc+I8tFQxJxHUlUJ+3gh+owpx1bEmwWXzAiJryywJtgTxxDFP3 d0HE+b5wosybUNXBsIHeG03yeEI7orNN9hxrNd/N+W0CJfioMfmKGc7YMy4v6HZQ2+J/ 9k1ALs6VXzEmUquDQf5GL/GnF9zU7hfLFu9HiHjQ7aWJHKPkG5YNLfeSlgJR4gXrJ/DG Bdkw== X-Gm-Message-State: AFeK/H3iEgQcqGJmuCNo/Ixg5RHSHg+TLBlXiBQy6mOAIVTpMr5M+A9GWXJM3QMfxyNelbS/ X-Received: by 10.223.164.216 with SMTP id h24mr12691805wrb.128.1490466269603; Sat, 25 Mar 2017 11:24:29 -0700 (PDT) Received: from localhost.localdomain (li1529-187.members.linode.com. [139.162.244.187]) by smtp.gmail.com with ESMTPSA id e72sm7464075wma.5.2017.03.25.11.24.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Mar 2017 11:24:28 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Rob Herring , Mark Rutland , Wei Xu , Catalin Marinas , Will Deacon , Andy Gross , David Brown , Michael Turquette , Stephen Boyd , Mathieu Poirier , Guodong Xu , John Stultz , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, mike.leach@linaro.org, Suzuki.Poulose@arm.com, sudeep.holla@arm.com Cc: Leo Yan Subject: [PATCH v5 5/9] coresight: use const for device_node structures Date: Sun, 26 Mar 2017 02:23:13 +0800 Message-Id: <1490466197-29163-6-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490466197-29163-1-git-send-email-leo.yan@linaro.org> References: <1490466197-29163-1-git-send-email-leo.yan@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Almost low level functions from open firmware have used const to qualify device_node structures, so add const for device_node parameters in of_coresight related functions. Signed-off-by: Leo Yan --- drivers/hwtracing/coresight/of_coresight.c | 6 +++--- include/linux/coresight.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Stephen Boyd diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index 78d2399..46eec0f 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -52,7 +52,7 @@ of_coresight_get_endpoint_device(struct device_node *endpoint) endpoint, of_dev_node_match); } -static void of_coresight_get_ports(struct device_node *node, +static void of_coresight_get_ports(const struct device_node *node, int *nr_inport, int *nr_outport) { struct device_node *ep = NULL; @@ -101,7 +101,7 @@ static int of_coresight_alloc_memory(struct device *dev, return 0; } -int of_coresight_get_cpu(struct device_node *node) +int of_coresight_get_cpu(const struct device_node *node) { int cpu; bool found; @@ -128,7 +128,7 @@ int of_coresight_get_cpu(struct device_node *node) EXPORT_SYMBOL_GPL(of_coresight_get_cpu); struct coresight_platform_data *of_get_coresight_platform_data( - struct device *dev, struct device_node *node) + struct device *dev, const struct device_node *node) { int i = 0, ret = 0; struct coresight_platform_data *pdata; diff --git a/include/linux/coresight.h b/include/linux/coresight.h index bf96678..4915254 100644 --- a/include/linux/coresight.h +++ b/include/linux/coresight.h @@ -263,13 +263,13 @@ static inline int coresight_timeout(void __iomem *addr, u32 offset, #endif #ifdef CONFIG_OF -extern int of_coresight_get_cpu(struct device_node *node); +extern int of_coresight_get_cpu(const struct device_node *node); extern struct coresight_platform_data *of_get_coresight_platform_data( - struct device *dev, struct device_node *node); + struct device *dev, const struct device_node *node); #else -static inline int of_coresight_get_cpu(struct device_node *node) { return 0; } +static inline int of_coresight_get_cpu(const struct device_node *node) { return 0; } static inline struct coresight_platform_data *of_get_coresight_platform_data( - struct device *dev, struct device_node *node) { return NULL; } + struct device *dev, const struct device_node *node) { return NULL; } #endif #ifdef CONFIG_PID_NS