Revert "drm/amd/display: edp do not add non-edid timings"
authorjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:51:39 +0000 (08:51 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:51:39 +0000 (08:51 +0000)
From Hersen Wu
b91748bdbfb10673bc128179eb71cf66cb9641c4 in linux-6.1.y/6.1.39
d6149086b45e150c170beaa4546495fd1880724c in mainline linux

sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 21e07a1..188708e 100644 (file)
@@ -6974,13 +6974,7 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)
                                drm_add_modes_noedid(connector, 640, 480);
        } else {
                amdgpu_dm_connector_ddc_get_modes(connector, edid);
-               /* most eDP supports only timings from its edid,
-                * usually only detailed timings are available
-                * from eDP edid. timings which are not from edid
-                * may damage eDP
-                */
-               if (connector->connector_type != DRM_MODE_CONNECTOR_eDP)
-                       amdgpu_dm_connector_add_common_modes(encoder, connector);
+               amdgpu_dm_connector_add_common_modes(encoder, connector);
                amdgpu_dm_connector_add_freesync_modes(connector, edid);
        }
        amdgpu_dm_fbc_init(connector);