aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3812-drm-amdgpu-SRIOV-Navi12-SRIOV-VF-gets-GTT-base.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3812-drm-amdgpu-SRIOV-Navi12-SRIOV-VF-gets-GTT-base.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3812-drm-amdgpu-SRIOV-Navi12-SRIOV-VF-gets-GTT-base.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3812-drm-amdgpu-SRIOV-Navi12-SRIOV-VF-gets-GTT-base.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3812-drm-amdgpu-SRIOV-Navi12-SRIOV-VF-gets-GTT-base.patch
new file mode 100644
index 00000000..43d221d4
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3812-drm-amdgpu-SRIOV-Navi12-SRIOV-VF-gets-GTT-base.patch
@@ -0,0 +1,34 @@
+From 56c6c2fa270161780cab3275ed4b52bc2f3f80ab Mon Sep 17 00:00:00 2001
+From: Jiange Zhao <Jiange.Zhao@amd.com>
+Date: Mon, 16 Sep 2019 14:56:06 +0800
+Subject: [PATCH 3812/4256] drm/amdgpu/SRIOV: Navi12 SRIOV VF gets GTT base
+
+With changes in PSP and HV, SRIOV VF will handle
+
+vram gtt location just like bare metal. There is
+
+no need to differentiate it anymore.
+
+Signed-off-by: Jiange Zhao <Jiange.Zhao@amd.com>
+Reviewed-by: Emily Deng <Emily.Deng@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+index 46efd4d17a34..2f9f881b810d 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
+@@ -519,8 +519,7 @@ static void gmc_v10_0_vram_gtt_location(struct amdgpu_device *adev,
+ {
+ u64 base = 0;
+
+- if (!amdgpu_sriov_vf(adev))
+- base = gfxhub_v2_0_get_fb_location(adev);
++ base = gfxhub_v2_0_get_fb_location(adev);
+
+ amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+ amdgpu_gmc_gart_location(adev, mc);
+--
+2.17.1
+