Commit fe07c6a
drm/amdgpu: fix pm notifier handling
commit 4aaffc8 upstream.
Set the s3/s0ix and s4 flags in the pm notifier so that we can skip
the resource evictions properly in pm prepare based on whether
we are suspending or hibernating. Drop the eviction as processes
are not frozen at this time, we we can end up getting stuck trying
to evict VRAM while applications continue to submit work which
causes the buffers to get pulled back into VRAM.
v2: Move suspend flags out of pm notifier (Mario)
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4178
Fixes: 2965e63 ("drm/amd: Add Suspend/Hibernate notification callback support")
Cc: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 06f2dcc)
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 35559ebcdc899045208f411be0cd8c18ca35b1d1)1 parent 81b79ac commit fe07c6a
2 files changed
Lines changed: 6 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4125 | 4125 | | |
4126 | 4126 | | |
4127 | 4127 | | |
4128 | | - | |
4129 | | - | |
| 4128 | + | |
| 4129 | + | |
4130 | 4130 | | |
4131 | 4131 | | |
4132 | 4132 | | |
4133 | 4133 | | |
4134 | 4134 | | |
4135 | | - | |
4136 | 4135 | | |
4137 | 4136 | | |
4138 | 4137 | | |
4139 | 4138 | | |
4140 | | - | |
4141 | | - | |
4142 | | - | |
4143 | | - | |
4144 | | - | |
4145 | | - | |
4146 | | - | |
4147 | | - | |
4148 | | - | |
4149 | | - | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
4150 | 4142 | | |
4151 | 4143 | | |
4152 | 4144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2475 | 2475 | | |
2476 | 2476 | | |
2477 | 2477 | | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | | - | |
2483 | 2478 | | |
2484 | | - | |
| 2479 | + | |
2485 | 2480 | | |
2486 | 2481 | | |
2487 | 2482 | | |
| |||
2494 | 2489 | | |
2495 | 2490 | | |
2496 | 2491 | | |
2497 | | - | |
2498 | | - | |
2499 | | - | |
2500 | 2492 | | |
2501 | 2493 | | |
2502 | 2494 | | |
| |||
0 commit comments