Skip to contentSkip to conversation

PSP_VMBX_POLLING_LIMIT too big

DISCUSSION Mario Limonciello 2 participants 2 messages Nov 28, 2023 – Nov 29, 2023

lore
Share & tools
lore
#0 lore raw

Hi,

In amd-staging-drm-next 46fe6312082c ("drm/amdgpu: update retry times for psp BL wait") and upstream a11156ff6f41 ("drm/amdgpu: update retry times for psp BL wait") the number of loops for psp_v13_0_wait_for_bootloader() to try again increased significantly.

It went from 10 loops to 20k loops. Essentially this means that the function can "effectively" no longer fail.

I've got an issue I'm looking at where runtime resume for a dGPU fails, and because of this change the system gets stuck in a never ending busy loop instead of cleanly returning an error code to the caller. The outcome is the system appears hung while the 20k loops run instead of just the dGPU failing to resume.

Is this 20k value really required? Or can we reduce it back to something more manageable?

Thanks,

#1 lore raw
Quoted 6 lines · Mario Limonciello

Hi,

In amd-staging-drm-next 46fe6312082c ("drm/amdgpu: update retry times for psp BL wait") and upstream a11156ff6f41 ("drm/amdgpu: update retry times for psp BL wait") the number of loops for psp_v13_0_wait_for_bootloader() to try again increased significantly.

It went from 10 loops to 20k loops.  Essentially this means that the function can "effectively" no longer fail.

PSP_VMBX_POLLING_LIMIT to 20k is introduced by this - f2328c2ba0e84 ("drm/amdgpu: update retry times for psp vmbx wait")

20k is too much even for PSP 13.0.6. Will reduce it to 3000 (~5mins) for 13.0.6 and for others keep the default 10.

Thanks,
Lijo

Quoted 5 lines

I've got an issue I'm looking at where runtime resume for a dGPU fails, and because of this change the system gets stuck in a never ending busy loop instead of cleanly returning an error code to the caller.  The outcome is the system appears hung while the 20k loops run instead of just the dGPU failing to resume.

Is this 20k value really required?  Or can we reduce it back to something more manageable?

Thanks,