drm/amdgpu: Fix discovery sys node harvest info
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 10 Feb 2023 06:35:59 +0000 (12:05 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:55:51 +0000 (09:55 -0400)
commitf2b8447b1f309901c3fdd4045febfe5cab545d87
tree7667bb1543974322b5fc2adfa7fea21ac6929bbb
parent75dda67c7213c3e0d17244a8c42547c27ee746f8
drm/amdgpu: Fix discovery sys node harvest info

Initalize syfs nodes after harvest information is fetched and fetch the
correct harvest info based on each IP instance.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c