]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd: Drop some common modes from amdgpu_connector_add_common_modes()
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 24 Sep 2025 16:16:23 +0000 (11:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Sep 2025 19:54:12 +0000 (15:54 -0400)
[Why]
DC and non-DC codepaths have different sets of common modes that are
added for eDP and LVDS cases. This can cause different behaviors for
turning on DC on hardware that can support both.

[How]
Drop extra modes from amdgpu_connector_add_common_modes() not present
in amdgpu_dm_connector_add_common_modes().

Cc: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20250924161624.1975819-5-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c

index 5e2831ba9730a3a3d2f68697f823bb89768fb44e..0ab22b919da5430bfda1c48ee27dd46f2a191123 100644 (file)
@@ -404,18 +404,12 @@ static void amdgpu_connector_add_common_modes(struct drm_encoder *encoder,
                int h;
        } common_modes[] = {
                { 640,  480},
-               { 720,  480},
                { 800,  600},
-               { 848,  480},
                {1024,  768},
-               {1152,  768},
                {1280,  720},
                {1280,  800},
-               {1280,  854},
-               {1280,  960},
                {1280, 1024},
                {1440,  900},
-               {1400, 1050},
                {1680, 1050},
                {1600, 1200},
                {1920, 1080},