Commit e9f58ff
committed
drm/amdgpu: rework how we handle TLB fences
Add a new VM flag to indicate whether or not we need
a TLB fence. Userqs (KFD or KGD) require a TLB fence.
A TLB fence is not strictly required for kernel queues,
but it shouldn't hurt. That said, enabling this
unconditionally should be fine, but it seems to tickle
some issues in KIQ/MES. Only enable them for KFD,
or when KGD userq queues are enabled (currently via module
parameter).
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4798
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4749
Fixes: f3854e0 ("drm/amdgpu: attach tlb fence to the PTs update")
Cc: Christian König <[email protected]>
Cc: Prike Liang <[email protected]>
Reviewed-by: Prike Liang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 69c5fbd)
Cc: [email protected]1 parent 3fc4648 commit e9f58ff
2 files changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1069 | 1069 | | |
1070 | 1070 | | |
1071 | 1071 | | |
1072 | | - | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
1073 | 1076 | | |
1074 | 1077 | | |
1075 | 1078 | | |
| |||
2602 | 2605 | | |
2603 | 2606 | | |
2604 | 2607 | | |
| 2608 | + | |
2605 | 2609 | | |
2606 | 2610 | | |
2607 | 2611 | | |
| |||
2739 | 2743 | | |
2740 | 2744 | | |
2741 | 2745 | | |
| 2746 | + | |
2742 | 2747 | | |
2743 | 2748 | | |
2744 | 2749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| 444 | + | |
| 445 | + | |
444 | 446 | | |
445 | 447 | | |
446 | 448 | | |
| |||
0 commit comments