drm/amdgpu: fix the gb_addr_config_fields init value mismatch
authorShiwu Zhang <shiwu.zhang@amd.com>
Tue, 4 Mar 2025 03:13:48 +0000 (11:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Mar 2025 17:53:58 +0000 (12:53 -0500)
commit216be476f14a8a129f1e3210d3c97b9a94942fea
treeacadc9fcc35ed1e3b0ab2651f58e35fa61360b5c
parent3bc7bc73af7d167e564eb09ed17af0eed24b5110
drm/amdgpu: fix the gb_addr_config_fields init value mismatch

For gfx_v9_4_3 specifically, before regGB_ADDR_CONFIG is overwritten
in gfx hw_init it is read out to popluate the gb_addr_config_fields
in the sw_init stage, which causes mismatch.

Fix it by using the golden value in sw_init as well.

v2: This is a driver-set golden reg and keep as it is (Lijo)

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c