aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2025-07-15 15:55:05 +0000
committerAlex Deucher <[email protected]>2025-07-17 16:36:56 +0000
commit6ac55eab4fc41e0ea80f9064945e4340f13d8b5c (patch)
tree9fac45f72894ba0d8861dff13afd428ceae11375 /drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
parentdrm/amdgpu/sdma7: re-emit unprocessed state on ring reset (diff)
downloadkernel-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/jpeg_v5_0_1.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
index e622db1f818b..54523dc1f702 100644
--- a/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
@@ -836,9 +836,6 @@ static int jpeg_v5_0_1_ring_reset(struct amdgpu_ring *ring,
unsigned int vmid,
struct amdgpu_fence *timedout_fence)
{
- if (amdgpu_sriov_vf(ring->adev))
- return -EOPNOTSUPP;
-
amdgpu_ring_reset_helper_begin(ring, timedout_fence);
jpeg_v5_0_1_core_stall_reset(ring);
jpeg_v5_0_1_init_jrbc(ring);