drm/amdkfd: Sync gfx10 kfd2kgd_calls function pointers
authorYong Zhao <Yong.Zhao@amd.com>
Mon, 23 Sep 2019 19:53:13 +0000 (15:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 3 Oct 2019 14:11:01 +0000 (09:11 -0500)
get_hive_id was not set. Also, adjust the function setting sequence.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c

index 1e1cacd660c17a7f2027a747b8ec3023b9e682d0..7beb1eedef49823c20208ca3ef43466951e7957a 100644 (file)
@@ -159,10 +159,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()