~vicamo/+git/ubuntu-kernel:bug-1961646/fix-amd-s2idle-without-proper-fw/jammy

Last commit made on 2022-02-22
Get this branch:
git clone -b bug-1961646/fix-amd-s2idle-without-proper-fw/jammy https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-1961646/fix-amd-s2idle-without-proper-fw/jammy
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

cf399e2... by You-Sheng Yang

Bug 1961646: Fix s2idle on AMD platforms without proper fw support

cbc367f... by Mario Limonciello <email address hidden>

drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled

BugLink: https://bugs.launchpad.net/bugs/1961646

dGPUs connected to Intel systems configured for suspend to idle
will not have the power rails cut at suspend and resetting the GPU
may lead to problematic behaviors.

Fixes: e25443d2765f4 ("drm/amdgpu: add a dev_pm_ops prepare callback (v2)")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1879
Reviewed-by: Alex Deucher <email address hidden>
Signed-off-by: Mario Limonciello <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
(cherry picked from commit e55a3aea418269266d84f426b3bd70794d3389c8)
Signed-off-by: You-Sheng Yang <email address hidden>

d74cc58... by Mario Limonciello <email address hidden>

drm/amd: Only run s3 or s0ix if system is configured properly

BugLink: https://bugs.launchpad.net/bugs/1961646

This will cause misconfigured systems to not run the GPU suspend
routines.

* In APUs that are properly configured system will go into s2idle.
* In APUs that are intended to be S3 but user selects
  s2idle the GPU will stay fully powered for the suspend.
* In APUs that are intended to be s2idle and system misconfigured
  the GPU will stay fully powered for the suspend.
* In systems that are intended to be s2idle, but AMD dGPU is also
  present, the dGPU will go through S3

Signed-off-by: Mario Limonciello <email address hidden>
Reviewed-by: Alex Deucher <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
(cherry picked from commit 04ef860469fda6a646dc841190d05b31fae68e8c)
Signed-off-by: You-Sheng Yang <email address hidden>

6279fee... by Mario Limonciello <email address hidden>

drm/amd: add support to check whether the system is set to s3

BugLink: https://bugs.launchpad.net/bugs/1961646

This will be used to help make decisions on what to do in
misconfigured systems.

v2: squash in semicolon fix from Stephen Rothwell

Signed-off-by: Mario Limonciello <email address hidden>
Reviewed-by: Alex Deucher <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
(cherry picked from commit f52a2b8badbd24faf73a13c9c07fdb9d07352944)
Signed-off-by: You-Sheng Yang <email address hidden>

b75cdf6... by Mario Limonciello <email address hidden>

drm/amd: Warn users about potential s0ix problems

BugLink: https://bugs.launchpad.net/bugs/1961646

On some OEM setups users can configure the BIOS for S3 or S2idle.
When configured to S3 users can still choose 's2idle' in the kernel by
using `/sys/power/mem_sleep`. Before commit 6dc8265f9803 ("drm/amdgpu:
always reset the asic in suspend (v2)"), the GPU would crash. Now when
configured this way, the system should resume but will use more power.

As such, adjust the `amdpu_acpi_is_s0ix function` to warn users about
potential power consumption issues during their first attempt at
suspending.

Reported-by: Bjoren Dasse <email address hidden>
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/1824
Reviewed-by: Alex Deucher <email address hidden>
Signed-off-by: Mario Limonciello <email address hidden>
Signed-off-by: Alex Deucher <email address hidden>
(cherry picked from commit a6ed2035878e5ad2e43ed175d8812ac9399d6c40)
Signed-off-by: You-Sheng Yang <email address hidden>

5a2925a... by Paolo Pisati

UBUNTU: Ubuntu-5.15.0-22.22

Signed-off-by: Paolo Pisati <email address hidden>

3d6a81b... by Paolo Pisati

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1960290
Properties: no-test-build
Signed-off-by: Paolo Pisati <email address hidden>

6cc7b78... by Paolo Pisati

UBUNTU: Start new release

Ignore: yes
Signed-off-by: Paolo Pisati <email address hidden>

8c85eb1... by Paolo Pisati

UBUNTU: Ubuntu-5.15.0-21.21

Signed-off-by: Paolo Pisati <email address hidden>

4afd466... by Paolo Pisati

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1960211
Properties: no-test-build
Signed-off-by: Paolo Pisati <email address hidden>