diff options
author | Dave Airlie <airlied@redhat.com> | 2020-08-04 04:55:48 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-08-06 04:31:36 +0200 |
commit | 158d20d1857fe58af6cfa8163b37f90e999c948e (patch) | |
tree | b2574c2149faf9cad59e37913a23a54d685ac449 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | |
parent | drm/ttm: provide a driver-led init path for range mm manager. (v2) (diff) | |
download | linux-158d20d1857fe58af6cfa8163b37f90e999c948e.tar.xz linux-158d20d1857fe58af6cfa8163b37f90e999c948e.zip |
drm/amdgpu/ttm: init managers from the driver side.
Use new init calls to unwrap manager init
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-16-airlied@gmail.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h index 17c8d0d7bcc3..fb45c0a323b0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h @@ -67,8 +67,8 @@ struct amdgpu_copy_mem { unsigned long offset; }; -extern const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func; -extern const struct ttm_mem_type_manager_func amdgpu_vram_mgr_func; +int amdgpu_gtt_mgr_init(struct amdgpu_device *adev, uint64_t gtt_size); +int amdgpu_vram_mgr_init(struct amdgpu_device *adev); bool amdgpu_gtt_mgr_has_gart_addr(struct ttm_mem_reg *mem); uint64_t amdgpu_gtt_mgr_usage(struct ttm_mem_type_manager *man); |