OSDN Git Service

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)
commitfe8858bb097ba344a1d8280faef050504ce8d142
treee0b4f334da4c9962c715388eaa3cec336e1516dd
parent03e70a0271f68a2a2d1640ac68bdb5c65876336b
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: 6f59f229f8ed7a ("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