-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drm/amdkfd: Add sync to kfd_resume_all_processes
Add a flag to kfd_resume_all_processes() to allow it to wait for all the delayed work to complete before returning. This is required for kgd_gfx_v9_set_barrier_auto_waitcnt(). In kgd_gfx_v9_set_barrier_auto_waitcnt(), when we call amdgpu_amdkfd_resume(), we need to wait for the delayed work to complete before we complete. This is to prevent any subsequent calls amdgpu_amdkfd_suspend() from cancelling any of the delayed work in amdgpu_amdkfd_resume(). This can happen in a multi-gpu system. If we enable the debugger on one node, it will do the amdgpu_amdkfd_suspend() and amdgpu_amdkfd_resume(). The call to enable the debugger will return to the caller before the delayed work is complete. If the debugger is then enabled on another node, the next call to amdgpu_amdkfd_suspend() will cancel any outstanding delayed work from amdgpu_amdkfd_resume(). To prevent this, we need to ensure that the delayed work in amdgpu_amdkfd_resume() has completed before we return to the caller. Signed-off-by: Philip Cox <[email protected]> Reviewed-by: Jonathan Kim <[email protected]>
- Loading branch information
1 parent
32572fa
commit 9b83380
Showing
7 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters