diff options
| author | Alex Deucher <[email protected]> | 2025-07-07 15:28:33 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-07-15 18:07:39 +0000 |
| commit | 1b556bcc3837441b9f75d2c7df44e8e312b550e7 (patch) | |
| tree | 1c68b0a0ef4229c482b64836e74cf7a35503b91a /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu/vcn4: add additional ring reset error checking (diff) | |
| download | kernel-1b556bcc3837441b9f75d2c7df44e8e312b550e7.tar.gz kernel-1b556bcc3837441b9f75d2c7df44e8e312b550e7.zip | |
drm/amdgpu/vcn4.0.5: add additional ring reset error checking
Start and stop can fail, so add checks.
Fixes: d1a46cdd0053 ("drm/amd: Add per-ring reset for vcn v4.0.5 use")
Reviewed-by: Mario Limonciello <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: Mario Limonciello <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c index 7e37ddea6355..6000c528ad6a 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c @@ -1477,8 +1477,12 @@ static int vcn_v4_0_5_ring_reset(struct amdgpu_ring *ring, return -EOPNOTSUPP; drm_sched_wqueue_stop(&ring->sched); - vcn_v4_0_5_stop(vinst); - vcn_v4_0_5_start(vinst); + r = vcn_v4_0_5_stop(vinst); + if (r) + return r; + r = vcn_v4_0_5_start(vinst); + if (r) + return r; r = amdgpu_ring_test_helper(ring); if (r) |
