drm/amdgpu/vcn: Fix the register setting for vcn1
authorEmily Deng <Emily.Deng@amd.com>
Mon, 21 Mar 2022 08:25:24 +0000 (16:25 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:25 +0000 (20:59 +0200)
commit6a5d209898a605c31c26dbd2b002529e37ff0c6e
treeb954fe8064ba48f591b43cca84549cec4d30fede
parent155338be5d9078a569a723d8695b501ab369bdf9
drm/amdgpu/vcn: Fix the register setting for vcn1

commit 02fc996d5098f4c3f65bdf6cdb6b28e3f29ba789 upstream.

Correct the code error for setting register UVD_GFX10_ADDR_CONFIG.
Need to use inst_idx, or it only will set VCN0.

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c