]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amdgpu: fix eGPU hotplug regression
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Aug 2024 15:14:29 +0000 (11:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Aug 2024 02:14:14 +0000 (22:14 -0400)
commitc69b07f7bbc905022491c45097923d3487479529
treeb52837ecd6f5260705c9ba374de56687b08c4935
parente389eefe34cebc6219dbe76a923b342b2f31e3ba
drm/amdgpu: fix eGPU hotplug regression

The driver needs to wait for the on board firmware
to finish its initialization before probing the card.
Commit 959056982a9b ("drm/amdgpu: Fix discovery initialization failure during pci rescan")
switched from using msleep() to using usleep_range() which
seems to have caused init failures on some navi1x boards. Switch
back to msleep().

Fixes: 959056982a9b ("drm/amdgpu: Fix discovery initialization failure during pci rescan")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3559
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3500
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Ma Jun <Jun.Ma2@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c