drm/amdgpu: do not pass ttm_resource_manager to vram_mgr
authorNirmoy Das <nirmoy.das@amd.com>
Fri, 7 Jan 2022 08:51:14 +0000 (09:51 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jan 2022 20:44:26 +0000 (15:44 -0500)
commitec6aae9711a8e5fca24a537b9ae952e38a1ebb71
tree84d1f78314363e52b1fe5680c4ebb704bc5660e2
parentffb378fb3069520da3c2be3c1269250ec9c028ab
drm/amdgpu: do not pass ttm_resource_manager to vram_mgr

Do not allow exported amdgpu_vram_mgr_*() to accept
any ttm_resource_manager pointer. Also there is no need
to force other module to call a ttm function just to
eventually call vram_mgr functions.

v2: pass adev's vram_mgr instead of adev

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Nirmoy Das <nirmoy.das@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_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c