Skip to content

Commit 8bf073c

Browse files
BNieuwenhuizenalexdeucher
authored andcommitted
drm/amdgpu: Init GFX10_ADDR_CONFIG for VCN v3 in DPG mode.
Otherwise tiling modes that require the values form this field (In particular _*_X) would be corrupted upon video decode. Copied from the VCN v2 code. Fixes: 99541f3 ("drm/amdgpu: add mc resume DPG mode for VCN3.0") Reviewed-and-Tested by: Leo Liu <[email protected]> Signed-off-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 8651fcb commit 8bf073c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,10 @@ static void vcn_v3_0_mc_resume_dpg_mode(struct amdgpu_device *adev, int inst_idx
589589
WREG32_SOC15_DPG_MODE(inst_idx, SOC15_DPG_MODE_OFFSET(
590590
VCN, inst_idx, mmUVD_VCPU_NONCACHE_SIZE0),
591591
AMDGPU_GPU_PAGE_ALIGN(sizeof(struct amdgpu_fw_shared)), 0, indirect);
592+
593+
/* VCN global tiling registers */
594+
WREG32_SOC15_DPG_MODE(0, SOC15_DPG_MODE_OFFSET(
595+
UVD, 0, mmUVD_GFX10_ADDR_CONFIG), adev->gfx.config.gb_addr_config, 0, indirect);
592596
}
593597

594598
static void vcn_v3_0_disable_static_power_gating(struct amdgpu_device *adev, int inst)

0 commit comments

Comments
 (0)