[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174410781232.2545069.2779905512336783485.b4-ty@arm.com>
Date: Tue, 8 Apr 2025 11:24:06 +0100
From: Sudeep Holla <sudeep.holla@....com>
To: linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
arm-scmi@...r.kernel.org,
Cristian Marussi <cristian.marussi@....com>
Cc: Sudeep Holla <sudeep.holla@....com>,
dan.carpenter@...aro.org,
Huangjie <huangjie1663@...tium.com.cn>,
stable@...r.kernel.org
Subject: Re: [PATCH] firmware: arm_scmi: Fix timeout checks on polling path
On Mon, 10 Mar 2025 17:58:00 +0000, Cristian Marussi wrote:
> Polling mode transactions wait for a reply busy-looping without holding a
> spinlock, but currently the timeout checks are based only on elapsed time:
> as a result we could hit a false positive whenever our busy-looping thread
> is pre-empted and scheduled out for a time greater than the polling
> timeout.
>
> Change the checks at the end of the busy-loop to make sure that the polling
> wasn't indeed successful or an out-of-order reply caused the polling to be
> forcibly terminated.
>
> [...]
Applied to sudeep.holla/linux (for-next/scmi/fixes), thanks!
[1/1] firmware: arm_scmi: Fix timeout checks on polling path
https://git.kernel.org/sudeep.holla/c/c23c03bf1faa
--
Regards,
Sudeep
Powered by blists - more mailing lists