X-Git-Url: https://repo.jachan.dev/linux.git/blobdiff_plain/2d02e7d7d04f54fa573685a92c4a34eb8a76c9de..6abaa83c7352b31450d7e8c173f674324c16b02b:/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c index 536005bff24a..277128846dd1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c @@ -1414,7 +1414,7 @@ no_preempt: continue; } job = to_amdgpu_job(s_job); - if (preempted && job->fence == fence) + if (preempted && (&job->hw_fence) == fence) /* mark the job as preempted */ job->preemption_status |= AMDGPU_IB_PREEMPTED; }