diff options
| author | Jesus Narvaez <[email protected]> | 2025-05-14 22:52:24 +0000 |
|---|---|---|
| committer | John Harrison <[email protected]> | 2025-05-28 18:46:21 +0000 |
| commit | a6a26786f22a4ab0227bcf610510c4c9c2df0808 (patch) | |
| tree | 2f4bfe41e5962da823564630ff7bff818629c30a /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | Merge drm/drm-next into drm-intel-gt-next (diff) | |
| download | kernel-a6a26786f22a4ab0227bcf610510c4c9c2df0808.tar.gz kernel-a6a26786f22a4ab0227bcf610510c4c9c2df0808.zip | |
drm/i915/guc: Check if expecting reply before decrementing outstanding_submission_g2h
When sending a H2G message where a reply is expected in
guc_submission_send_busy_loop(), outstanding_submission_g2h is
incremented before the send. However, if there is an error sending the
message, outstanding_submission_g2h is decremented without checking if a
reply is expected.
Therefore, check if reply is expected when there is a failure before
decrementing outstanding_submission_g2h.
Fixes: 2f2cc53b5fe7 ("drm/i915/guc: Close deregister-context race against CT-loss")
Signed-off-by: Jesus Narvaez <[email protected]>
Cc: Daniele Ceraolo Spurio <[email protected]>
Cc: Alan Previn <[email protected]>
Cc: Anshuman Gupta <[email protected]>
Cc: Mousumi Jana <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Matt Roper <[email protected]>
Reviewed-by: Daniele Ceraolo Spurio <[email protected]>
Signed-off-by: John Harrison <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
