Commit b7851f8
drm/amdkfd: Trap handler support for expert scheduling mode
The trap may be entered with dependency checking disabled.
Wait for dependency counters and save/restore scheduling mode.
v2:
Use ttmp1 instead of ttmp11. ttmp11 is not zero-initialized.
While the trap handler does zero this field before use, a user-mode
second-level trap handler could not rely on this being zero when
using an older kernel mode driver.
v3:
Use ttmp11 primarily but copy to ttmp1 before jumping to the
second level trap handler. ttmp1 is inspectable by a debugger.
Unexpected bits in the unused space may regress existing software.
Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Reviewed-by: Lancelot Six <lancelot.six@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 4238888)
Cc: stable@vger.kernel.org1 parent bf2084a commit b7851f8
2 files changed
Lines changed: 73 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3644 | 3644 | | |
3645 | 3645 | | |
3646 | 3646 | | |
3647 | | - | |
3648 | | - | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
3649 | 3653 | | |
3650 | 3654 | | |
3651 | 3655 | | |
3652 | 3656 | | |
3653 | 3657 | | |
3654 | | - | |
| 3658 | + | |
3655 | 3659 | | |
3656 | 3660 | | |
3657 | 3661 | | |
| |||
3662 | 3666 | | |
3663 | 3667 | | |
3664 | 3668 | | |
3665 | | - | |
| 3669 | + | |
3666 | 3670 | | |
3667 | 3671 | | |
3668 | 3672 | | |
3669 | | - | |
3670 | | - | |
3671 | | - | |
3672 | | - | |
3673 | | - | |
3674 | | - | |
3675 | | - | |
3676 | | - | |
3677 | | - | |
3678 | | - | |
3679 | | - | |
3680 | | - | |
3681 | | - | |
3682 | | - | |
3683 | | - | |
3684 | | - | |
3685 | | - | |
3686 | | - | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
3687 | 3695 | | |
3688 | 3696 | | |
3689 | 3697 | | |
| |||
3981 | 3989 | | |
3982 | 3990 | | |
3983 | 3991 | | |
3984 | | - | |
| 3992 | + | |
3985 | 3993 | | |
3986 | 3994 | | |
3987 | 3995 | | |
| |||
4163 | 4171 | | |
4164 | 4172 | | |
4165 | 4173 | | |
4166 | | - | |
4167 | | - | |
| 4174 | + | |
| 4175 | + | |
4168 | 4176 | | |
4169 | | - | |
| 4177 | + | |
| 4178 | + | |
4170 | 4179 | | |
4171 | 4180 | | |
| 4181 | + | |
4172 | 4182 | | |
4173 | 4183 | | |
4174 | 4184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
84 | 91 | | |
85 | 92 | | |
86 | 93 | | |
| |||
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
163 | 176 | | |
164 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
165 | 183 | | |
166 | 184 | | |
167 | 185 | | |
| |||
238 | 256 | | |
239 | 257 | | |
240 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
241 | 266 | | |
242 | 267 | | |
243 | 268 | | |
| |||
287 | 312 | | |
288 | 313 | | |
289 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
290 | 319 | | |
291 | 320 | | |
292 | 321 | | |
| |||
1043 | 1072 | | |
1044 | 1073 | | |
1045 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1046 | 1078 | | |
1047 | 1079 | | |
1048 | 1080 | | |
| |||
1134 | 1166 | | |
1135 | 1167 | | |
1136 | 1168 | | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
0 commit comments