Skip to content

Commit

Permalink
drm/i915/edp: reject modes with dimensions other than fixed mode
Browse files Browse the repository at this point in the history
Be more strict about filtering modes for eDP.

Cc: Nischal Varide <nischal.varide@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/feb4c3b2b9c4da56a840bdb3c0e7fd0e58ee50de.1613054234.git.jani.nikula@intel.com
  • Loading branch information
Jani Nikula committed Feb 22, 2021
1 parent c093056 commit 8733932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/i915/display/intel_dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,10 +789,10 @@ intel_dp_mode_valid(struct drm_connector *connector,
return MODE_H_ILLEGAL;

if (intel_dp_is_edp(intel_dp) && fixed_mode) {
if (mode->hdisplay > fixed_mode->hdisplay)
if (mode->hdisplay != fixed_mode->hdisplay)
return MODE_PANEL;

if (mode->vdisplay > fixed_mode->vdisplay)
if (mode->vdisplay != fixed_mode->vdisplay)
return MODE_PANEL;

target_clock = fixed_mode->clock;
Expand Down

0 comments on commit 8733932

Please sign in to comment.