Re: [PATCH] drm/amdgpu: check whether smu is idle in sriov case

2023-07-06 Thread Alex Deucher
On Thu, Jul 6, 2023 at 8:01 AM Danijel Slivka wrote: > > Why: > If the reg mmMP1_SMN_C2PMSG_90 is being programed to 0x0 before > guest initialization, then modprobe amdgpu will fail at smu hw_init. > (the default mmMP1_SMN_C2PMSG_90 at a clean guest environment is 0x1). > > How to fix: > this pat

[PATCH] drm/amdgpu: check whether smu is idle in sriov case

2023-07-06 Thread Danijel Slivka
Why: If the reg mmMP1_SMN_C2PMSG_90 is being programed to 0x0 before guest initialization, then modprobe amdgpu will fail at smu hw_init. (the default mmMP1_SMN_C2PMSG_90 at a clean guest environment is 0x1). How to fix: this patch is to check whether smu is idle by sending a test message to smu.