Commit d06af58
amd/amdkfd: sync all devices to wait all processes being evicted
If there are more than one device doing reset in parallel, the first
device will call kfd_suspend_all_processes() to evict all processes
on all devices, this call takes time to finish. other device will
start reset and recover without waiting. if the process has not been
evicted before doing recover, it will be restored, then caused page
fault.
Signed-off-by: Zhigang Luo <Zhigang.Luo@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent e33997e commit d06af58
1 file changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
960 | 960 | | |
961 | 961 | | |
962 | 962 | | |
963 | | - | |
964 | 963 | | |
965 | 964 | | |
966 | 965 | | |
967 | 966 | | |
968 | 967 | | |
969 | 968 | | |
970 | 969 | | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | 970 | | |
975 | | - | |
| 971 | + | |
976 | 972 | | |
| 973 | + | |
977 | 974 | | |
978 | 975 | | |
979 | 976 | | |
| |||
984 | 981 | | |
985 | 982 | | |
986 | 983 | | |
987 | | - | |
| 984 | + | |
988 | 985 | | |
989 | 986 | | |
990 | 987 | | |
| |||
998 | 995 | | |
999 | 996 | | |
1000 | 997 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
| 998 | + | |
1006 | 999 | | |
| 1000 | + | |
| 1001 | + | |
1007 | 1002 | | |
1008 | 1003 | | |
1009 | 1004 | | |
| |||
0 commit comments