Commit eed3fb0
drm/amd: Use suspend and hibernate post freeze notifications
commit 2965e63 ("drm/amd: Add Suspend/Hibernate notification
callback support") introduced a VRAM eviction earlier in the PM
sequences when swap was still available for evicting to. This helped
to fix a number of memory pressure related bugs but also exposed a
new one.
If a userspace process is actively using the GPU when suspend starts
then a deadlock could occur.
Instead of going off the prepare notifier, use the PM notifiers that
occur after processes have been frozen to do evictions.
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4178
Fixes: 2965e63 ("drm/amd: Add Suspend/Hibernate notification callback support")
Signed-off-by: Mario Limonciello <[email protected]>1 parent 22feaec commit eed3fb0
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4842 | 4842 | | |
4843 | 4843 | | |
4844 | 4844 | | |
4845 | | - | |
| 4845 | + | |
4846 | 4846 | | |
4847 | 4847 | | |
4848 | | - | |
| 4848 | + | |
4849 | 4849 | | |
4850 | 4850 | | |
4851 | 4851 | | |
| |||
0 commit comments