diff options
| author | Egor Perevoshchikov <rickbatra0z@gmail.com> | 2026-10-31 07:00:50 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-11-18 01:52:29 -0500 |
| commit | 57decaa0e378bf2481eae5f49293a5202976a19e (patch) | |
| tree | c1e7608344fdd5c92166d86636850cf1a3b2389e /tools/perf/scripts/python/bin | |
| parent | 6a9d5e2f06cd6f5c6aa0acb223a1c0a9dbadfce6 (diff) | |
drm/amd/display: Restore PSR-SU guard in power module
Commit a5ce8695d6d1 ("drm/amd/display: Avoid configuring PSR granularity
if PSR-SU not supported") restricted DSC slice-height configuration to
PSR-SU. The power-module integration removed that guarded caller. Its
replacement in mod_power_psr_notify_mode_change() calls
psr_su_set_dsc_slice_height() unconditionally and ignores its return value.
On PSR1 links with a DSC slice configuration, this applies a PSR-SU-only
alignment check even though selective update is not enabled. If the
calculated DSC slice height is not a multiple of the nonzero advertised
SU Y granularity, the helper triggers an assertion. It also sets
dsc_slice_height before failing the check, so the caller passes this
SU-specific value into PSR1 setup despite the failure.
Restore the PSR version guard and failure handling in the new caller.
PSR1 proceeds with the zero-initialized DSC slice height, while PSR-SU
retains its alignment validation and stops setup if that validation fails.
Fixes: 3c108046e1d6 ("drm/amd/display: Add power module on Linux")
Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/3027
Reviewed-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Egor Perevoshchikov <rickbatra0z@gmail.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 83558fcf83cc911e09962ea17c883add596766c0)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
