drm/amdgpu: drop the GTT power of two limit
authorChristian König <christian.koenig@amd.com>
Thu, 17 Mar 2016 15:25:15 +0000 (16:25 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 May 2016 19:26:55 +0000 (15:26 -0400)
As far as I can see that isn't neccessary any more.

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 612117478b5701a8b0ddbd76f3bdd36ea4099797..fa848ade51f107c1479bdaa162efdfa7bfc8427b 100644 (file)
@@ -942,15 +942,11 @@ static void amdgpu_check_arguments(struct amdgpu_device *adev)
        }
 
        if (amdgpu_gart_size != -1) {
-               /* gtt size must be power of two and greater or equal to 32M */
+               /* gtt size must be greater or equal to 32M */
                if (amdgpu_gart_size < 32) {
                        dev_warn(adev->dev, "gart size (%d) too small\n",
                                 amdgpu_gart_size);
                        amdgpu_gart_size = -1;
-               } else if (!amdgpu_check_pot_argument(amdgpu_gart_size)) {
-                       dev_warn(adev->dev, "gart size (%d) must be a power of 2\n",
-                                amdgpu_gart_size);
-                       amdgpu_gart_size = -1;
                }
        }