diff options
| author | Alex Deucher <[email protected]> | 2025-07-15 15:55:05 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-07-17 16:36:56 +0000 |
| commit | 6ac55eab4fc41e0ea80f9064945e4340f13d8b5c (patch) | |
| tree | 9fac45f72894ba0d8861dff13afd428ceae11375 /drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | |
| parent | drm/amdgpu/sdma7: re-emit unprocessed state on ring reset (diff) | |
| download | kernel-6ac55eab4fc41e0ea80f9064945e4340f13d8b5c.tar.gz kernel-6ac55eab4fc41e0ea80f9064945e4340f13d8b5c.zip | |
drm/amdgpu: move reset support type checks into the caller
Rather than checking in the callbacks, check if the reset
type is supported in the caller.
Reviewed-by: Lijo Lazar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 3 |
1 files changed, 0 insertions, 3 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 039989ab452a..caf2d95a85d4 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c @@ -1474,9 +1474,6 @@ static int vcn_v4_0_5_ring_reset(struct amdgpu_ring *ring, struct amdgpu_vcn_inst *vinst = &adev->vcn.inst[ring->me]; int r; - if (!(adev->vcn.supported_reset & AMDGPU_RESET_TYPE_PER_QUEUE)) - return -EOPNOTSUPP; - amdgpu_ring_reset_helper_begin(ring, timedout_fence); r = vcn_v4_0_5_stop(vinst); if (r) |
