drm/amdgpu: add automatic per asic settings for gart_size
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Aug 2017 15:58:25 +0000 (11:58 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:40 +0000 (15:27 -0400)
commit83e74db6a81daff277732bdd00b438ede2107c68
tree7dda9615b65457160dfe6a2db2f4cfb3a09f91e5
parent2d6fb10565ca13e7a0f6f4725f1c3da5a99a2bcc
drm/amdgpu: add automatic per asic settings for gart_size

We need a larger gart for asics that do not support GPUVM on all
engines (e.g., MM) to make sure we have enough space for all
gtt buffers in physical mode.  Change the default size based on
the asic type.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c