aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2910-drm-amdgpu-add-gfx-config-for-Arcturus.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2910-drm-amdgpu-add-gfx-config-for-Arcturus.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2910-drm-amdgpu-add-gfx-config-for-Arcturus.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2910-drm-amdgpu-add-gfx-config-for-Arcturus.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2910-drm-amdgpu-add-gfx-config-for-Arcturus.patch
new file mode 100644
index 00000000..022582f6
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2910-drm-amdgpu-add-gfx-config-for-Arcturus.patch
@@ -0,0 +1,36 @@
+From 6127837609e8beb2c6394711589a3b784662a6e3 Mon Sep 17 00:00:00 2001
+From: Le Ma <le.ma@amd.com>
+Date: Tue, 11 Sep 2018 12:11:36 +0800
+Subject: [PATCH 2910/2940] drm/amdgpu: add gfx config for Arcturus
+
+Signed-off-by: Le Ma <le.ma@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+index 4d84500f6bee..9e086b496c54 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
+@@ -1383,6 +1383,16 @@ static int gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
+ else
+ gb_addr_config = RAVEN_GB_ADDR_CONFIG_GOLDEN;
+ break;
++ case CHIP_ARCTURUS:
++ adev->gfx.config.max_hw_contexts = 8;
++ adev->gfx.config.sc_prim_fifo_size_frontend = 0x20;
++ adev->gfx.config.sc_prim_fifo_size_backend = 0x100;
++ adev->gfx.config.sc_hiz_tile_fifo_size = 0x30;
++ adev->gfx.config.sc_earlyz_tile_fifo_size = 0x4C0;
++ gb_addr_config = RREG32_SOC15(GC, 0, mmGB_ADDR_CONFIG);
++ gb_addr_config &= ~0xf3e777ff;
++ gb_addr_config |= 0x22014042;
++ break;
+ default:
+ BUG();
+ break;
+--
+2.17.1
+