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: 8242411 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 632569F38B for ; Sat, 6 Feb 2016 11:08:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 86AB620204 for ; Sat, 6 Feb 2016 11:08:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C28B5201C8 for ; Sat, 6 Feb 2016 11:08:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aS0hr-0007ob-DW; Sat, 06 Feb 2016 11:07:11 +0000 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aS0hV-0007TU-EQ for linux-arm-kernel@lists.infradead.org; Sat, 06 Feb 2016 11:06:51 +0000 Received: by mail-pa0-x236.google.com with SMTP id ho8so47916696pac.2 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=HQPNrYmU1p4td1FQj30JHElUToZGwI/xsNsCb7gCF/XrJG1gEV3SdYFt4ryflyMRk2 aBA4+QavtcvvKbR+VJwyGgv2V5rsfbKOMEdOSbf68eCum3d3RZWz30Hf8169qLD5JXSs 6VqTCZk6oQoGabLOPuQ72lr4EaWaaRa4Vf2LTR2GQAoBFj3xQ2KJ1TDjEE/q3uyuFsKJ EIKuQhrVcqyr5f7OaiqhHnaeXgEz3VYUi1OSn/+dMP8k8+PcxwGeLrQ1X/zV7UhzuIhH ekLOZqWAWY0D5cRdcRQNmkmZkSrE4kjKuCl2h2Da39q7MF0Zb9sID7CSAArFvVyVWpbt J/bA== X-Gm-Message-State: AG10YOSbR1GWjSnXKnXhpoa+E6ZN548uuRIvJlkGdLGOzk4gwcCFJ2xttjEGthdchqm5/ICu 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160206_030649_770333_27EBFAC7 X-CRM114-Status: UNSURE ( 8.73 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, al.grant@arm.com, Michael.Williams@arm.com, corbet@lwn.net, zhang.lyra@gmail.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tor@ti.com, broonie@kernel.org, mike.leach@arm.com, linux-api@vger.kernel.org, pratikp@codeaurora.org, nicolas.guion@st.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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".