aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3132-drm-amdgpu-add-reset_method-asic-callback-for-vi.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3132-drm-amdgpu-add-reset_method-asic-callback-for-vi.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3132-drm-amdgpu-add-reset_method-asic-callback-for-vi.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3132-drm-amdgpu-add-reset_method-asic-callback-for-vi.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3132-drm-amdgpu-add-reset_method-asic-callback-for-vi.patch
new file mode 100644
index 00000000..65768fb8
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3132-drm-amdgpu-add-reset_method-asic-callback-for-vi.patch
@@ -0,0 +1,41 @@
+From 54ceb3e2c29a2646a28d50d9b2b6838255447bec Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Tue, 23 Jul 2019 23:46:12 -0500
+Subject: [PATCH 3132/4256] drm/amdgpu: add reset_method asic callback for vi
+
+VI always uses the legacy pci based reset.
+
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/vi.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c
+index fffae4c2973b..56c882b3ea3c 100644
+--- a/drivers/gpu/drm/amd/amdgpu/vi.c
++++ b/drivers/gpu/drm/amd/amdgpu/vi.c
+@@ -709,6 +709,12 @@ static int vi_asic_reset(struct amdgpu_device *adev)
+ return r;
+ }
+
++static enum amd_reset_method
++vi_asic_reset_method(struct amdgpu_device *adev)
++{
++ return AMD_RESET_METHOD_LEGACY;
++}
++
+ static u32 vi_get_config_memsize(struct amdgpu_device *adev)
+ {
+ return RREG32(mmCONFIG_MEMSIZE);
+@@ -1021,6 +1027,7 @@ static const struct amdgpu_asic_funcs vi_asic_funcs =
+ .read_bios_from_rom = &vi_read_bios_from_rom,
+ .read_register = &vi_read_register,
+ .reset = &vi_asic_reset,
++ .reset_method = &vi_asic_reset_method,
+ .set_vga_state = &vi_vga_set_state,
+ .get_xclk = &vi_get_xclk,
+ .set_uvd_clocks = &vi_set_uvd_clocks,
+--
+2.17.1
+