From patchwork Tue Mar 1 06:35:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 63290 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1653611lbc; Mon, 29 Feb 2016 22:37:14 -0800 (PST) X-Received: by 10.98.16.150 with SMTP id 22mr27886300pfq.128.1456814234417; Mon, 29 Feb 2016 22:37:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si48249542pfi.125.2016.02.29.22.37.14; Mon, 29 Feb 2016 22:37:14 -0800 (PST) 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; 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; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751999AbcCAGhK (ORCPT + 30 others); Tue, 1 Mar 2016 01:37:10 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33138 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751932AbcCAGhE (ORCPT ); Tue, 1 Mar 2016 01:37:04 -0500 Received: by mail-pf0-f177.google.com with SMTP id 124so45349934pfg.0 for ; Mon, 29 Feb 2016 22:37:04 -0800 (PST) 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=4pnUbdNPS4wLf5DszEbaDBhKNwVeq+uy5U5Vo9IBIaY=; b=CwaZIyG7kXGvuDP0ihDUdk99QvWA78sT2XlpKEOX0F48+KH8503Ph+U/C7WdPz2846 yGWp4GNbCRaV7Smp1qqvADddmUaaIEepMqUDOvwCL+LCjZ+KuV7Ud77gjzGF3SMtqBTz o3IMVTwlNBmwx5iD6pdE2h4OJbgD2U8uUai44= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4pnUbdNPS4wLf5DszEbaDBhKNwVeq+uy5U5Vo9IBIaY=; b=UgAi7GSQSh20prNDLXvzYFfEiGocNRtM7IBBww24MIHWWbTU+J/pmttV0scL07G0i/ f5P29YBwRiRgKmgr73RzcFNsR+6zX/M7X3weePtOAVjlZJQYUh95i0Cq3528FRD6jsM4 h9M1WDbytfvtvZncBIIMh4PYng+puNj/a8B2uVxvNKCGzzl2uuWYC5z2+jugKFvqhc4O Usy5S8fJVptyj7nwxe/urnIn5PBOeXwGSALDLcciVFQ+nzlXawHModgC7wVosV+OQdOS SLM2btcAAPP1TZtvGQ0dFiaRjznfk/pWoiqplh7tBMKh+wFBy9ef24Phfr1f/hwZeQwy q8VA== X-Gm-Message-State: AD7BkJKULTE7msfjMiQiB8YeR7RxobXGE7soolHOs4zZLq/NWjHY+MBHe4YNsjE+yK7D/qBx X-Received: by 10.98.65.203 with SMTP id g72mr27217446pfd.138.1456814223648; Mon, 29 Feb 2016 22:37:03 -0800 (PST) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id y21sm26485895pfa.85.2016.02.29.22.36.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 29 Feb 2016 22:37:02 -0800 (PST) From: Chunyan Zhang To: mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com Cc: mike.leach@arm.com, Michael.Williams@arm.com, al.grant@arm.com, tor@ti.com, nicolas.guion@st.com, pratikp@codeaurora.org, zhang.lyra@gmail.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH V4 2/4] Documentations: Add explanations of the case for non-configurable masters Date: Tue, 1 Mar 2016 14:35:07 +0800 Message-Id: <1456814109-21311-3-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456814109-21311-1-git-send-email-zhang.chunyan@linaro.org> References: <1456814109-21311-1-git-send-email-zhang.chunyan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For some STM hardware (e.g. ARM CoreSight STM), the masterID associated to a source is set at the hardware level and not user configurable. Since the masterID information isn't available to SW, introducing a new value of -1 to reflect this reality. Signed-off-by: Chunyan Zhang --- Documentation/trace/stm.txt | 6 ++++++ 1 file changed, 6 insertions(+) -- 1.9.1 diff --git a/Documentation/trace/stm.txt b/Documentation/trace/stm.txt index ea035f9..f03bc2b 100644 --- a/Documentation/trace/stm.txt +++ b/Documentation/trace/stm.txt @@ -47,6 +47,12 @@ through 127 in it. Now, any producer (trace source) identifying itself with "user" identification string will be allocated a master and channel from within these ranges. +$ cat /config/stp-policy/dummy_stm.my-policy/user/masters +-1 -1 + +Would indicate the masters for this rule are set in hardware and +not configurable in user space. + These rules can be nested, for example, one can define a rule "dummy" under "user" directory from the example above and this new rule will be used for trace sources with the id string of "user/dummy".