From: Harry Wentland <harry.wentland@amd.com>
To: Mario Limonciello <mario.limonciello@amd.com>,
amd-gfx@lists.freedesktop.org
Cc: "Timur Kristóf" <timur.kristof@gmail.com>
Subject: Re: [PATCH 1/5] drm/amd/display: Only enable common modes for eDP and LVDS
Date: Wed, 24 Sep 2025 13:58:05 -0400 [thread overview]
Message-ID: <4dc92c3c-09d1-4dfd-be49-48075792e278@amd.com> (raw)
In-Reply-To: <20250924161624.1975819-2-mario.limonciello@amd.com>
On 2025-09-24 12:16, Mario Limonciello wrote:
> [Why]
> The main reason common modes are added is for compatibility with
> clone mode when a laptop is connected to a projector or external
> monitor. Since commit 978fa2f6d0b12 ("drm/amd/display: Use scaling
> for non-native resolutions on eDP") when non-native modes are picked
> for eDP the GPU scalar will be used. This is because it is inconsistent
> whether eDP panels have the capability to actually drive non-native
> resolutions. With panels connected to other connectors this limitation
> generally doesn't exist as we the EDID will advertise support for a
> number of resolutions and monitors will use built in scaling hardware.
>
> Comparing DC and non-DC code paths the non-DC code path only adds
> common modes for LVDS and eDP whereas the DC codepath does it for
> all connector types.
>
> In the past there was an experiment done to disable common mode adding
> for eDP and LVDS from commit 6d396e7ac1ce3 ("drm/amd/display: Disable
> common modes for LVDS") and commit 7948afb46af92 ("drm/amd/display:
> Disable common modes for eDP") but this was reverted in
> commit a8b79b09185de ("drm/amd: Re-enable common modes for eDP and
> LVDS") because it caused problems with Xorg.
>
> [How]
> Only add common modes for eDP and LVDS for DC, matching the behavior
> of non-DC.
>
> Suggested-by: Timur Kristóf <timur.kristof@gmail.com>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Harry
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 97d9eba17963..5a05ee6746af 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -8151,6 +8151,10 @@ static void amdgpu_dm_connector_add_common_modes(struct drm_encoder *encoder,
> {"1920x1200", 1920, 1200}
> };
>
> + if ((connector->connector_type != DRM_MODE_CONNECTOR_eDP) &&
> + (connector->connector_type != DRM_MODE_CONNECTOR_LVDS))
> + return;
> +
> n = ARRAY_SIZE(common_modes);
>
> for (i = 0; i < n; i++) {
next prev parent reply other threads:[~2025-09-24 17:58 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-24 16:16 [PATCH 0/5] Adjustments to common mode behavior Mario Limonciello
2025-09-24 16:16 ` [PATCH 1/5] drm/amd/display: Only enable common modes for eDP and LVDS Mario Limonciello
2025-09-24 17:58 ` Harry Wentland [this message]
2025-09-24 16:16 ` [PATCH 2/5] drm/amd: Drop unnecessary check in amdgpu_connector_add_common_modes() Mario Limonciello
2025-09-24 16:16 ` [PATCH 3/5] drm/amd: Use dynamic array size declaration for amdgpu_connector_add_common_modes() Mario Limonciello
2025-09-24 17:05 ` Alex Deucher
2025-09-24 16:16 ` [PATCH 4/5] drm/amd: Drop some common modes from amdgpu_connector_add_common_modes() Mario Limonciello
2025-09-24 16:16 ` [PATCH 5/5] drm/amd: Add name to " Mario Limonciello
2025-09-24 17:07 ` Alex Deucher
2025-09-24 17:13 ` [PATCH 0/5] Adjustments to common mode behavior Timur Kristóf
2025-09-24 17:21 ` Mario Limonciello
2025-09-24 17:33 ` Timur Kristóf
2025-09-24 17:48 ` Mario Limonciello
2025-09-24 18:11 ` Timur Kristóf
2025-09-24 18:31 ` Mario Limonciello
2025-09-24 21:04 ` Timur Kristóf
2025-09-24 18:24 ` Harry Wentland
2025-09-24 19:11 ` Alex Deucher
2025-09-24 20:00 ` Harry Wentland
2025-09-24 20:07 ` Alex Deucher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4dc92c3c-09d1-4dfd-be49-48075792e278@amd.com \
--to=harry.wentland@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=mario.limonciello@amd.com \
--cc=timur.kristof@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.