From: Hawking Zhang <[email protected]>

Initialize memory partition callbacks for gmv v12_1

Signed-off-by: Hawking Zhang <[email protected]>
Reviewed-by: Likun Gao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
index 55f77520df2f9..50208a3456a15 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
@@ -578,6 +578,8 @@ static const struct amdgpu_gmc_funcs gmc_v12_1_gmc_funcs = {
        .emit_pasid_mapping = gmc_v12_1_emit_pasid_mapping,
        .get_vm_pde = gmc_v12_1_get_vm_pde,
        .get_vm_pte = gmc_v12_1_get_vm_pte,
+       .query_mem_partition_mode = &amdgpu_gmc_query_memory_partition,
+       .request_mem_partition_mode = &amdgpu_gmc_request_memory_partition,
 };
 
 void gmc_v12_1_set_gmc_funcs(struct amdgpu_device *adev)
-- 
2.51.1

Reply via email to