]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drm/amdgpu: Consolidate visible vs. real vram check v2.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 12 Jun 2018 18:28:20 +0000 (14:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:20:44 +0000 (12:20 -0500)
commitc8c5e569c5b0c9ad523c35497af2ae5788a29581
treef03ca4a92ca6b1ce0278315852f705e9d0606261
parent923ff76eb035b0de3725edd7c13cda3b068ba197
drm/amdgpu: Consolidate visible vs. real vram check v2.

Move all instnaces of this check into a function in amdgpu_gmc.h
Rename the original function to a more proper name.

v2:
Add more places to cleanup.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c