]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Determine IPS mode by ASIC and PMFW versions
authorLeo Li <sunpeng.li@amd.com>
Tue, 27 Aug 2024 15:29:53 +0000 (11:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Sep 2024 17:05:09 +0000 (13:05 -0400)
commit65444581a4aecf0e96b4691bb20fc75c602f5863
tree320d2da01b87ef8aa18862f8e8ac8a675f226ba1
parent431c1646e1f86b949fa3685efc50b660a364c2b6
drm/amd/display: Determine IPS mode by ASIC and PMFW versions

[Why]

DCN IPS interoperates with other system idle power features, such as
Zstates.

On DCN35, there is a known issue where system Z8 + DCN IPS2 causes a
hard hang. We observe this on systems where the SBIOS allows Z8.

Though there is a SBIOS fix, there's no guarantee that users will get it
any time soon, or even install it. A workaround is needed to prevent
this from rearing its head in the wild.

[How]

For DCN35, check the pmfw version to determine whether the SBIOS has the
fix. If not, set IPS1+RCG as the deepest possible state in all cases
except for s0ix and display off (DPMS). Otherwise, enable all IPS

Signed-off-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 28d43d0895896f84c038d906d244e0a95eb243ec)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c