aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1055-drm-amdgpu-si-add-need_reset_on_init-asic-callback-f.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1055-drm-amdgpu-si-add-need_reset_on_init-asic-callback-f.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1055-drm-amdgpu-si-add-need_reset_on_init-asic-callback-f.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1055-drm-amdgpu-si-add-need_reset_on_init-asic-callback-f.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1055-drm-amdgpu-si-add-need_reset_on_init-asic-callback-f.patch
new file mode 100644
index 00000000..1c5e8940
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/1055-drm-amdgpu-si-add-need_reset_on_init-asic-callback-f.patch
@@ -0,0 +1,45 @@
+From c1c2267f52e05ea15e093cb2d490568b9b77fd08 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 31 Oct 2018 23:56:16 -0500
+Subject: [PATCH 1055/2940] drm/amdgpu/si: add need_reset_on_init asic callback
+ for SI (v2)
+
+SI chips don't require a reset on reload due to the nature of
+the SMU on them.
+
+v2: rebase
+
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/si.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c
+index 7d2a48727e76..79c1a9bbcc21 100644
+--- a/drivers/gpu/drm/amd/amdgpu/si.c
++++ b/drivers/gpu/drm/amd/amdgpu/si.c
+@@ -1259,6 +1259,11 @@ static bool si_need_full_reset(struct amdgpu_device *adev)
+ return true;
+ }
+
++static bool si_need_reset_on_init(struct amdgpu_device *adev)
++{
++ return false;
++}
++
+ static int si_get_pcie_lanes(struct amdgpu_device *adev)
+ {
+ u32 link_width_cntl;
+@@ -1387,6 +1392,7 @@ static const struct amdgpu_asic_funcs si_asic_funcs =
+ .invalidate_hdp = &si_invalidate_hdp,
+ .need_full_reset = &si_need_full_reset,
+ .get_pcie_usage = &si_get_pcie_usage,
++ .need_reset_on_init = &si_need_reset_on_init,
+ };
+
+ static uint32_t si_get_rev_id(struct amdgpu_device *adev)
+--
+2.17.1
+