aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0823-drm-amdgpu-gfx-use-proper-offset-define-for-MEC-door.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0823-drm-amdgpu-gfx-use-proper-offset-define-for-MEC-door.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0823-drm-amdgpu-gfx-use-proper-offset-define-for-MEC-door.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0823-drm-amdgpu-gfx-use-proper-offset-define-for-MEC-door.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0823-drm-amdgpu-gfx-use-proper-offset-define-for-MEC-door.patch
new file mode 100644
index 00000000..c11e9303
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0823-drm-amdgpu-gfx-use-proper-offset-define-for-MEC-door.patch
@@ -0,0 +1,30 @@
+From cc4754dd498236b529fe761c04bc07fa47d558ab Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 16 Nov 2018 14:46:51 -0500
+Subject: [PATCH 0823/2940] drm/amdgpu/gfx: use proper offset define for MEC
+ doorbells
+
+Looks like a copy paste typo.
+
+Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+index a0f6c0b2ee6b..e6600acd481d 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+@@ -1580,7 +1580,7 @@ static int gfx_v9_0_compute_ring_init(struct amdgpu_device *adev, int ring_id,
+
+ ring->ring_obj = NULL;
+ ring->use_doorbell = true;
+- ring->doorbell_index = (AMDGPU_DOORBELL_MEC_RING0 + ring_id) << 1;
++ ring->doorbell_index = (AMDGPU_DOORBELL64_MEC_RING0 + ring_id) << 1;
+ ring->eop_gpu_addr = adev->gfx.mec.hpd_eop_gpu_addr
+ + (ring_id * GFX9_MEC_HPD_SIZE);
+ sprintf(ring->name, "comp_%d.%d.%d", ring->me, ring->pipe, ring->queue);
+--
+2.17.1
+