Skip to content

Commit 9ef515e

Browse files
Xaver Huglgregkh
authored andcommitted
amdgpu/amdgpu_discovery: increase timeout limit for IFWI init
commit 9285873 upstream. With a timeout of only 1 second, my rx 5700XT fails to initialize, so this increases the timeout to 2s. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3697 Signed-off-by: Xaver Hugl <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 9ed3d7b) Cc: [email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e2f8f9d commit 9ef515e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,15 +273,15 @@ static int amdgpu_discovery_read_binary_from_mem(struct amdgpu_device *adev,
273273
int i, ret = 0;
274274

275275
if (!amdgpu_sriov_vf(adev)) {
276-
/* It can take up to a second for IFWI init to complete on some dGPUs,
276+
/* It can take up to two second for IFWI init to complete on some dGPUs,
277277
* but generally it should be in the 60-100ms range. Normally this starts
278278
* as soon as the device gets power so by the time the OS loads this has long
279279
* completed. However, when a card is hotplugged via e.g., USB4, we need to
280280
* wait for this to complete. Once the C2PMSG is updated, we can
281281
* continue.
282282
*/
283283

284-
for (i = 0; i < 1000; i++) {
284+
for (i = 0; i < 2000; i++) {
285285
msg = RREG32(mmMP0_SMN_C2PMSG_33);
286286
if (msg & 0x80000000)
287287
break;

0 commit comments

Comments
 (0)