All of lore.kernel.org
 help / color / mirror / Atom feed
From: Harry Wentland <harry.wentland@amd.com>
To: Melissa Wen <mwen@igalia.com>, Alex Hung <alex.hung@amd.com>,
	Mario Limonciello <mario.limonciello@amd.com>,
	Rodrigo Siqueira <siqueira@igalia.com>,
	sunpeng.li@amd.com, alexander.deucher@amd.com,
	christian.koenig@amd.com, airlied@gmail.com, simona@ffwll.ch
Cc: Jani Nikula <jani.nikula@linux.intel.com>,
	Michel Daenzer <michel.daenzer@mailbox.org>,
	amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	kernel-dev@igalia.com
Subject: Re: [PATCH v5 11/14] drm/amd/display: create a function to fill dc_sink with edid data
Date: Wed, 10 Sep 2025 15:54:24 -0400	[thread overview]
Message-ID: <c51f7e55-04d1-474f-9fcd-028fe3201aba@amd.com> (raw)
In-Reply-To: <20250618152216.948406-12-mwen@igalia.com>



On 2025-06-18 11:19, Melissa Wen wrote:
> From: Rodrigo Siqueira <siqueira@igalia.com>
> 
> As part of the effort of stopping using raw edid, this commit move the
> copy of the edid in DC to a dedicated function that will allow the usage
> of drm_edid in the next steps.
> 
> Signed-off-by: Rodrigo Siqueira <siqueira@igalia.com>
> Co-developer-by: Melissa Wen <mwen@igalia.com>
> Signed-off-by: Melissa Wen <mwen@igalia.com>
> 
> ---
> 
> v3:
> - remove superfulous cast (jani)
> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.c      | 8 ++++++++
>  drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.h      | 2 ++
>  drivers/gpu/drm/amd/display/dc/link/link_detection.c | 3 +--
>  3 files changed, 11 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.c b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.c
> index 3f8295a68a72..b4ccc111fa08 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.c
> @@ -17,3 +17,11 @@ bool dc_edid_is_same_edid(struct dc_sink *prev_sink,
>         return (memcmp(old_edid->raw_edid,
>                        new_edid->raw_edid, new_edid->length) == 0);
>  }
> +
> +void dc_edid_copy_edid_to_dc(struct dc_sink *dc_sink,
> +			     const void *edid,
> +			     int len)
> +{
> +	memmove(dc_sink->dc_edid.raw_edid, edid, len);
> +	dc_sink->dc_edid.length = len;
> +}
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.h b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.h
> index 7e3b1177bc8a..f42cd5bbc730 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.h
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/dc_edid.h
> @@ -7,5 +7,7 @@
>  
>  bool dc_edid_is_same_edid(struct dc_sink *prev_sink,
>  			  struct dc_sink *current_sink);
> +void dc_edid_copy_edid_to_dc(struct dc_sink *dc_sink,
> +			     const void *edid, int len);

Same comment as before, please put the definition into
dm_helpers and rename the dc_edid.c to amdgpu_dm_edid.
and function to use dm_helpers_ prefix.

Harry

>  
>  #endif /* __DC_EDID_H__ */
> diff --git a/drivers/gpu/drm/amd/display/dc/link/link_detection.c b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
> index 957d74ff1294..891d35274f69 100644
> --- a/drivers/gpu/drm/amd/display/dc/link/link_detection.c
> +++ b/drivers/gpu/drm/amd/display/dc/link/link_detection.c
> @@ -1401,8 +1401,7 @@ struct dc_sink *link_add_remote_sink(
>  	if (!dc_sink)
>  		return NULL;
>  
> -	memmove(dc_sink->dc_edid.raw_edid, (const uint8_t *) edid, len);
> -	dc_sink->dc_edid.length = len;
> +	dc_edid_copy_edid_to_dc(dc_sink, edid, len);
>  
>  	if (!link_add_remote_sink_helper(
>  			link,


  reply	other threads:[~2025-09-10 19:54 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-18 15:19 [PATCH v5 00/14] drm/amd/display: more drm_edid to AMD display driver Melissa Wen
2025-06-18 15:19 ` [PATCH v5 01/14] drm/amd/display: make sure drm_edid stored in aconnector doesn't leak Melissa Wen
2025-06-18 15:19 ` [PATCH v5 02/14] drm/amd/display: start using drm_edid helpers to parse EDID caps Melissa Wen
2025-06-18 15:19 ` [PATCH v5 03/14] drm/amd/display: use drm_edid_product_id for parsing EDID product info Melissa Wen
2025-06-18 15:19 ` [PATCH v5 04/14] drm/edid: introduce a helper that gets monitor name from drm_edid Melissa Wen
2025-06-18 15:19 ` [PATCH v5 05/14] drm/amd/display: get panel id with drm_edid helper Melissa Wen
2025-06-18 15:19 ` [PATCH v5 06/14] drm/amd/display: get SAD from drm_eld when parsing EDID caps Melissa Wen
2025-06-18 15:19 ` [PATCH v5 07/14] drm/amd/display: get SADB " Melissa Wen
2025-06-18 15:19 ` [PATCH v5 08/14] drm/amd/display: simplify dm_helpers_parse_edid_caps signature Melissa Wen
2025-06-18 15:19 ` [PATCH v5 09/14] drm/amd/display: change DC functions to accept private types for edid Melissa Wen
2025-06-18 15:19 ` [PATCH v5 10/14] drm/amd/display: add a mid-layer file to handle EDID in DC Melissa Wen
2025-09-10 19:52   ` Harry Wentland
2025-09-11 17:35     ` Melissa Wen
2025-06-18 15:19 ` [PATCH v5 11/14] drm/amd/display: create a function to fill dc_sink with edid data Melissa Wen
2025-09-10 19:54   ` Harry Wentland [this message]
2025-09-11 17:36     ` Melissa Wen
2025-06-18 15:19 ` [PATCH v5 12/14] drm/edid: introduce a helper that compares edid data from two drm_edid Melissa Wen
2025-06-18 15:19 ` [PATCH v5 13/14] drm/amd/display: add drm_edid to dc_sink Melissa Wen
2025-09-10 20:00   ` Harry Wentland
2025-06-18 15:19 ` [PATCH v5 14/14] drm/amd/display: move dc_sink from dc_edid to drm_edid Melissa Wen
2025-07-18 21:32   ` Alex Hung
2025-07-26  1:18     ` Melissa Wen
2025-07-11 15:54 ` [PATCH v5 00/14] drm/amd/display: more drm_edid to AMD display driver Alex Hung

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=c51f7e55-04d1-474f-9fcd-028fe3201aba@amd.com \
    --to=harry.wentland@amd.com \
    --cc=airlied@gmail.com \
    --cc=alex.hung@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=kernel-dev@igalia.com \
    --cc=mario.limonciello@amd.com \
    --cc=michel.daenzer@mailbox.org \
    --cc=mwen@igalia.com \
    --cc=simona@ffwll.ch \
    --cc=siqueira@igalia.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 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.