Skip to content

Commit a8b79b0

Browse files
superm1alexdeucher
authored andcommitted
drm/amd: Re-enable common modes for eDP and LVDS
[Why] Although compositors will add their own modes, Xorg won't use it's own modes and will only stick to modes advertised by the driver. This mean a user that used to pick 1024x768 could no longer access it unless the panel's native resolution was 1024x768. [How] Revert commit 6d396e7 ("drm/amd/display: Disable common modes for LVDS") and commit 7948afb ("drm/amd/display: Disable common modes for eDP"). The panel will still use scaling for any non-native modes due to commit 978fa2f ("drm/amd/display: Use scaling for non-native resolutions on eDP") Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4538 Acked-by: Alex Deucher <alexander.deucher@amd.com> Link: https://lore.kernel.org/r/20250828140856.2887993-1-superm1@kernel.org Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit c2fbf72)
1 parent 5171848 commit a8b79b0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8381,8 +8381,7 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)
83818381
drm_add_modes_noedid(connector, 1920, 1080);
83828382
} else {
83838383
amdgpu_dm_connector_ddc_get_modes(connector, drm_edid);
8384-
if (encoder && (connector->connector_type != DRM_MODE_CONNECTOR_eDP) &&
8385-
(connector->connector_type != DRM_MODE_CONNECTOR_LVDS))
8384+
if (encoder)
83868385
amdgpu_dm_connector_add_common_modes(encoder, connector);
83878386
amdgpu_dm_connector_add_freesync_modes(connector, drm_edid);
83888387
}

0 commit comments

Comments
 (0)