Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/amd/amdgpu: fix flr_work corner case
[Why] In SRIOV multi-vf environment, the flr_work can be entered even if the TDR thread has entered the recovery. This can lead to GMC flush tlb with SDMA during full access while SDMA is not initialized. [How] 1. flr_work should take write_lock, otherwise there maybe hw access during vf flr 2. (amdgpu_in_reset(adev) ||!down_write_trylock(&adev->reset_sem)) is the correct critera when the flr_work direct returns. Acked-by: Christian König <[email protected]> Signed-off-by: Jingwen Chen <[email protected]>
- Loading branch information