drm/amdgpu: Init GFX10_ADDR_CONFIG for VCN v3 in DPG mode.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 5 May 2021 01:27:49 +0000 (03:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:06:45 +0000 (18:06 -0400)
commitbcfbb6016b3d732d71130db3489888583f692386
tree94005657f428f01bc77034aebeaf155655e09fec
parent67387dfe0f6630f2d4f412ce77debec23a49db7a
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: 99541f392b4d ("drm/amdgpu: add mc resume DPG mode for VCN3.0")
Reviewed-and-Tested by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c