drm/amdgpu: fix pipeline sync v2
authorChristian König <christian.koenig@amd.com>
Mon, 9 Jan 2023 08:06:03 +0000 (09:06 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 10 Jan 2023 10:45:37 +0000 (11:45 +0100)
commit3bd68b32c911a3a610ad782bb04d1a7bfc440638
tree1853ccf1505bf2b097b5607f9d68696fc55d6e5d
parenta309c7194e8a2f8bd4539b9449917913f6c2cd50
drm/amdgpu: fix pipeline sync v2

This fixes a potential memory leak of dma_fence objects in the CS code
as well as glitches in firefox because of missing pipeline sync.

v2: use the scheduler instead of the fence context

Signed-off-by: Christian König <christian.koenig@amd.com>
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2323
Tested-by: Michal Kubecek mkubecek@suse.cz
Tested-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230109130120.73389-1-christian.koenig@amd.com
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c