Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp944962lqp; Fri, 22 Mar 2024 00:03:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW7YC3ggVB/4ti6xs230uH0Q8K+1pmYkEHFkgXSroRDeACIOTOKnhWbNPx94DdPZ2MLoRJvts1ivvP4EPZnAD2761YYlJCs/aGipNSdhw== X-Google-Smtp-Source: AGHT+IHhvyDGA4ywOcYRREJApJ0jTukxY9eiMC/+6LXA6rqpwCdPTPAOGrThksCnq+ynq16GbPCX X-Received: by 2002:ac2:446b:0:b0:513:c8b8:aad2 with SMTP id y11-20020ac2446b000000b00513c8b8aad2mr859724lfl.57.1711091016600; Fri, 22 Mar 2024 00:03:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711091016; cv=pass; d=google.com; s=arc-20160816; b=nppWZmz7tv1evCxsGeutsogqfatZKDHr9VaAwnEqXmGEADYAtfFIwWQh6Oz7rarcSC 2yK5Ni6bOERnhHXrENnIDgoxhrKDCGsv25wx11qTMisnx1N5IGii88o5JJ56lB0sjSqR CrRzCibz8HX/GvQKY7mww8/58FXF3vOOWMp6cPdo59yb7anabkYt5+Ls0UNoaG1BnkZU gWebvR4RkkWKmcswnkHqiP0fNv6A+u2EaH9EjAOwSQ4unVuNJ9QbHID19Br+oqRMVxxT dizlTahJNnssGazqKjiU7Gtlya38RO3FMsS6PWemJGiXU2PZV17uhmdMz8CJDlAWe8EZ qAPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=4219XekDLvUrTnvWfCdY1c+W0ZEMPRSvJrupudi6nr0=; fh=ZUOXonJRX/YnXU46/iBvniV42yntkb8mxA5QCIAxOwU=; b=KVoqAR/bpRtYNzauBKNkjXn6IMOWhI/ZMWavPIMvrilU6K960ixGOJeN/AdUlGD3kJ 4s4CqigSBcl0cieqSN9C7ZP+liLnI2tbeXEwTjuZIM2QpJqrmGZxrhib6hA92Tfk85u8 PwMztt/We8VrxSdJEXB1NL4mDerW2Y0fYtui5X+HE/rfwAUjLUZVV8/aHR47ziyC+pbk UjSTmxSxDWw4ZNoOKnxwbCClArwBBFrEq8607YprH3ue51P7j9rAIDUynuO2UdEFjh1B pjG5j64KL4v3LDHcNh/IQ7RAKaZ8IfcuTtdn37JgZG4BBX6DJ/1YKXvCt0JRI3jXVOBe KTNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DEDt8+qd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-111040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z26-20020a50cd1a000000b005685d8423a0si625776edi.164.2024.03.22.00.03.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 00:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DEDt8+qd; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-111040-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111040-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 0C7C61F23927 for ; Fri, 22 Mar 2024 07:03:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 557451119E; Fri, 22 Mar 2024 07:03:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="DEDt8+qd" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E83E65C; Fri, 22 Mar 2024 07:03:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711091005; cv=none; b=IB578swQJQ+p8c+3QB1ehR9UoyBp0O28byoR1TqhIMxMcM535soUSXm0WUnbssN0urhP1W2RuuvyhxNXlbTPUv0eAK2Oev2yWITCfgseBc8bzMJWPrvYHI2XTedYhdSQYLLVPEys1wseoQKpc08PoHxLd+iUfh9jgjC4fEVfkK0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711091005; c=relaxed/simple; bh=bp5wqW+Oh4b1R6m6G58o9/wHYzJsv0vKIxXjYv5Ny4k=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=GKgWE984CCSyX+S3pNguPDqd9dBCdk3/R8KoJLOd/1rY8S6UQVfdyvo/dEjBaKvWikbzmy191knJYB28X+yPEA91iPqCIMQFL5t1tbArBExedS7Eps9IYJFXBXLwWdlLl5ezf+9WA7quHcbIQu7YWSAWEwPJMrUGt+U1ckqy1lU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=DEDt8+qd; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42M5FOMj025029; Fri, 22 Mar 2024 07:02:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=4219XekDLvUrTnvWfCdY1c+W0ZEMPRSvJrupudi6nr0=; b=DE Dt8+qd1XbcIm36W0BX0q7tjjA/PZV6cNZwo+XAi3wKYavzoNn/yKtvNOjTKN7vgM B1yZjxCEidMzQ2fvR/jFzEv5ohuPhr5LzOlLc9YyRX3LzTXt1vvlHG25V+y/KtZJ oUPvUpJc8vIFtZ3Q9yRHOoxMAe3A91uXGQmNiky9Sy1YOJBdqw2w5b8NeHTRpdEZ RMUiIkc387OMleCRDCvk8HW2PYZOPbX/b9EroxEIf6ou9J8oOz2hvweWz6OfWKRf aL9MD3sqTtx5v+zjS+sbxNLoBeFDReoITBTNI9NsCfta78pY4q7A7GZ889uiTcmj DlN7sGnttnFdZ04CBmHg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3x0wy7123e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Mar 2024 07:02:31 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 42M72UxV018779 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 22 Mar 2024 07:02:30 GMT Received: from [10.233.17.145] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 22 Mar 2024 00:02:25 -0700 Message-ID: <443edf61-2a28-4ae7-ac88-2da2d29cebe3@quicinc.com> Date: Fri, 22 Mar 2024 15:02:22 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/4] dt-bindings: arm: qcom,coresight-funnel: Add label for multi-ouput To: Rob Herring , Tao Zhang CC: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Konrad Dybcio , Mike Leach , Krzysztof Kozlowski , Jinlong Mao , Leo Yan , Greg Kroah-Hartman , , , , , Yuanfang Zhang , Trilok Soni , Song Chai , , References: <1711009927-17873-1-git-send-email-quic_taozha@quicinc.com> <1711009927-17873-2-git-send-email-quic_taozha@quicinc.com> <20240321144226.GA1689544-robh@kernel.org> From: Tingwei Zhang In-Reply-To: <20240321144226.GA1689544-robh@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: p1Zidst4QjzZW0RW3Mlgam9PSU7TAQhg X-Proofpoint-ORIG-GUID: p1Zidst4QjzZW0RW3Mlgam9PSU7TAQhg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-22_03,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1011 malwarescore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=999 spamscore=0 adultscore=0 mlxscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2403210001 definitions=main-2403220048 On 3/21/2024 10:42 PM, Rob Herring wrote: > On Thu, Mar 21, 2024 at 04:32:04PM +0800, Tao Zhang wrote: >> Add new property "label" to label the source corresponding to the >> output connection. When the funnel supports multi-output, this >> property needs to be introduced to mark which source component a >> certain output connection corresponds to. >> >> Signed-off-by: Tao Zhang >> --- >> .../arm/arm,coresight-dynamic-funnel.yaml | 34 ++++++++++++++++--- >> 1 file changed, 30 insertions(+), 4 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml >> index 44a1041cb0fc..cde62c286d29 100644 >> --- a/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml >> +++ b/Documentation/devicetree/bindings/arm/arm,coresight-dynamic-funnel.yaml >> @@ -66,13 +66,39 @@ properties: >> $ref: /schemas/graph.yaml#/properties/port >> >> out-ports: >> - $ref: /schemas/graph.yaml#/properties/ports >> - additionalProperties: false >> - >> + type: object >> properties: >> + "#address-cells": >> + const: 1 >> + >> + "#size-cells": >> + const: 0 >> + >> port: >> + type: object >> + >> + patternProperties: >> + '^port(@[0-7])?$': >> + type: object >> description: Output connection to CoreSight Trace bus >> - $ref: /schemas/graph.yaml#/properties/port > > Nope, now you have no constraints on port node properties. Please look > at how other bindings are done to add properties on endpoint node. > Thanks for pointing this out, Rob. Shall we ref port-base and endpoint-base then add new properties on endpoint? In this way, the redundant code from port schema is not required. >> + >> + patternProperties: >> + "^endpoint(@[0-9a-f]+)?$": >> + type: object >> + properties: >> + remote-endpoint: >> + description: | >> + phandle to an 'endpoint' subnode of a remote device node. >> + $ref: /schemas/types.yaml#/definitions/phandle > > Don't need this. > >> + label: >> + description: Label the source corresponding to the output connection >> + $ref: /schemas/types.yaml#/definitions/string > > label already has a type. > > As this node is an output, aren't you labeling what the destination is, > not the "source"? > > Why can't you look at the remote connection to identify what it is? > This funnel can route data stream from different trace source to different output ports. This lable property is added to describe which source is routed to this output port. For example, the graph is as below. Funnel3 routes trace data from TPDM0 to output[0] and output[0] of funnel3 is connected to input[0] of TPDA0. While Funnels routes trace data from TPDM1 to output[1] which connects to input[1] of TPDA0. Hope that clarifies this a little bit. |---------| |---------| |---------| |---------| |---------| | TPDM0 | | TPDM1 | | TPDM2 | | TPDM3 | | TPDM4 | |---------| |---------| |---------| |---------| |---------| | | | | | | | | | | | | | | | |-----| |-----| |-----| |-----| | | | | | | | | | | | [0]| |[1] [0]| |[1] | \-------------/ \-------------/ \------------/ \ FUNNEL0 / \ FUNNEL1 / \ FUNNEL2 / ----------- ----------- ----------- | | | \-------------/ \-------------/ | \ FUNNEL3 / \ FUNNEL4 / | ----------- ----------- | | | | | [0]| |[1] [0]| |[1] | | |---------- | | | | | | | | |-------| | |------- | | |--------- | | | | | | | | | | | [0]| |[1] |[2] |[3] |[4] \ ---------------------------------------------------/ \ TPDA0 / \ / ------------------------------------------------ > >> + oneOf: >> + - required: >> + - port >> + - required: >> + - "#address-cells" >> + - "#size-cells" > > The common schema that you removed handles this. > > Rob -- Thanks, Tingwei