From patchwork Sat Feb 6 11:04:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 61376 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp455953lbl; Sat, 6 Feb 2016 03:06:40 -0800 (PST) X-Received: by 10.66.122.36 with SMTP id lp4mr27186700pab.31.1454756800203; Sat, 06 Feb 2016 03:06:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zr12si14871088pab.241.2016.02.06.03.06.39; Sat, 06 Feb 2016 03:06:40 -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 S1752364AbcBFLGd (ORCPT + 30 others); Sat, 6 Feb 2016 06:06:33 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:32993 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752421AbcBFLG3 (ORCPT ); Sat, 6 Feb 2016 06:06:29 -0500 Received: by mail-pa0-f48.google.com with SMTP id cy9so48039680pac.0 for ; Sat, 06 Feb 2016 03:06:28 -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=EHBx5WupOIzige59gkcKwXR+CBiS7hOSEK8eN1A7ZKVjW7jYaQiuYzN/ovHS/nXt4G HF4FZW5jjit71LSwZPPhiaasTCKAbc7EAV413P51hkwwNAz+SxL2QCkEwjj7liGz0WDC Xp+mt/pqdRiLZtAAzoygOCKm4A1ymLVE3Mz00= 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=C6cYBThHf/f8VnAHlfw55fw95LrfLvvl2Iuz+aGMktGnZr6Eb2MhmhSj+L5NrlvEUI +6AgZUlKIE0fr8gdo4riZS42EAqfDj+xr8ihSt1Q2xUfDDYXYt+lpOmsBFgh4HYBguqf NcpkQTYzxkvxlYb+LpFvH+szi8ST6tFbaMN8h/BXQ7PBqz+JGla9/NAVrG312ziKE1Qk Pci4eL/P5GQVxFeqLRCt7tqEX9ntsqik+mSvzOY9/cyMhAXCFEZmkTAh8BHRUx/ellmw cl4A0h/k83LNLk2XWuyzXhZog1ofQl3tUmeyI3W+2lBGRKhy2aSvge9dz9QyiUoubjPu 7glg== X-Gm-Message-State: AG10YOR4J2VOG79runPpqr1NqtZDfD2609Fww9iJJ/mYehnKszpmtj7rynYtUUL20iD7Z/Vn X-Received: by 10.66.255.70 with SMTP id ao6mr26809749pad.64.1454756788552; Sat, 06 Feb 2016 03:06:28 -0800 (PST) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id p21sm30500690pfj.67.2016.02.06.03.06.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Feb 2016 03:06:27 -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, broonie@kernel.org, robh@kernel.org, pratikp@codeaurora.org, corbet@lwn.net, mark.rutland@arm.com, 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 V3 4/6] Documentations: Add explanations of the case for non-configurable masters Date: Sat, 6 Feb 2016 19:04:30 +0800 Message-Id: <1454756672-12790-5-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454756672-12790-1-git-send-email-zhang.chunyan@linaro.org> References: <1454756672-12790-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".