]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: switch job hw_fence to amdgpu_fence
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Jun 2025 15:31:52 +0000 (11:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Jun 2025 17:15:26 +0000 (13:15 -0400)
commitebe43542702c3d15d1a1d95e8e13b1b54076f05a
tree73f59da22762264ad0817c44605a7e44f91f189e
parent7f3b16f3f229e37cc3e02e9e4e7106c523b119e9
drm/amdgpu: switch job hw_fence to amdgpu_fence

Use the amdgpu fence container so we can store additional
data in the fence.  This also fixes the start_time handling
for MCBP since we were casting the fence to an amdgpu_fence
and it wasn't.

Fixes: 3f4c175d62d8 ("drm/amdgpu: MCBP based on DRM scheduler (v9)")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit bf1cd14f9e2e1fdf981eed273ddd595863f5288c)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h