-
Shikang Fan authored
In SRIOV, when host driver performs MODE 1 reset and notifies FLR to guest driver, there is a small chance that there is no job running on hw but the driver has not updated the pending list yet, causing the driver not respond the FLR request. Modify the has_job_running function to make sure if there is still running job. v2: Use amdgpu_fence_count_emitted to determine job running status. v3: Remove the timeout wait in has_job_running Signed-off-by:
Emily Deng <Emily.Deng@amd.com> Signed-off-by:
Shikang Fan <shikang.fan@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>
Shikang Fan authoredIn SRIOV, when host driver performs MODE 1 reset and notifies FLR to guest driver, there is a small chance that there is no job running on hw but the driver has not updated the pending list yet, causing the driver not respond the FLR request. Modify the has_job_running function to make sure if there is still running job. v2: Use amdgpu_fence_count_emitted to determine job running status. v3: Remove the timeout wait in has_job_running Signed-off-by:
Emily Deng <Emily.Deng@amd.com> Signed-off-by:
Shikang Fan <shikang.fan@amd.com> Reviewed-by:
Christian König <christian.koenig@amd.com>