Skip to content

platform/x86/amd: Add S0ix support to the Xbox Ally

Antheas Kapenekakis amd-gfx dri-devel lkml platform-driver-x86 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3platform/x86/amd/pmc: Add support for Van Gogh SoCdrivers/platform/x86/amd/pmc/pmc.c drivers/platform/x86/amd/pmc/pmc.h+4 -013 replies
2/3platform/x86/amd/pmc: Add spurious_8042 to Xbox Allydrivers/platform/x86/amd/pmc/pmc-quirks.c+8 -01 reply
3/3drm/amdgpu: only send the SMU RLC notification on S3drivers/gpu/drm/amd/amdgpu/amdgpu_device.c drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c+14 -37 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAntheas KapenekakisMario Limonciello (AMD)Shyam Sundar S K
1/3R-b A-b
2/3R-b
3/3T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH v1 0/3] platform/x86/amd: Add S0ix support to the Xbox Ally

The Xbox Ally features a Van Gogh SoC that on the Steam Deck uses S3. Therefore, kernel support for S0ix was previously absent. Introduce this support in three patches:

1) Add Van Gogh to AMD PMC driver
2) Enable spurious_8042 quirk, as it is common in those generations
3) Adjust the Van Gogh init logic to avoid powering down the rlc and tweak post init

This allows the Xbox Ally to properly enter and exit S0ix suspend. Perhaps it also allows the Steam Deck to use s2idle without crashing, note it is not currently possible [1].

Currently, around 1/10 times the SoC misses the PMC hint and does not enter S0ix, so perhaps 1 or 3 need tweaking further. It wakes up always, however.

@Alex: I tweaked the text on patch 3 a bit. You can resend it separately after the issue with 1/10 failures is fixed.

[1]: https://github.com/evlaV/linux-integration/commit/5ab73e9069017aa1b5351f91513ba540ce5905fb

Alex Deucher (1):
drm/amdgpu: only send the SMU RLC notification on S3

Antheas Kapenekakis (2):
platform/x86/amd/pmc: Add support for Van Gogh SoC platform/x86/amd/pmc: Add spurious_8042 to Xbox Ally

 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c       | 8 +++++---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c        | 6 ++++++
 drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 3 +++
 drivers/platform/x86/amd/pmc/pmc-quirks.c        | 8 ++++++++
 drivers/platform/x86/amd/pmc/pmc.c               | 3 +++
 drivers/platform/x86/amd/pmc/pmc.h               | 1 +
 6 files changed, 26 insertions(+), 3 deletions(-)

base-commit: 6fab32bb6508abbb8b7b1c5498e44f0c32320ed5

Signature · 1 line
2.51.0