From: Krzysztof Kozlowski <krzk@kernel.org>
To: Jie Gan <quic_jiegan@quicinc.com>,
Suzuki K Poulose <suzuki.poulose@arm.com>,
Mike Leach <mike.leach@linaro.org>,
James Clark <james.clark@linaro.org>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konradybcio@kernel.org>
Cc: Tingwei Zhang <quic_tingweiz@quicinc.com>,
Jinlong Mao <quic_jinlmao@quicinc.com>,
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,
linux-stm32@st-md-mailman.stormreply.com
Subject: Re: [PATCH v1 1/4] coresight: tmc: Introduce new APIs to get the RWP offset of ETR buffer
Date: Mon, 10 Mar 2025 10:07:20 +0100 [thread overview]
Message-ID: <b724d9c1-cd73-4e4e-aed1-101049204c90@kernel.org> (raw)
In-Reply-To: <20250310090407.2069489-2-quic_jiegan@quicinc.com>
On 10/03/2025 10:04, Jie Gan wrote:
> +static long tmc_sg_get_rwp_offset(struct tmc_drvdata *drvdata)
> +{
> + struct etr_buf *etr_buf = drvdata->sysfs_buf;
> + struct etr_sg_table *etr_table = etr_buf->private;
> + struct tmc_sg_table *table = etr_table->sg_table;
> + long w_offset;
> + u64 rwp;
> +
> + rwp = tmc_read_rwp(drvdata);
> + w_offset = tmc_sg_get_data_page_offset(table, rwp);
> +
> + return w_offset;
> +}
> +
> +/*
> + * Retrieve the offset to the write pointer of the ETR buffer based on whether
> + * the memory mode is SG, flat or reserved.
> + */
> +long tmc_get_rwp_offset(struct tmc_drvdata *drvdata)
You need kerneldoc for exports.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-03-10 9:07 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-10 9:04 [PATCH v1 0/4] coresight: ctcu: Enable byte-cntr function for TMC ETR Jie Gan
2025-03-10 9:04 ` [PATCH v1 1/4] coresight: tmc: Introduce new APIs to get the RWP offset of ETR buffer Jie Gan
2025-03-10 9:07 ` Krzysztof Kozlowski [this message]
2025-03-10 9:14 ` Jie Gan
2025-03-11 16:49 ` Mike Leach
2025-03-12 1:20 ` Jie Gan
2025-03-12 12:54 ` Mike Leach
2025-03-13 1:32 ` Jie Gan
2025-03-13 9:00 ` Jie Gan
2025-03-10 9:04 ` [PATCH v1 2/4] dt-bindings: arm: Add an interrupt property for Coresight CTCU Jie Gan
2025-03-10 9:04 ` [PATCH v1 3/4] coresight: ctcu: Enable byte-cntr for TMC ETR devices Jie Gan
2025-03-13 16:24 ` Suzuki K Poulose
2025-03-14 1:59 ` Jie Gan
2025-03-14 17:33 ` Suzuki K Poulose
2025-03-26 1:35 ` Jie Gan
2025-03-10 9:04 ` [PATCH v1 4/4] arm64: dts: qcom: sa8775p: Add interrupts to CTCU device Jie Gan
2025-03-10 9:08 ` Krzysztof Kozlowski
2025-03-10 9:12 ` Jie Gan
2025-03-12 13:22 ` [PATCH v1 0/4] coresight: ctcu: Enable byte-cntr function for TMC ETR Mike Leach
2025-03-13 6:15 ` Jie Gan
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=b724d9c1-cd73-4e4e-aed1-101049204c90@kernel.org \
--to=krzk@kernel.org \
--cc=alexander.shishkin@linux.intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=coresight@lists.linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=james.clark@linaro.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=mike.leach@linaro.org \
--cc=quic_jiegan@quicinc.com \
--cc=quic_jinlmao@quicinc.com \
--cc=quic_tingweiz@quicinc.com \
--cc=robh@kernel.org \
--cc=suzuki.poulose@arm.com \
/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