]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix black screen with scaled modes on some eDP panels
authorNikola Cornij <nikola.cornij@amd.com>
Fri, 26 Mar 2021 23:13:52 +0000 (19:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:47:15 +0000 (16:47 -0400)
commit68c5cbf0fd7def5f502dd1a77febcf5b669727fe
treee0b4f334da4c9962c715388eaa3cec336e1516dd
parent0a1f739a5fb8dc437b4b9a7f51e6f2724bc72d30
drm/amd/display: Fix black screen with scaled modes on some eDP panels

[why]
This was a regression introduced by commit:

        drm/amd/display: Skip modeset for front porch change

Due to the change how timing parameters were set, scaled modes would
cause a black screen on some eDP panels. Would probably apply to
other displays (i.e. even non-eDP) that only have scaled modes,
but such case is not that usual for external displays.

[how]
Pick up crtc frame dimensions when programming the timing unless
it's FreeSync video mode.

Fixes: 241bd8dda2d00b ("drm/amd/display: Skip modeset for front porch change")
Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c