Commit 68bfdc8
drm/amd: Keep display off while going into S4
When userspace invokes S4 the flow is:
1) amdgpu_pmops_prepare()
2) amdgpu_pmops_freeze()
3) Create hibernation image
4) amdgpu_pmops_thaw()
5) Write out image to disk
6) Turn off system
Then on resume amdgpu_pmops_restore() is called.
This flow has a problem that because amdgpu_pmops_thaw() is called
it will call amdgpu_device_resume() which will resume all of the GPU.
This includes turning the display hardware back on and discovering
connectors again.
This is an unexpected experience for the display to turn back on.
Adjust the flow so that during the S4 sequence display hardware is
not turned back on.
Reported-by: Xaver Hugl <[email protected]>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/2038
Cc: Muhammad Usama Anjum <[email protected]>
Tested-by: Muhammad Usama Anjum <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Acked-by: Harry Wentland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>1 parent 0d1a686 commit 68bfdc8
File tree
2 files changed
+14
-2
lines changed- drivers/gpu/drm/amd
- amdgpu
- display/amdgpu_dm
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2563 | 2563 | | |
2564 | 2564 | | |
2565 | 2565 | | |
2566 | | - | |
2567 | 2566 | | |
2568 | 2567 | | |
2569 | 2568 | | |
| |||
2575 | 2574 | | |
2576 | 2575 | | |
2577 | 2576 | | |
| 2577 | + | |
| 2578 | + | |
2578 | 2579 | | |
2579 | | - | |
| 2580 | + | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
2580 | 2584 | | |
2581 | 2585 | | |
2582 | 2586 | | |
| |||
2589 | 2593 | | |
2590 | 2594 | | |
2591 | 2595 | | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
2592 | 2599 | | |
2593 | 2600 | | |
2594 | 2601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3434 | 3434 | | |
3435 | 3435 | | |
3436 | 3436 | | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
3437 | 3442 | | |
3438 | 3443 | | |
3439 | 3444 | | |
| |||
0 commit comments