aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-01-07 05:44:13 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-02-10 14:17:08 -0500
commit4ebd1673c68c6fb591616d8d4880b33a40d203cf (patch)
tree9bbc60e25ad53c4c14c6389005d3687596843b73 /drivers/gpu/drm/amd
parent31f6c1fedb483232fc7b7b67b84e38ebde8c1448 (diff)
drm/amdgpu: remove power of two limit for vramlimit
That works with other values as well. 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')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_device.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index cf8a3b37a111..dfe3cdc4efed 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -959,12 +959,6 @@ static void amdgpu_check_arguments(struct amdgpu_device *adev)
959 amdgpu_sched_jobs); 959 amdgpu_sched_jobs);
960 amdgpu_sched_jobs = roundup_pow_of_two(amdgpu_sched_jobs); 960 amdgpu_sched_jobs = roundup_pow_of_two(amdgpu_sched_jobs);
961 } 961 }
962 /* vramlimit must be a power of two */
963 if (!amdgpu_check_pot_argument(amdgpu_vram_limit)) {
964 dev_warn(adev->dev, "vram limit (%d) must be a power of 2\n",
965 amdgpu_vram_limit);
966 amdgpu_vram_limit = 0;
967 }
968 962
969 if (amdgpu_gart_size != -1) { 963 if (amdgpu_gart_size != -1) {
970 /* gtt size must be power of two and greater or equal to 32M */ 964 /* gtt size must be power of two and greater or equal to 32M */