aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4440-drm-amdgpu-Switch-to-use-df_v3_6_funcs-for-vega20-v2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4440-drm-amdgpu-Switch-to-use-df_v3_6_funcs-for-vega20-v2.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4440-drm-amdgpu-Switch-to-use-df_v3_6_funcs-for-vega20-v2.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4440-drm-amdgpu-Switch-to-use-df_v3_6_funcs-for-vega20-v2.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4440-drm-amdgpu-Switch-to-use-df_v3_6_funcs-for-vega20-v2.patch
new file mode 100644
index 00000000..ab9bda7a
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4440-drm-amdgpu-Switch-to-use-df_v3_6_funcs-for-vega20-v2.patch
@@ -0,0 +1,43 @@
+From a552f7119fbcc156caf6c9b0ba90e34f60824ea6 Mon Sep 17 00:00:00 2001
+From: Feifei Xu <Feifei.Xu@amd.com>
+Date: Wed, 4 Apr 2018 14:32:10 +0800
+Subject: [PATCH 4440/5725] drm/amdgpu: Switch to use df_v3_6_funcs for vega20
+ (v2)
+
+v2: fix whitespace (Alex)
+
+Signed-off-by: Feifei Xu <Feifei.Xu@amd.com>
+Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
+Reviewed-by: Huang Rui <ray.huang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/soc15.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
+index 7935484..8ccbcf9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
++++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
+@@ -51,6 +51,7 @@
+ #include "gfxhub_v1_0.h"
+ #include "mmhub_v1_0.h"
+ #include "df_v1_7.h"
++#include "df_v3_6.h"
+ #include "vega10_ih.h"
+ #include "sdma_v4_0.h"
+ #include "uvd_v7_0.h"
+@@ -501,7 +502,10 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
+ else
+ adev->nbio_funcs = &nbio_v6_1_funcs;
+
+- adev->df_funcs = &df_v1_7_funcs;
++ if (adev->asic_type == CHIP_VEGA20)
++ adev->df_funcs = &df_v3_6_funcs;
++ else
++ adev->df_funcs = &df_v1_7_funcs;
+ adev->nbio_funcs->detect_hw_virt(adev);
+
+ if (amdgpu_sriov_vf(adev))
+--
+2.7.4
+