Message ID | 20231107060939.13449-3-quic_jinlmao@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp42308vqo; Mon, 6 Nov 2023 22:11:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtOyCh93UgIQ8zsilUS2wxJYP78WSRoztJ0d7ME2oZo2JsSGX+sczCOlbIdUCYBmT0ydfc X-Received: by 2002:a05:6359:2eb0:b0:168:e306:ff72 with SMTP id rp48-20020a0563592eb000b00168e306ff72mr27571770rwb.8.1699337503504; Mon, 06 Nov 2023 22:11:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699337503; cv=none; d=google.com; s=arc-20160816; b=TrzsNvSBO8RgFY965eihhwvHUFawUHQYwNB1BfeunbvVBbBk6iUcKFP7ZYRmkt7PNe b0Vs/gL9DnFqqPwTzWbQLjaxROvxDG68n8j9QT4CMAw7vQz5QKaPwJhG8TM8FDDGQq8m yz+DrMKbKgtZ8ywwcpcJzrVUGqehraZ76/Sy4Mah2CQPuJb0UG+/gpSGsL/iT3EgCwIR FoYIzP3mkIr3HJnsytP87ExVtGu5XXomr1YRvj8nr7/AjED6sSh5Bvpwx3b8Ze7Ylack W8+mHR7HGpOFFrgs/ejBIDZLuFGYiuBiaGBIjNtbMw01z1KVWoZFvIohkUrj4IoETwk+ Cqsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PWY6YRKU0IXTGM891QJ0ZVdPq5v+3dJUoTHNiXEumQc=; fh=EAMKooV1XaZP1lHZnXND1HPIgQQL3X6c20KkMk7S4cA=; b=ah/2tDqWyA+XfV1aW3Lc9e5Rm/OI7TWbiE4KBl0V5+tTwGLgCiA0a6llL8YZukRO+/ oRWASRgdkta3EQDKKXQHsLxEmnobXNE9WKxTSYKlzHShofJ2mqt0H0WjANAY2VNeMbQS SrLwzy9YolXQCxuIRwSB71lwb1KlIOTFO91fTiacslws0r8mXhZSzy5o2/eqe/CMMslL I2BLRkwJb5XZ1hTO1aQTdmACrGsUIkCDnZxbGdXKppb+NMDVnYWY+isg5ndGvqYt60/N MYbBYc5vV19y3lDyVMAxK0Vnr45oA9oLRVBwx3yFmoRA/IA6XiN9VLhpFoF3NZtRtd2r CM0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kHRosIPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id n190-20020a6340c7000000b00563f72935e3si1321361pga.608.2023.11.06.22.11.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 22:11:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kHRosIPe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A709680789FC; Mon, 6 Nov 2023 22:10:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232596AbjKGGKP (ORCPT <rfc822;heyuhang3455@gmail.com> + 33 others); Tue, 7 Nov 2023 01:10:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230074AbjKGGKL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Nov 2023 01:10:11 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EA8E114; Mon, 6 Nov 2023 22:10:07 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A75d8vw031673; Tue, 7 Nov 2023 06:09:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=PWY6YRKU0IXTGM891QJ0ZVdPq5v+3dJUoTHNiXEumQc=; b=kHRosIPezjln5uVjYGmk/TgVk7F/xLci5chBTySTA/3nQtYWKeLDo6JLi9p8dMVjzJa0 J3O7DeZ4UhDuz90F7qRf2osLJIQKwTrSFrbsjv/uJZiJovcGVXNZjKDNvw/wF5tyO6UR VJUYWU7AIJEEx1vgwKyJuabTdnXbJdhAvLI+VTH9lj/I234flt36o6j2F8ayvQvMbxRm otphDqa1lMXKHOyYo1Gw3TqZnk0ekZKDwk8TMchuadc7UJeJqK8urJutgJL8sTOOoSUT PShoDsexKs/ij7qzNpPQqBkrxssvBu/s7nLOYkf4P+WMQ+5a+uBzRdXC/Y6VuQ4w/7XK Xg== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u72r29nas-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 07 Nov 2023 06:09:53 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A769qwB025512 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 7 Nov 2023 06:09:52 GMT Received: from hu-jinlmao-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.39; Mon, 6 Nov 2023 22:09:51 -0800 From: Mao Jinlong <quic_jinlmao@quicinc.com> To: Suzuki K Poulose <suzuki.poulose@arm.com>, Mike Leach <mike.leach@linaro.org>, James Clark <james.clark@arm.com>, "Alexander Shishkin" <alexander.shishkin@linux.intel.com>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, "Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> CC: Mao Jinlong <quic_jinlmao@quicinc.com>, <linux-kernel@vger.kernel.org>, <coresight@lists.linaro.org>, <linux-arm-kernel@lists.infradead.org>, <linux-arm-msm@vger.kernel.org>, <devicetree@vger.kernel.org>, Yuanfang Zhang <quic_yuanfang@quicinc.com>, Tao Zhang <quic_taozha@quicinc.com> Subject: [PATCH v1 2/2] dt-bindings: arm: Add remote etm driver Date: Mon, 6 Nov 2023 22:09:35 -0800 Message-ID: <20231107060939.13449-3-quic_jinlmao@quicinc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231107060939.13449-1-quic_jinlmao@quicinc.com> References: <20231107060939.13449-1-quic_jinlmao@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: J787pD3w99Bjv3VsOX3KgS6hvR0STSAG X-Proofpoint-ORIG-GUID: J787pD3w99Bjv3VsOX3KgS6hvR0STSAG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-06_15,2023-11-02_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 adultscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 clxscore=1015 phishscore=0 priorityscore=1501 mlxscore=0 spamscore=0 mlxlogscore=883 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311070048 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 22:10:58 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781884522215728775 X-GMAIL-MSGID: 1781884522215728775 |
Series |
coresight: Add remote etm support
|
|
Commit Message
Mao Jinlong
Nov. 7, 2023, 6:09 a.m. UTC
Add new coresight-remote-etm.yaml file describing the bindings required
to define coresight remote etm in the device trees.
Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com>
---
.../arm/qcom,coresight-remote-etm.yaml | 59 +++++++++++++++++++
1 file changed, 59 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml
Comments
On 07/11/2023 07:09, Mao Jinlong wrote: > Add new coresight-remote-etm.yaml file describing the bindings required > to define coresight remote etm in the device trees. Subject: drop driver. Bindings are about hardware, not drivers. > > Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com> > --- > .../arm/qcom,coresight-remote-etm.yaml | 59 +++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml > > diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml > new file mode 100644 > index 000000000000..04bb57b48d96 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml > @@ -0,0 +1,59 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/qcom,coresight-remote-etm.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Coresight Remote ETM What is ETM? > + > +maintainers: > + - Jinlong Mao <quic_jinlmao@quicinc.com> > + - Tao Zhang <quic_taozha@quicinc.com> > + > +description: | Do not need '|' unless you need to preserve formatting. > + Support for ETM trace collection on remote processor using coresight > + framework. Enabling this will allow turning on ETM tracing on remote > + processor via sysfs and collecting the trace via TMC sinks. > + > +properties: > + compatible: > + items: > + - const: qcom,coresight-remote-etm > + > + qcom,inst-id: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Instance id of remote etm. It's the first time this property appears... Why do you need to hard-code it and why would it differ between each board? If you want to use existing, accepted property, then you must use exactly the same. > + > + out-ports: > + $ref: /schemas/graph.yaml#/properties/ports > + additionalProperties: false > + > + properties: > + port: > + description: Output connection to the CoreSight Trace bus. > + $ref: /schemas/graph.yaml#/properties/port > + > +required: > + - compatible > + - qcom,inst-id > + - out-ports > + > +unevaluatedProperties: false > + > +examples: > + - | > + modem_etm0 { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation Underscores are not allowed. > + compatible = "qcom,coresight-remote-etm"; > + qcom,inst-id = <2>; > + > + out-ports { > + port { > + modem_etm0_out_funnel_modem: endpoint { > + remote-endpoint = > + <&funnel_modem_in_modem_etm0>; Fix wrapping. > + }; > + }; > + }; > + }; > +... Best regards, Krzysztof
On 07/11/2023 07:09, Mao Jinlong wrote: > Add new coresight-remote-etm.yaml file describing the bindings required > to define coresight remote etm in the device trees. > ... > +title: Qualcomm Coresight Remote ETM > + > +maintainers: > + - Jinlong Mao <quic_jinlmao@quicinc.com> > + - Tao Zhang <quic_taozha@quicinc.com> > + > +description: | > + Support for ETM trace collection on remote processor using coresight > + framework. Enabling this will allow turning on ETM tracing on remote > + processor via sysfs and collecting the trace via TMC sinks. BTW, your cover letter says more than commit messages and descriptions. It should be reversed. Cover letter is meaningless afterwards. Best regards, Krzysztof
On 07/11/2023 07:09, Mao Jinlong wrote: > Add new coresight-remote-etm.yaml file describing the bindings required > to define coresight remote etm in the device trees. > > Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com> +Cc Trilok, Several Qualcomm boards have warnings coming from Coresight bindings. These are big, fat warnings coming usually from ARM bindings (e.g. dynamic funnel, TMC). I don't know Coresight good enough to fix them by myself. I would prefer not to take any new Qualcomm specific Coresight bindings and definitely no new Coresight device nodes in Qualcomm boards, before these are fixed. Therefore I kindly ask to fix all warnings in Qualcomm boards coming from existing Coresight bindings. Best regards, Krzysztof
On 11/16/2023 9:22 AM, Krzysztof Kozlowski wrote: > On 07/11/2023 07:09, Mao Jinlong wrote: >> Add new coresight-remote-etm.yaml file describing the bindings required >> to define coresight remote etm in the device trees. >> >> Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com> > > +Cc Trilok, > > Several Qualcomm boards have warnings coming from Coresight bindings. > These are big, fat warnings coming usually from ARM bindings (e.g. > dynamic funnel, TMC). I don't know Coresight good enough to fix them by > myself. > > I would prefer not to take any new Qualcomm specific Coresight bindings > and definitely no new Coresight device nodes in Qualcomm boards, before > these are fixed. > > Therefore I kindly ask to fix all warnings in Qualcomm boards coming > from existing Coresight bindings. Thanks Krzysztof, we can look into it as first thing to fix.
diff --git a/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml new file mode 100644 index 000000000000..04bb57b48d96 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/qcom,coresight-remote-etm.yaml @@ -0,0 +1,59 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/qcom,coresight-remote-etm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Coresight Remote ETM + +maintainers: + - Jinlong Mao <quic_jinlmao@quicinc.com> + - Tao Zhang <quic_taozha@quicinc.com> + +description: | + Support for ETM trace collection on remote processor using coresight + framework. Enabling this will allow turning on ETM tracing on remote + processor via sysfs and collecting the trace via TMC sinks. + +properties: + compatible: + items: + - const: qcom,coresight-remote-etm + + qcom,inst-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Instance id of remote etm. + + out-ports: + $ref: /schemas/graph.yaml#/properties/ports + additionalProperties: false + + properties: + port: + description: Output connection to the CoreSight Trace bus. + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - qcom,inst-id + - out-ports + +unevaluatedProperties: false + +examples: + - | + modem_etm0 { + compatible = "qcom,coresight-remote-etm"; + qcom,inst-id = <2>; + + out-ports { + port { + modem_etm0_out_funnel_modem: endpoint { + remote-endpoint = + <&funnel_modem_in_modem_etm0>; + }; + }; + }; + }; +...