diff options
| author | John Hubbard <jhubbard@nvidia.com> | 2026-09-29 20:41:44 -0700 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-10-02 21:50:17 +0900 |
| commit | 621b455c56376f5469d896b58c2316236a3f939d (patch) | |
| tree | f79008f1a1ae02154d4ca8229cbfcde211d408e7 /tools/lib/python/kdoc/python_version.py | |
| parent | d3cb3ed1a2ddd7cb77d9d270d82d3177ee744d1f (diff) | |
gpu: nova-core: bound a GSP wait by a single deadline
The GSP posts unsolicited events on the same queue as command replies,
so a caller waiting for one message consumes whatever arrives first and
reads again.
Every read started a fresh five-second timeout, so a steady stream of
events extended the wait without bound. The two boot-time waits for an
unsolicited event also released the queue mutex between reads, so a
command sent from another thread could consume the event and leave the
waiter to time out.
Compute one deadline when the wait begins and pass the time remaining to
each read, and hold the queue mutex across the whole wait. Put the loop
in one helper that the command reply wait and both boot-time event waits
share.
Assisted-by: LLM
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260930034148.590687-12-jhubbard@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
