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>
Mon, 6 Mar 2023 20:14:39 +0000 (15:14 -0500)
commit2b595659d5aec797d2f469691cd543e9b3500471
treeabd4a5da13449af3e20116ba98dccce1c94532f1
parentaea9040c2df97a03b73a13ba124d1b6561e09c4e
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