From: Suzuki K Poulose <suzuki.poulose@arm.com>
To: Tao Zhang <quic_taozha@quicinc.com>,
Mike Leach <mike.leach@linaro.org>,
James Clark <james.clark@arm.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Leo Yan <leo.yan@linux.dev>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v2 3/3] coresight-tpda: Optimize the function of reading element size
Date: Thu, 11 Jul 2024 14:25:26 +0100 [thread overview]
Message-ID: <5d285a7e-d762-4c8c-8128-bb3b543f6423@arm.com> (raw)
In-Reply-To: <20240711081750.21792-4-quic_taozha@quicinc.com>
On 11/07/2024 09:17, Tao Zhang wrote:
> Since the new funnel device supports multi-port output scenarios,
> there may be more than one TPDM connected to one TPDA. In this
> way, when reading the element size of the TPDM, TPDA driver needs
> to find the expected TPDM corresponding to the filter source.
> When TPDA finds a TPDM or a filter source from a input connection,
> it will read the Devicetree to get the expected TPDM's element
> size.
>
> Signed-off-by: Tao Zhang <quic_taozha@quicinc.com>
> ---
> drivers/hwtracing/coresight/coresight-tpda.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/hwtracing/coresight/coresight-tpda.c b/drivers/hwtracing/coresight/coresight-tpda.c
> index bfca103f9f84..4936ba4a7625 100644
> --- a/drivers/hwtracing/coresight/coresight-tpda.c
> +++ b/drivers/hwtracing/coresight/coresight-tpda.c
> @@ -110,6 +110,8 @@ static int tpda_get_element_size(struct tpda_drvdata *drvdata,
> csdev->pdata->in_conns[i]->dest_port != inport)
> continue;
>
> + if (csdev->pdata->in_conns[i]->filter_src_dev)
> + in = csdev->pdata->in_conns[i]->filter_src_dev;
Actually, this may not be complete, if the device was removed. Also add
a comment here.
/*
* If this port has a hardcoded filter, use the source
* device directly.
*/
if (csdev->pdata->in_conns[i]->filter_src_fwnode) {
in = csdev->pdata->in_conns[i]->filter_src_dev;
if (!in)
continue;
}
Suzuki
> if (coresight_device_is_tpdm(in)) {
> if (drvdata->dsb_esize || drvdata->cmb_esize)
> return -EEXIST;
> @@ -124,7 +126,6 @@ static int tpda_get_element_size(struct tpda_drvdata *drvdata,
> }
> }
>
> -
> return rc;
> }
>
next prev parent reply other threads:[~2024-07-11 13:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 8:17 [PATCH v2 0/3] Add source filtering for multi-port output Tao Zhang
2024-07-11 8:17 ` [PATCH v2 1/3] dt-bindings: arm: qcom,coresight-static-replicator: Add property for source filtering Tao Zhang
2024-07-11 8:17 ` [PATCH v2 2/3] coresight: Add source filtering for multi-port output Tao Zhang
2024-07-11 13:05 ` Suzuki K Poulose
2024-07-18 2:22 ` Tao Zhang
2024-08-07 14:59 ` Suzuki K Poulose
2024-08-08 14:43 ` Tao Zhang
2024-08-08 15:13 ` Suzuki K Poulose
2024-08-09 2:32 ` Tao Zhang
2024-08-09 10:21 ` Tao Zhang
2024-08-09 11:00 ` Suzuki K Poulose
2024-07-12 6:49 ` kernel test robot
2024-07-12 7:12 ` kernel test robot
2024-07-11 8:17 ` [PATCH v2 3/3] coresight-tpda: Optimize the function of reading element size Tao Zhang
2024-07-11 13:25 ` Suzuki K Poulose [this message]
2024-07-18 2:24 ` Tao Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5d285a7e-d762-4c8c-8128-bb3b543f6423@arm.com \
--to=suzuki.poulose@arm.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=conor+dt@kernel.org \
--cc=coresight@lists.linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=james.clark@arm.com \
--cc=krzk+dt@kernel.org \
--cc=leo.yan@linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.poirier@linaro.org \
--cc=mike.leach@linaro.org \
--cc=quic_taozha@quicinc.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox