aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0285-drm-amdgpu-drop-size-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0285-drm-amdgpu-drop-size-check.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0285-drm-amdgpu-drop-size-check.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0285-drm-amdgpu-drop-size-check.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0285-drm-amdgpu-drop-size-check.patch
new file mode 100644
index 00000000..7047825d
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0285-drm-amdgpu-drop-size-check.patch
@@ -0,0 +1,44 @@
+From 058d0f4f05fd6eed0d0106b8adb06fbcf5bc3f35 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Fri, 14 Sep 2018 21:06:50 +0200
+Subject: [PATCH 0285/2940] drm/amdgpu: drop size check
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We no don't allocate zero sized kernel BOs any longer.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 14 ++++++--------
+ 1 file changed, 6 insertions(+), 8 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+index c83d080926ed..3e4a9eaec5f4 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+@@ -2012,14 +2012,12 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
+ * This is used for VGA emulation and pre-OS scanout buffers to
+ * avoid display artifacts while transitioning between pre-OS
+ * and driver. */
+- if (adev->gmc.stolen_size) {
+- r = amdgpu_bo_create_kernel(adev, adev->gmc.stolen_size, PAGE_SIZE,
+- AMDGPU_GEM_DOMAIN_VRAM,
+- &adev->stolen_vga_memory,
+- NULL, NULL);
+- if (r)
+- return r;
+- }
++ r = amdgpu_bo_create_kernel(adev, adev->gmc.stolen_size, PAGE_SIZE,
++ AMDGPU_GEM_DOMAIN_VRAM,
++ &adev->stolen_vga_memory,
++ NULL, NULL);
++ if (r)
++ return r;
+ DRM_INFO("amdgpu: %uM of VRAM memory ready\n",
+ (unsigned) (adev->gmc.real_vram_size / (1024 * 1024)));
+
+--
+2.17.1
+