aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
diff options
context:
space:
mode:
authorJack Xiao <[email protected]>2021-05-12 07:53:48 +0000
committerAlex Deucher <[email protected]>2022-05-04 13:57:22 +0000
commitd7dab4fc44ad020b48a893dae728190e2f01f14d (patch)
tree1af4bc23e64ed5c785688b8839875b06ff3119d9 /drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
parentdrm/amdgpu: add mmhub v3_0 ip block (diff)
downloadkernel-d7dab4fc44ad020b48a893dae728190e2f01f14d.tar.gz
kernel-d7dab4fc44ad020b48a893dae728190e2f01f14d.zip
drm/amdgpu: save the setting of VM_CONTEXT_CNTL
MES firmware needs the setting of VM_CONTEXT_CNTL to perform vmid switch. Save the initial setting when hub initializing. Signed-off-by: Jack Xiao <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
index ff44c5364a8c..1b027d069ab4 100644
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_3.c
@@ -324,6 +324,8 @@ static void mmhub_v2_3_setup_vmid_config(struct amdgpu_device *adev)
i * hub->ctx_addr_distance,
upper_32_bits(adev->vm_manager.max_pfn - 1));
}
+
+ hub->vm_cntx_cntl = tmp;
}
static void mmhub_v2_3_program_invalidation(struct amdgpu_device *adev)