From: Dan Carpenter <dan.carpenter@linaro.org>
To: jack21 <jackhuang021@gmail.com>
Cc: sudeep.holla@arm.com, cristian.marussi@arm.com,
arm-scmi@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org,
Huangjie <huangjie1663@phytium.com.cn>
Subject: Re: [PATCH] dirvers: scmi: poll again when transfer reach timeout
Date: Thu, 23 Jan 2025 13:38:30 +0300 [thread overview]
Message-ID: <f0fbc4cf-21ae-4332-8842-73f0467d16ff@stanley.mountain> (raw)
In-Reply-To: <20250123083323.2363749-1-jackhuang021@gmail.com>
s/dirvers/drivers/
On Thu, Jan 23, 2025 at 04:33:24PM +0800, jack21 wrote:
> From: Huangjie <huangjie1663@phytium.com.cn>
>
> spin_until_cond() not really hold a spin lock, possible timeout may occur
> in preemption kernel when preempted after spin_until_cond().
>
> We check status again when reach timeout is reached to prevent incorrect
> jugement of timeout.
>
I suspect the real issue is that we exit the spin loop when
try_wait_for_completion(&xfer->done) is true. Probably we should add
that as a Fixes tag?:
Fixes: ed7c04c1fea3 ("firmware: arm_scmi: Handle concurrent and out-of-order messages")
Btw, the scmi_xfer_done_no_timeout() has a confusing name, because it
does timeout. Was the "_no" an accident?
regards,
dan carpenter
next prev parent reply other threads:[~2025-01-23 10:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-23 8:33 [PATCH] dirvers: scmi: poll again when transfer reach timeout jack21
2025-01-23 10:38 ` Dan Carpenter [this message]
2025-01-23 19:48 ` Cristian Marussi
2025-02-11 15:37 ` Sudeep Holla
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=f0fbc4cf-21ae-4332-8842-73f0467d16ff@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=arm-scmi@vger.kernel.org \
--cc=cristian.marussi@arm.com \
--cc=huangjie1663@phytium.com.cn \
--cc=jackhuang021@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sudeep.holla@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