aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-07-07 07:17:45 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-07-14 11:06:31 -0400
commit36d3837266c53a92a909f22f6bbf0846c0e6464f (patch)
tree5b5f9bca8890ebccc39f88ba8af33da70161dbd3 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentbb84284e10ec3447b4bb74cfa493d5c384a0b798 (diff)
drm/amdgpu: add new gttsize module parameter v2
This allows setting the gtt size independent of the gart size. v2: fix copy and paste typo Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index 84ff824ea260..49dd8e0ddd17 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -1141,6 +1141,13 @@ static void amdgpu_check_arguments(struct amdgpu_device *adev)
1141 } 1141 }
1142 } 1142 }
1143 1143
1144 if (amdgpu_gtt_size != -1 && amdgpu_gtt_size < 32) {
1145 /* gtt size must be greater or equal to 32M */
1146 dev_warn(adev->dev, "gtt size (%d) too small\n",
1147 amdgpu_gtt_size);
1148 amdgpu_gtt_size = -1;
1149 }
1150
1144 amdgpu_check_vm_size(adev); 1151 amdgpu_check_vm_size(adev);
1145 1152
1146 amdgpu_check_block_size(adev); 1153 amdgpu_check_block_size(adev);