]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/pm/si: Notify the SMC when switching to AC
authorJeremy Klarenbeek <jeremy.klarenbeek99@gmail.com>
Tue, 19 May 2026 08:41:58 +0000 (10:41 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 14:48:23 +0000 (10:48 -0400)
commit2d071f6457af08f4692d340fcae030b5eabd6837
treef8da09477215301e0396c4b4bb802dc3b49640db
parente6c5d36756e7d4d260e2365fc4d01226f1973152
drm/amd/pm/si: Notify the SMC when switching to AC

There are some platforms that don't have a dedicated
GPIO line to manage the AC/DC switch. In this case,
the SI SMC automatically notices when switching to DC,
but needs to be notified when switching to AC.

Fixup and use si_notify_hw_of_powersource() which was
previously hidden behind an "#if 0".

This fixes some SI laptop GPUs to be able to use their
performance power states after switching from DC to AC.

Some affected GPUs are:
FirePro W4170M - Dell Precision M2800
Radeon HD 8790M - Dell Latitude E6540

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Co-developed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Jeremy Klarenbeek <jeremy.klarenbeek99@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c