drm/amdgpu/vcn4.0.5: Fix GFX10_ADDR_CONFIG programming for vcn1.
Subsystems (2)
PATCH 1/1 drm/amdgpu/vcn4.0.5: Fix GFX10_ADDR_CONFIG programming for vcn1.
The UVD_GFX10_ADDR_CONFIG's offset for vcn1 was programmed incorrectly, which causes the corrupted output from VCN1.
This fixes the issue, copied from UVD_GFX10_ADDR_CONFIG programming from other VCN generations.
--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c +1 -1
@@ -563,7 +563,7 @@ static void vcn_v4_0_5_mc_resume_dpg_mode(struct amdgpu_vcn_inst *vinst,/* VCN global tiling registers */ WREG32_SOC15_DPG_MODE (inst_idx,SOC15_DPG_MODE_OFFSET ( -VCN , inst_idx, regUVD_GFX10_ADDR_CONFIG), +VCN ,0 , regUVD_GFX10_ADDR_CONFIG), adev->gfx.config.gb_addr_config,0 , indirect); }
Signature · 1 line
2.48.0.rc0.12.gaaf18a9a82
Looks good to me.
Reviewed by : Saleemkhan Jamadar <[email protected]>
Quoted 24 lines · Ruijing Dong
The UVD_GFX10_ADDR_CONFIG's offset for vcn1 was programmed incorrectly, which causes the corrupted output from VCN1.
This fixes the issue, copied from
UVD_GFX10_ADDR_CONFIGprogramming from other VCN generations.Signed-off-by Ruijing Dong <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c +1
-1@@ -563,7 +563,7 @@ static void vcn_v4_0_5_mc_resume_dpg_mode(struct amdgpu_vcn_inst *vinst,/* VCN global tiling registers */ WREG32_SOC15_DPG_MODE (inst_idx,SOC15_DPG_MODE_OFFSET ( -VCN , inst_idx, regUVD_GFX10_ADDR_CONFIG), +VCN ,0 , regUVD_GFX10_ADDR_CONFIG), adev->gfx.config.gb_addr_config,0 , indirect); }
[AMD Official Use Only - AMD Internal Distribution Only]
Thanks Saleem, I will redo it as v2, in fact the original implementation in vcn_v4_0_5 is correct. However it missed other part.
Ruijing
-----Original Message-----
From: Jamadar, Saleemkhan <[email protected]>
Sent: Thursday, May 1, 2025 8:49 AM
To: Dong, Ruijing <[email protected]>; [email protected]; Koenig, Christian <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Liu, Leo <[email protected]>
Subject: Re: [PATCH] drm/amdgpu/vcn4.0.5: Fix GFX10_ADDR_CONFIG programming for vcn1.
Looks good to me.
Reviewed by : Saleemkhan Jamadar <[email protected]>
Quoted 26 lines · Ruijing Dong
The UVD_GFX10_ADDR_CONFIG's offset for vcn1 was programmed incorrectly, which causes the corrupted output from VCN1.
This fixes the issue, copied from
UVD_GFX10_ADDR_CONFIGprogramming from other VCN generations.Signed-off-by Ruijing Dong <[email protected]>--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c +1
-1@@ -563,7 +563,7 @@ static void vcn_v4_0_5_mc_resume_dpg_mode(struct amdgpu_vcn_inst *vinst,/* VCN global tiling registers */ WREG32_SOC15_DPG_MODE (inst_idx,SOC15_DPG_MODE_OFFSET ( -VCN , inst_idx, regUVD_GFX10_ADDR_CONFIG), +VCN ,0 , regUVD_GFX10_ADDR_CONFIG), adev->gfx.config.gb_addr_config,0 , indirect); }