drm/amdgpu: change amdgpu_ttm_set_active_vram_size
authorChristian König <christian.koenig@amd.com>
Thu, 1 Mar 2018 10:01:52 +0000 (11:01 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Mar 2018 20:37:12 +0000 (15:37 -0500)
commit57adc4cef617d7284ac7676e14533268e73e3699
tree48f9789aa89591c04b96e4c2c2f663a51fc2aaad
parentc396ef9bf3172fd57e86df4529b11d563f9ff801
drm/amdgpu: change amdgpu_ttm_set_active_vram_size

Instead of setting the active VRAM size directly provide a the info if
we can use the buffer functions or not.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Chunming zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
drivers/gpu/drm/amd/amdgpu/si_dma.c