From patchwork Tue Mar 8 06:33:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunyan Zhang X-Patchwork-Id: 63653 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1857070lbc; Mon, 7 Mar 2016 22:36:29 -0800 (PST) X-Received: by 10.66.90.226 with SMTP id bz2mr39557042pab.31.1457418989104; Mon, 07 Mar 2016 22:36:29 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f62si2574161pff.83.2016.03.07.22.36.28; Mon, 07 Mar 2016 22:36:29 -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 S1754028AbcCHGg0 (ORCPT + 30 others); Tue, 8 Mar 2016 01:36:26 -0500 Received: from mail-pf0-f180.google.com ([209.85.192.180]:35967 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753988AbcCHGgP (ORCPT ); Tue, 8 Mar 2016 01:36:15 -0500 Received: by mail-pf0-f180.google.com with SMTP id 63so5911112pfe.3 for ; Mon, 07 Mar 2016 22:36:15 -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=ZzloKVL7G2wtejgiuqix5ASZNrVimtg+kj5HBhFjahjEOvG/Ozshs6BQdIzl6mM65J BOevmjypSXFtYgyWBbv0jI9uLyoomazgRiEo7Pv6EqWU6+DR9KtcbJ30uwTUPO60SJ7j WDRDHaAkyBeCC5XPEOEwsyQgiCF0DSLE/k6Qs= 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=BRtol8E9b700ptkbEPm93LYdwCZk/L4cRd3K7TJTiavjrqGTMOAgiBS0MDDRQEtCRx isDa8CqL5gHI4fd6RNEmmcu+HlOdkyzV2WI/b7h+x774Ey7vwWR+mW5USF3NMb8qHW8I VPR/phi7DAy9Vaarog7lxs7kqm3BAe3Wzc8rDIME9MwiyVupgvy4TJg+k740Al7wiM96 UV3p2aMvOFP0F8OpbhHi9q5YlsfLeWCZWs9u18g9m6KwkbJT4t9zbJedccrJSGWgZxWe LkuOpreR+RD55Wc4T5uFUzT8FwY5IEOrYQGVn782GMUJkEP6IgVSc6SzpCYmTFhxKpvO JYXg== X-Gm-Message-State: AD7BkJINIBsFFlbTEmxVM6E4SrBQhtOdJVjhCCnR7dbt0ZJLWbOs3j5FoDJf6y2pMoEY6if0 X-Received: by 10.98.80.10 with SMTP id e10mr39123070pfb.141.1457418974584; Mon, 07 Mar 2016 22:36:14 -0800 (PST) Received: from zcy-ubuntu.spreadtrum.com ([175.111.195.49]) by smtp.gmail.com with ESMTPSA id fn3sm1986372pab.20.2016.03.07.22.36.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Mar 2016 22:36:13 -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: [RESEND PATCH V4 2/4] Documentations: Add explanations of the case for non-configurable masters Date: Tue, 8 Mar 2016 14:33:53 +0800 Message-Id: <1457418835-31417-3-git-send-email-zhang.chunyan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1457418835-31417-1-git-send-email-zhang.chunyan@linaro.org> References: <1457418835-31417-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".