aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0460-drm-amdgpu-drop-the-GTT-power-of-two-limit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0460-drm-amdgpu-drop-the-GTT-power-of-two-limit.patch')
-rw-r--r--common/recipes-kernel/linux/files/0460-drm-amdgpu-drop-the-GTT-power-of-two-limit.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0460-drm-amdgpu-drop-the-GTT-power-of-two-limit.patch b/common/recipes-kernel/linux/files/0460-drm-amdgpu-drop-the-GTT-power-of-two-limit.patch
new file mode 100644
index 00000000..cba9e21a
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0460-drm-amdgpu-drop-the-GTT-power-of-two-limit.patch
@@ -0,0 +1,41 @@
+From 664866d235f148e39aab0e04bedbd243f54cc195 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Thu, 17 Mar 2016 16:25:15 +0100
+Subject: [PATCH 0460/1110] drm/amdgpu: drop the GTT power of two limit
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+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 | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+index f03fa47..fd52a04 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+@@ -938,15 +938,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;
+ }
+ }
+
+--
+2.7.4
+