From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
To: Maulik Shah <quic_mkshah@quicinc.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
quic_eberman@quicinc.com, quic_collinsd@quicinc.com,
quic_lsrao@quicinc.com
Subject: Re: [PATCH v2] soc: qcom: rpmh-rsc: Enhance check for VREG in-flight request
Date: Fri, 19 Jan 2024 10:34:09 +0000 [thread overview]
Message-ID: <82e4796a-8983-4045-8ca2-71aa9af7a120@linaro.org> (raw)
In-Reply-To: <20240119-rpmh-rsc-fixes-v2-1-e42c0a9e36f0@quicinc.com>
On 19/01/2024 08:26, Maulik Shah wrote:
> Each RPMh VREG accelerator resource has 3 or 4 contiguous 4-byte aligned
> addresses associated with it. These control voltage, enable state, mode,
> and in legacy targets, voltage headroom. The current in-flight request
> checking logic looks for exact address matches. Requests for different
> addresses of the same RPMh resource as thus not detected as in-flight.
This commit log implies you are fixing a bug.
Can you do some inspection of the git commit log and figure out where to
backport this change to ?
Your change would apply to 40482e4f73640d but a quick pass on the logic
in check_for_req_inflight() shows its probably _applicable_ to
658628e7ef78e8
> /*
> * Here's a high level overview of how all the registers in RPMH work
> * together:
> @@ -557,7 +568,15 @@ static int check_for_req_inflight(struct rsc_drv *drv, struct tcs_group *tcs,
> for_each_set_bit(j, &curr_enabled, MAX_CMDS_PER_TCS) {
> addr = read_tcs_cmd(drv, drv->regs[RSC_DRV_CMD_ADDR], i, j);
> for (k = 0; k < msg->num_cmds; k++) {
> - if (addr == msg->cmds[k].addr)
> + /*
> + * Each RPMh VREG accelerator resource has 3 or 4 contiguous 4-byte
> + * aligned addresses associated with it. Ignore the offset to check
> + * for in-flight VREG requests.
> + */
> + if (ACCL_TYPE(msg->cmds[k].addr) == HW_ACCL_VREG &&
> + VREG_ADDR(msg->cmds[k].addr) == VREG_ADDR(addr))
> + return -EBUSY;
> + else if (addr == msg->cmds[k].addr)
Consider removing the /* comment */ if it helps to apply the change
earlier than 658628e7ef78e8.
---
bod
next prev parent reply other threads:[~2024-01-19 10:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-19 8:26 Maulik Shah
2024-01-19 10:34 ` Bryan O'Donoghue [this message]
2024-01-19 11:30 ` Bryan O'Donoghue
2024-01-19 15:47 ` Andrew Halaney
2024-01-19 17:59 ` Elliot Berman
2024-01-29 6:27 ` Maulik Shah (mkshah)
2024-01-20 0:18 ` Konrad Dybcio
2024-01-28 3:43 ` Bjorn Andersson
2024-01-29 6:20 ` Maulik Shah (mkshah)
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=82e4796a-8983-4045-8ca2-71aa9af7a120@linaro.org \
--to=bryan.odonoghue@linaro.org \
--cc=andersson@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_collinsd@quicinc.com \
--cc=quic_eberman@quicinc.com \
--cc=quic_lsrao@quicinc.com \
--cc=quic_mkshah@quicinc.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
all inboxes | Powered by JetHome®