]> 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)
commita8500e4e99de3c15dd24115ff4a5420d18205618
treee0b4f334da4c9962c715388eaa3cec336e1516dd
parent73681cff7c5d6b269e0e2102ffd2a4af7a1956f0
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: 1e979c92a5765c ("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