]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/amdgpu: cleanup parse_cs callbacks
authorDavid (Ming Qiang) Wu <David.Wu3@amd.com>
Fri, 2 Aug 2024 18:29:41 +0000 (14:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 16:13:03 +0000 (12:13 -0400)
commit6a28a072d90e4543b5e07a904e3a6afad0117e26
treee1744340af2658e0e456297663a5ea4c657cbdf5
parenta7f670d5d8e77b092404ca8a35bb0f8f89ed3117
drm/amd/amdgpu: cleanup parse_cs callbacks

Because gpu_addr is updated in the calling routine
(amdgpu_cs_patch_ibs()),it is removed in the callback.

Use .patch_cs_in_place instead of .parse_cs for
amdgpu_vce_ring_parse_cs_vm() as there is no need for keeping
a temporary IB, therefore ib->sa_bo is NULL and amdgpu_ib_free()
is removed.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: David (Ming Qiang) Wu <David.Wu3@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
drivers/gpu/drm/amd/amdgpu/vce_v4_0.c