aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3906-drm-amdkfd-Sync-gfx10-kfd2kgd_calls-function-pointer.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3906-drm-amdkfd-Sync-gfx10-kfd2kgd_calls-function-pointer.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3906-drm-amdkfd-Sync-gfx10-kfd2kgd_calls-function-pointer.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3906-drm-amdkfd-Sync-gfx10-kfd2kgd_calls-function-pointer.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3906-drm-amdkfd-Sync-gfx10-kfd2kgd_calls-function-pointer.patch
new file mode 100644
index 00000000..226e2585
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3906-drm-amdkfd-Sync-gfx10-kfd2kgd_calls-function-pointer.patch
@@ -0,0 +1,36 @@
+From 1c8d59842dbb28cb95989c6501d926b78f15904d Mon Sep 17 00:00:00 2001
+From: Yong Zhao <Yong.Zhao@amd.com>
+Date: Mon, 23 Sep 2019 15:53:13 -0400
+Subject: [PATCH 3906/4256] drm/amdkfd: Sync gfx10 kfd2kgd_calls function
+ pointers
+
+get_hive_id was not set. Also, adjust the function setting sequence.
+
+Change-Id: I51962954cd0707ebe9aa6c85c71110dee98d6200
+Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c
+index 3b164c071f37..ae0862b05dd3 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c
+@@ -160,10 +160,11 @@ static const struct kfd2kgd_calls kfd2kgd = {
+ get_atc_vmid_pasid_mapping_pasid,
+ .get_atc_vmid_pasid_mapping_valid =
+ get_atc_vmid_pasid_mapping_valid,
++ .get_tile_config = amdgpu_amdkfd_get_tile_config,
++ .set_vm_context_page_table_base = set_vm_context_page_table_base,
+ .invalidate_tlbs = invalidate_tlbs,
+ .invalidate_tlbs_vmid = invalidate_tlbs_vmid,
+- .set_vm_context_page_table_base = set_vm_context_page_table_base,
+- .get_tile_config = amdgpu_amdkfd_get_tile_config,
++ .get_hive_id = amdgpu_amdkfd_get_hive_id,
+ };
+
+ struct kfd2kgd_calls *amdgpu_amdkfd_gfx_10_0_get_functions()
+--
+2.17.1
+