[PATCH] firmware: arm_scmi: Fix timeout checks on polling path
Sudeep Holla
sudeep.holla at arm.com
Tue Apr 8 03:24:06 PDT 2025
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
More information about the linux-arm-kernel
mailing list