Skip to content

Commit c6c2f66

Browse files
committed
drm/amdgpu/jpeg1.0: fix idle work handler
On VCN 1.0, VCN and JPEG use the same worker thread so cancel the vcn worker rather than jpeg. On VCN 2.0 and newer there are separate workers for each. Fixes: 93df748 ("drm/amdgpu/jpeg: cancel the jpeg worker") Tested-by: George Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 40384c8 commit c6c2f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/amdgpu/jpeg_v1_0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ static void jpeg_v1_0_set_irq_funcs(struct amdgpu_device *adev)
604604
static void jpeg_v1_0_ring_begin_use(struct amdgpu_ring *ring)
605605
{
606606
struct amdgpu_device *adev = ring->adev;
607-
bool set_clocks = !cancel_delayed_work_sync(&adev->jpeg.idle_work);
607+
bool set_clocks = !cancel_delayed_work_sync(&adev->vcn.idle_work);
608608
int cnt = 0;
609609

610610
mutex_lock(&adev->vcn.vcn1_jpeg1_workaround);

0 commit comments

Comments
 (0)