AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Adjust dGPU handling for BACO
@ 2023-02-28  4:43 Mario Limonciello
  2023-02-28  4:43 ` [PATCH v2 1/3] drm/amd: Allow dGPUs that support BACO to use smart suspend Mario Limonciello
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Mario Limonciello @ 2023-02-28  4:43 UTC (permalink / raw)
  To: amd-gfx; +Cc: Peter Kopec, Mario Limonciello

This series adjusts the handling for dGPUs when the system is going into
s2idle.  The intent is to match the following truth table below:

+-------------------+----------------------------------+----------------------------------+-----------------------------+
|                   | s2idle (no FADT)                 | s2idle (FADT)                    | deep                        |
+-------------------+----------------------------------+----------------------------------+-----------------------------+
| APU Prepare       | 0                                | 0                                | 0                           |
| APU Suspend       | Run                              | Run                              | Run                         |
| BACO dGPU Prepare | 1 if suspended                   | 1 if suspended                   | 1 if suspended              |
| BACO dGPU Suspend | Runtime suspend if prepare was 0 | Runtime suspend if prepare was 0 | S3 suspend if prepare was 0 |
| BOCO dGPU Prepare | 1                                | 1                                | 1 if suspended              |
| BOCO dGPU Suspend | Runtime suspend if prepare was 0 | Runtime suspend if prepare was 0 | S3 suspend if prepare was 0 |
+-------------------+----------------------------------+----------------------------------+-----------------------------+

That is BACO and BOCO are handled very similarly when system is doing s2idle.

v1->v2:
 * Rework flags and flow
 * Try to do runtime suspend first, and if it fails do system suspend

Mario Limonciello (3):
  drm/amd: Allow dGPUs that support BACO to use smart suspend
  drm/amd: Don't always set s3 for dGPUs in all sleep modes
  drm/amd: Add special handling for system s0ix state w/ dGPUs

 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 11 +++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c  | 44 +++++++++++++++---------
 2 files changed, 34 insertions(+), 21 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-02-28  8:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-28  4:43 [PATCH v2 0/3] Adjust dGPU handling for BACO Mario Limonciello
2023-02-28  4:43 ` [PATCH v2 1/3] drm/amd: Allow dGPUs that support BACO to use smart suspend Mario Limonciello
2023-02-28  4:43 ` [PATCH v2 2/3] drm/amd: Don't always set s3 for dGPUs in all sleep modes Mario Limonciello
2023-02-28  4:43 ` [PATCH v2 3/3] drm/amd: Add special handling for system s0ix state w/ dGPUs Mario Limonciello
2023-02-28  6:20   ` Quan, Evan
2023-02-28  8:23   ` Lazar, Lijo
2023-02-28  6:18 ` [PATCH v2 0/3] Adjust dGPU handling for BACO Quan, Evan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox