aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0940-drm-amdgpu-gfx9-properly-set-the-hdp-flush-reg-for-R.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0940-drm-amdgpu-gfx9-properly-set-the-hdp-flush-reg-for-R.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0940-drm-amdgpu-gfx9-properly-set-the-hdp-flush-reg-for-R.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0940-drm-amdgpu-gfx9-properly-set-the-hdp-flush-reg-for-R.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0940-drm-amdgpu-gfx9-properly-set-the-hdp-flush-reg-for-R.patch
new file mode 100644
index 00000000..33fc09fd
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0940-drm-amdgpu-gfx9-properly-set-the-hdp-flush-reg-for-R.patch
@@ -0,0 +1,32 @@
+From 0d8fab5038ff1411b2c6b2be61c8741a3a9b9ef2 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Sat, 2 Sep 2017 02:16:35 -0400
+Subject: [PATCH 0940/4131] drm/amdgpu/gfx9: properly set the hdp flush reg for
+ Raven
+
+Was only being assigned for vega10.
+
+Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 +++-
+ 1 file changed, 3 insertions(+), 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 58c354a..b33ff31 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+@@ -3510,7 +3510,9 @@ static void gfx_v9_0_ring_emit_hdp_flush(struct amdgpu_ring *ring)
+ u32 ref_and_mask, reg_mem_engine;
+ struct nbio_hdp_flush_reg *nbio_hf_reg;
+
+- if (ring->adev->asic_type == CHIP_VEGA10)
++ if (ring->adev->flags & AMD_IS_APU)
++ nbio_hf_reg = &nbio_v7_0_hdp_flush_reg;
++ else
+ nbio_hf_reg = &nbio_v6_1_hdp_flush_reg;
+
+ if (ring->funcs->type == AMDGPU_RING_TYPE_COMPUTE) {
+--
+2.7.4
+