]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amdgpu: Remove fence_process in count_emitted
authorJiadong.Zhu <Jiadong.Zhu@amd.com>
Fri, 23 Sep 2022 13:17:53 +0000 (21:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Sep 2022 22:03:09 +0000 (18:03 -0400)
The function amdgpu_fence_count_emitted used in work_hander should not call
amdgpu_fence_process which must be used in irq handler.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Jiadong.Zhu <Jiadong.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c

index 8adeb7469f1e5715c0cb6a086468c11dc37b4871..d0d99ed607ddd4f7710a412b6592825395d9f8fb 100644 (file)
@@ -400,7 +400,6 @@ unsigned amdgpu_fence_count_emitted(struct amdgpu_ring *ring)
        /* We are not protected by ring lock when reading the last sequence
         * but it's ok to report slightly wrong fence count here.
         */
-       amdgpu_fence_process(ring);
        emitted = 0x100000000ull;
        emitted -= atomic_read(&ring->fence_drv.last_seq);
        emitted += READ_ONCE(ring->fence_drv.sync_seq);