aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0675-drm-amdgpu-disable-SDMA-page-queue-on-Vega20.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0675-drm-amdgpu-disable-SDMA-page-queue-on-Vega20.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0675-drm-amdgpu-disable-SDMA-page-queue-on-Vega20.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0675-drm-amdgpu-disable-SDMA-page-queue-on-Vega20.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0675-drm-amdgpu-disable-SDMA-page-queue-on-Vega20.patch
new file mode 100644
index 00000000..df36c8fa
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0675-drm-amdgpu-disable-SDMA-page-queue-on-Vega20.patch
@@ -0,0 +1,32 @@
+From 863f5fda40e112d422a5299ea41ae0291d5703ad Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Mon, 22 Oct 2018 10:33:10 +0800
+Subject: [PATCH 0675/2940] drm/amdgpu: disable SDMA page queue on Vega20
+
+Since we see driver loading failure on Vega20. Keep it
+disabled until it's ready.
+
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+index 96857571fc62..6367a8133168 100644
+--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+@@ -1464,7 +1464,8 @@ static int sdma_v4_0_early_init(void *handle)
+ adev->sdma.has_page_queue = false;
+ } else {
+ adev->sdma.num_instances = 2;
+- adev->sdma.has_page_queue = true;
++ if (adev->asic_type != CHIP_VEGA20)
++ adev->sdma.has_page_queue = true;
+ }
+
+ sdma_v4_0_set_ring_funcs(adev);
+--
+2.17.1
+