From patchwork Mon Feb 1 07:58:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 60868 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2868441lbb; Mon, 1 Feb 2016 00:00:30 -0800 (PST) X-Received: by 10.98.70.139 with SMTP id o11mr36367744pfi.123.1454313630558; Mon, 01 Feb 2016 00:00:30 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si44761480pfk.172.2016.02.01.00.00.30; Mon, 01 Feb 2016 00:00:30 -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 S1751729AbcBAIAR (ORCPT + 30 others); Mon, 1 Feb 2016 03:00:17 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:35501 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbcBAIAO (ORCPT ); Mon, 1 Feb 2016 03:00:14 -0500 Received: by mail-pf0-f172.google.com with SMTP id 65so79378754pfd.2 for ; Mon, 01 Feb 2016 00:00:13 -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=L0zGfC/U2vzLUGrJgdnU/vPzQjsrc1MeGsB2NYxxiyoz3KVERXFPTlkmhxE+zku+wp cyXy10NIIwXT6t12u+ZRw86Pl27Uzi1URP2DmTLniJdig9FoJ0bjX1IMzzzQT5V54Ivi byZa/4Q7fz7uM9LA2mSMF2wG5ML1k7aOx4Re0= 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=Apag04vrYqD/pXSJss4Y/pV2eC0VF9nVpGdq+tmxcMAlxBXa/g5wUzne145uFVhLrJ kRhf7kIqH4LTiKuVci8fd88oHhKvnC5r2QPlxOc8hJBmmpxGr9Bb2r2F0akBstFgPoCQ kNXnACSo9yHGuAY9VAFqWr792wHz9zoJAE6JwjaJ+YUN6J8gXczBhR32u/YWb51+kS5S I/mKIHeEr8js+XMik7qmc6eA2Pbc+s8oTeumChxHmFtT4KQDZvBFZNKtfaCjLOuiUDEu M5QEZ7lc09y6tzb9guB1XBexJPyEI8WVcijVuju/h2+2Ye7i6YMVFqHbmegjVYBHf0TK vrsA== X-Gm-Message-State: AG10YOTn7SbdDuPoJAZBZm78JHV/EqA3qCbpIF9/q0DavmwxTwm9QPWmNn+vi/T5CHFXuLqN X-Received: by 10.98.66.81 with SMTP id p78mr846544pfa.43.1454313613533; Mon, 01 Feb 2016 00:00:13 -0800 (PST) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id o4sm40799282pfa.85.2016.02.01.00.00.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Feb 2016 00:00:12 -0800 (PST) From: Chunyan Zhang To: mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com Cc: robh@kernel.org, broonie@kernel.org, pratikp@codeaurora.org, nicolas.guion@st.com, 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.orgi, linux-doc@vger.kernel.org Subject: [PATCH 4/6] Documentations: Add explanations of the case for non-configurable masters Date: Mon, 1 Feb 2016 15:58:47 +0800 Message-Id: <1454313529-8860-5-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454313529-8860-1-git-send-email-zhang.chunyan@linaro.org> References: <1454313529-8860-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".