drm/amdgpu: fix sriov reinit late orders
authorYiqing Yao <YiQing.Yao@amd.com>
Tue, 26 Nov 2024 10:36:11 +0000 (18:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Dec 2024 23:35:42 +0000 (18:35 -0500)
commitf3bb57b66dc439dd129eb509a4965f1e1aeea2b8
tree2a1f1609e3efaf25c560b94fc05d0a2a96f30edf
parent274e3f4596446955bf17680fd4eb5489f5ecac00
drm/amdgpu: fix sriov reinit late orders

Use found block to call correct init/resume function on the block.
Set status.hw for resume and init.

Print re-init result again. Change to use dev_info.
Use amdgpu_device_ip_get_ip_block to get target block instead of
loop.

Fixes: 502d76308d45 ("drm/amdgpu: validate resume before function call")
Signed-off-by: Yiqing Yao <YiQing.Yao@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c