diff options
author | Jack Xiao <Jack.Xiao@amd.com> | 2021-05-12 09:53:48 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-05-04 15:57:22 +0200 |
commit | d7dab4fc44ad020b48a893dae728190e2f01f14d (patch) | |
tree | 1af4bc23e64ed5c785688b8839875b06ff3119d9 /drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c | |
parent | drm/amdgpu: add mmhub v3_0 ip block (diff) | |
download | linux-d7dab4fc44ad020b48a893dae728190e2f01f14d.tar.xz linux-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 <Jack.Xiao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c b/drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c index 47f0e4daa466..5eccaa2c7ca0 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfxhub_v3_0.c @@ -335,6 +335,8 @@ static void gfxhub_v3_0_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 gfxhub_v3_0_program_invalidation(struct amdgpu_device *adev) |