From: "Chen, Chen-Yu" <Chen-Yu.Chen@amd.com>
To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org
Cc: Harry Wentland <harry.wentland@amd.com>,
Leo Li <sunpeng.li@amd.com>, Ray Wu <Ray.Wu@amd.com>,
Limonciello Mario <Mario.Limonciello@amd.com>,
Jani Nikula <jani.nikula@intel.com>
Subject: Re: [PATCH v3 3/3] drm/amd/display: use DisplayID panel type in dm_set_panel_type
Date: Tue, 26 May 2026 11:09:52 +0800 [thread overview]
Message-ID: <d2516fce-bb18-4384-9864-51c246669614@amd.com> (raw)
In-Reply-To: <20260526030254.1460480-4-chen-yu.chen@amd.com>
I forgot to include Mario's Reviewed-by in the commit message:
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
On 5/26/2026 10:59 AM, Chenyu Chen wrote:
> Wire up the newly parsed panel_type from drm_display_info into
> amdgpu_dm's panel type detection path. When neither the AMD VSDB
> nor DPCD determines the panel type, fall back to the DisplayID
> Display Device Technology field to set PANEL_TYPE_LCD or
> PANEL_TYPE_OLED accordingly. Also expose LCD to userspace via
> the panel_type connector property.
>
> Assisted-by: Copilot:Claude-Opus-4.6
> Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com>
> ---
> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 16 +++++++++++-----
> 1 file changed, 11 insertions(+), 5 deletions(-)
>
> 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 e42a5eecdf46..ccf933ed63de 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -3944,11 +3944,13 @@ static void dm_set_panel_type(struct amdgpu_dm_connector *aconnector)
> link->panel_type = PANEL_TYPE_OLED;
> }
>
> - /*
> - * TODO: get panel type from DID2 that has device technology field
> - * to specify if it's OLED or not. But we need to wait for DID2
> - * support in DC and EDID parser to be able to use it here.
> - */
> + /* If VSDB and DPCD didn't determine panel type, check DID */
> + if (link->panel_type == PANEL_TYPE_NONE) {
> + if (display_info->panel_type == DRM_MODE_PANEL_TYPE_LCD)
> + link->panel_type = PANEL_TYPE_LCD;
> + else if (display_info->panel_type == DRM_MODE_PANEL_TYPE_OLED)
> + link->panel_type = PANEL_TYPE_OLED;
> + }
>
> if (link->panel_type == PANEL_TYPE_NONE) {
> struct drm_amd_vsdb_info *vsdb = &display_info->amd_vsdb;
> @@ -3966,6 +3968,10 @@ static void dm_set_panel_type(struct amdgpu_dm_connector *aconnector)
> drm_object_property_set_value(&connector->base,
> adev_to_drm(adev)->mode_config.panel_type_property,
> DRM_MODE_PANEL_TYPE_OLED);
> + else if (link->panel_type == PANEL_TYPE_LCD)
> + drm_object_property_set_value(&connector->base,
> + adev_to_drm(adev)->mode_config.panel_type_property,
> + DRM_MODE_PANEL_TYPE_LCD);
> else
> drm_object_property_set_value(&connector->base,
> adev_to_drm(adev)->mode_config.panel_type_property,
next prev parent reply other threads:[~2026-05-26 3:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 2:59 [PATCH v3 0/3] drm: detect panel type from DisplayID 2.x Chenyu Chen
2026-05-26 2:59 ` [PATCH v3 1/3] drm/edid: extract base section header processing into helper Chenyu Chen
2026-05-26 3:09 ` Chen, Chen-Yu
2026-05-27 5:16 ` Claude review: " Claude Code Review Bot
2026-05-26 2:59 ` [PATCH v3 2/3] drm/edid: parse panel type from DisplayID 2.x Display Parameters Chenyu Chen
2026-05-26 3:09 ` Chen, Chen-Yu
2026-05-27 5:16 ` Claude review: " Claude Code Review Bot
2026-05-26 2:59 ` [PATCH v3 3/3] drm/amd/display: use DisplayID panel type in dm_set_panel_type Chenyu Chen
2026-05-26 3:09 ` Chen, Chen-Yu [this message]
2026-05-27 5:16 ` Claude review: " Claude Code Review Bot
2026-05-27 5:16 ` Claude review: drm: detect panel type from DisplayID 2.x Claude Code Review Bot
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=d2516fce-bb18-4384-9864-51c246669614@amd.com \
--to=chen-yu.chen@amd.com \
--cc=Mario.Limonciello@amd.com \
--cc=Ray.Wu@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=jani.nikula@intel.com \
--cc=sunpeng.li@amd.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox