drm/amdgpu: Support umc node harvest config on umc v8_10
authorCandice Li <candice.li@amd.com>
Fri, 24 Feb 2023 09:26:33 +0000 (17:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 20:55:58 +0000 (15:55 -0500)
commit06630fb9fcd761254a8d8b53dd6f859b3ecf3707
tree4642f09e2925545dfd16070a27881399f16c9763
parent7d386975f6a495902e679a3a250a7456d7e54765
drm/amdgpu: Support umc node harvest config on umc v8_10

Don't need to query error count and error address on harvest umc nodes.
v2: Fix code bug, use active_mask instead of harvsest_config
    and remove unnecessary argument in LOOP macro.
v3: Leave adev->gmc.num_umc unchanged.

Signed-off-by: Candice Li <candice.li@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.h
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
drivers/gpu/drm/amd/amdgpu/umc_v8_10.h