From patchwork Wed Feb 3 08:15:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 61060 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp152537lbl; Wed, 3 Feb 2016 00:16:52 -0800 (PST) X-Received: by 10.98.11.134 with SMTP id 6mr277165pfl.109.1454487412829; Wed, 03 Feb 2016 00:16:52 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q74si7722600pfq.207.2016.02.03.00.16.52; Wed, 03 Feb 2016 00:16:52 -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 S1756860AbcBCIQo (ORCPT + 30 others); Wed, 3 Feb 2016 03:16:44 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:36800 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756823AbcBCIQk (ORCPT ); Wed, 3 Feb 2016 03:16:40 -0500 Received: by mail-pf0-f171.google.com with SMTP id n128so9813019pfn.3 for ; Wed, 03 Feb 2016 00:16:40 -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=IpjpH2z6YCJCoZX9kTvr1HLnbKMEjd5p9wyuHgI4/bGYGrT5/+r2qh4mcofVXIvdF8 GBmo2HvjDCw5s6BFFe04cOTnC2WGZpPKJV4yFYWki2f0E6EYCG5l+NWmKB1QglnNiEcQ r24+A52u4QXYMglVZ0tAmsXopzPALQrSkWxdE= 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=a1OuzvRhukCugnLhimNuvfSOntJiRRHeMCRtIsFiWa/ikaXppW18JgXL8aGYABxRtU o3TBKGrXPYQ4tc7kWjevaPRzaTZYZDDrEkEVBk+O3zykNMDPDvdzzlXGzfAk/jd9ygBu HBKbldQyFjDfKd3SSyd9Gtg1A6Mo4Cwf8yDPW5PcY1C9IqFQ3qd6tiiSarjhfVB8Tco5 UyOqCLw+pqCpUQE63VkR4SOatXviVxj0qpQ32TpmAN9TMCVGHk+Q3MBuCMFHFb+N4sxX eEi8T6W/9cuQ9BVBVL3r/Pg5s5gMHdux4+a9FNDRiGJ20elYQvVWmJNhDeElbtUCAU0r BW/w== X-Gm-Message-State: AG10YORUwjMEiF14VTlHrkOQdBC6S0a2k16iQkBNdbMeYQewhR+Mrjmq+Tr3fK/SjHmwLCQD X-Received: by 10.98.40.5 with SMTP id o5mr336762pfo.76.1454487400568; Wed, 03 Feb 2016 00:16:40 -0800 (PST) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id tp6sm7725820pab.25.2016.02.03.00.16.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 00:16:39 -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, mike.leach@arm.com, tor@ti.com, al.grant@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 V2 4/6] Documentations: Add explanations of the case for non-configurable masters Date: Wed, 3 Feb 2016 16:15:35 +0800 Message-Id: <1454487337-30184-5-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454487337-30184-1-git-send-email-zhang.chunyan@linaro.org> References: <1454487337-30184-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".