]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: do not use amdgpu_bo_gpu_offset_no_check individually
authorSaleemkhan Jamadar <saleemkhan083@gmail.com>
Thu, 11 Dec 2025 17:36:53 +0000 (23:06 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 18:27:13 +0000 (13:27 -0500)
commit1bc44dee2647b720065b71d57e594f70ea52fb3e
tree5671ee6e1db5f983667e3e04d23a58e3f5abe0ae
parent81af7f1718a62c4eb9a1fc22263bf8a4f888fd05
drm/amdgpu: do not use amdgpu_bo_gpu_offset_no_check individually

This should not be used indiviually, use amdgpu_bo_gpu_offset
with bo reserved.

v3 - unpin bo in queue destroy (Christian)
v2 - pin bo so that offset returned won't change after unlock (Christian)

Signed-off-by: Saleemkhan Jamadar <saleemkhan083@gmail.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
drivers/gpu/drm/amd/amdgpu/mes_userqueue.c