<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Calibri;font-size:10pt;color:#0000FF;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Left">
[AMD Official Use Only - AMD Internal Distribution Only]<br>
</p>
<br>
<div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Acked-by: Vitaly Prosyak <vitaly.prosyak@amd.com></div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The entire series of patches [0-53 ] for gfx 7, 8, 9, 11 and compute gfx 10, 12</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
queue/pipe reset was tested using the new IGT test, amd_queue_reset, which has been merged upstream.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of amd-gfx-request@lists.freedesktop.org <amd-gfx-request@lists.freedesktop.org><br>
<b>Sent:</b> Thursday, July 25, 2024 12:35 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> amd-gfx Digest, Vol 98, Issue 341</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send amd-gfx mailing list submissions to<br>
amd-gfx@lists.freedesktop.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
or, via email, send a message with subject or body 'help' to<br>
amd-gfx-request@lists.freedesktop.org<br>
<br>
You can reach the person managing the list at<br>
amd-gfx-owner@lists.freedesktop.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of amd-gfx digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: [PATCH V2 00/53] GC per queue reset (Alex Deucher)<br>
2. Re: [PATCH v4 01/11] drm/amd/display: clean unused variables<br>
for hdmi freesync parser (Alex Hung)<br>
3. Re: [PATCH 1/2] drm/sched: Add error code parameter to<br>
drm_sched_start (Alex Deucher)<br>
4. Re: [PATCH v4 02/11] drm/amd/display: switch<br>
amdgpu_dm_connector to use struct drm_edid (Alex Hung)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 25 Jul 2024 11:29:14 -0400<br>
From: Alex Deucher <alexdeucher@gmail.com><br>
To: Alex Deucher <alexander.deucher@amd.com><br>
Cc: amd-gfx@lists.freedesktop.org<br>
Subject: Re: [PATCH V2 00/53] GC per queue reset<br>
Message-ID:<br>
<CADnq5_NWdzoTVOuCEOFMhC0GF+26=2z8nknADXyiLxmAs9fTzQ@mail.gmail.com><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Thu, Jul 25, 2024 at 11:20?AM Alex Deucher <alexander.deucher@amd.com> wrote:<br>
><br>
> This adds preliminary support for GC per queue reset. In this<br>
> case, only the jobs currently in the queue are lost. If this<br>
> fails, we fall back to a full adapter reset.<br>
><br>
> V2: Fix fallbacks to full adapter reset<br>
> RLC safemode cleanup<br>
> Preliminary support for older GPUs<br>
<br>
Forgot to add a git link as well:<br>
<a href="https://gitlab.freedesktop.org/agd5f/linux/-/tree/amd-staging-drm-next-queue-reset?ref_type=heads">https://gitlab.freedesktop.org/agd5f/linux/-/tree/amd-staging-drm-next-queue-reset?ref_type=heads</a><br>
<br>
Alex<br>
<br>
><br>
> Alex Deucher (38):<br>
> drm/amdgpu/gfx10: handle SDMA in KIQ map/unmap<br>
> drm/amdgpu/mes11: handle second gfx pipe<br>
> drm/amdgpu/mes: add API for legacy queue reset<br>
> drm/amdgpu/mes11: add API for legacy queue reset<br>
> drm/amdgpu/mes12: add API for legacy queue reset<br>
> drm/amdgpu/mes: add API for user queue reset<br>
> drm/amdgpu/mes11: add API for user queue reset<br>
> drm/amdgpu/mes12: add API for user queue reset<br>
> drm/amdgpu: add new ring reset callback<br>
> drm/amdgpu: add per ring reset support (v5)<br>
> drm/amdgpu/gfx11: add ring reset callbacks<br>
> drm/amdgpu/gfx11: rename gfx_v11_0_gfx_init_queue()<br>
> drm/amdgpu/gfx10: add ring reset callbacks<br>
> drm/amdgpu/gfx10: rework reset sequence<br>
> drm/amdgpu/gfx9: add ring reset callback<br>
> drm/amdgpu/gfx9.4.3: add ring reset callback<br>
> drm/amdgpu/gfx12: add ring reset callbacks<br>
> drm/amdgpu/gfx12: fallback to driver reset compute queue directly<br>
> drm/amdgpu/gfx11: enter safe mode before touching CP_INT_CNTL<br>
> drm/amdgpu/gfx11: add a mutex for the gfx semaphore<br>
> drm/amdgpu/gfx11: export gfx_v11_0_request_gfx_index_mutex()<br>
> drm/amdgpu/gfx9: per queue reset only on bare metal<br>
> drm/amdgpu/gfx10: per queue reset only on bare metal<br>
> drm/amdgpu/gfx11: per queue reset only on bare metal<br>
> drm/amdgpu/gfx12: per queue reset only on bare metal<br>
> drm/amdgpu/gfx9: add ring reset callback for gfx<br>
> drm/amdgpu/gfx8: add ring reset callback for gfx<br>
> drm/amdgpu/gfx7: add ring reset callback for gfx<br>
> drm/amdgpu/gfx9: use proper rlc safe mode helpers<br>
> drm/amdgpu/gfx9.4.3: use proper rlc safe mode helpers<br>
> drm/amdgpu/gfx10: use proper rlc safe mode helpers<br>
> drm/amdgpu/gfx11: use proper rlc safe mode helpers<br>
> drm/amdgpu/gfx12: use proper rlc safe mode helpers<br>
> drm/amdgpu/gfx12: use rlc safe mode for soft recovery<br>
> drm/amdgpu/gfx11: use rlc safe mode for soft recovery<br>
> drm/amdgpu/gfx10: use rlc safe mode for soft recovery<br>
> drm/amdgpu/gfx9.4.3: use rlc safe mode for soft recovery<br>
> drm/amdgpu/gfx9: use rlc safe mode for soft recovery<br>
><br>
> Jiadong Zhu (13):<br>
> drm/amdgpu/gfx11: wait for reset done before remap<br>
> drm/amdgpu/gfx10: remap queue after reset successfully<br>
> drm/amdgpu/gfx10: wait for reset done before remap<br>
> drm/amdgpu/gfx9: remap queue after reset successfully<br>
> drm/amdgpu/gfx9: wait for reset done before remap<br>
> drm/amdgpu/gfx9.4.3: remap queue after reset successfully<br>
> drm/amdgpu/gfx_9.4.3: wait for reset done before remap<br>
> drm/amdgpu/gfx: add a new kiq_pm4_funcs callback for reset_hw_queue<br>
> drm/amdgpu/gfx9: implement reset_hw_queue for gfx9<br>
> drm/amdgpu/gfx9.4.3: implement reset_hw_queue for gfx9.4.3<br>
> drm/amdgpu/mes: modify mes api for mmio queue reset<br>
> drm/amdgpu/mes: implement amdgpu_mes_reset_hw_queue_mmio<br>
> drm/amdgpu/mes11: implement mmio queue reset for gfx11<br>
><br>
> Prike Liang (2):<br>
> drm/amdgpu: increase the reset counter for the queue reset<br>
> drm/amdgpu/gfx11: fallback to driver reset compute queue directly (v2)<br>
><br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 6 +<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 20 ++<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 88 ++++++++<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_mes.h | 37 +++<br>
> drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 2 +<br>
> drivers/gpu/drm/amd/amdgpu/cikd.h | 1 +<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 251 +++++++++++++++++++--<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 127 +++++++++--<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v11_0.h | 3 +<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 103 ++++++++-<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 76 ++++++-<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 75 +++++-<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 179 ++++++++++++++-<br>
> drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 132 ++++++++++-<br>
> drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 134 +++++++++++<br>
> drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 54 +++++<br>
> drivers/gpu/drm/amd/amdgpu/nvd.h | 2 +<br>
> drivers/gpu/drm/amd/amdgpu/vid.h | 1 +<br>
> 19 files changed, 1243 insertions(+), 49 deletions(-)<br>
><br>
> --<br>
> 2.45.2<br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 25 Jul 2024 10:23:36 -0600<br>
From: Alex Hung <alex.hung@amd.com><br>
To: Melissa Wen <mwen@igalia.com>, harry.wentland@amd.com,<br>
sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com,<br>
alexander.deucher@amd.com, christian.koenig@amd.com,<br>
Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch<br>
Cc: Mario Limonciello <mario.limonciello@amd.com>, Jani Nikula<br>
<jani.nikula@linux.intel.com>, amd-gfx@lists.freedesktop.org,<br>
dri-devel@lists.freedesktop.org, kernel-dev@igalia.com<br>
Subject: Re: [PATCH v4 01/11] drm/amd/display: clean unused variables<br>
for hdmi freesync parser<br>
Message-ID: <b0017268-5651-4031-901e-45e64319d537@amd.com><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Hi Melissa,<br>
<br>
There are no commit messages in this patch.<br>
<br>
Also, do you think this can be merged with Patch 5 "drm/amd/display: <br>
remove redundant freesync parser for DP"?<br>
<br>
On 2024-07-05 21:35, Melissa Wen wrote:<br>
> Signed-off-by: Melissa Wen <mwen@igalia.com><br>
> ---<br>
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ---<br>
> 1 file changed, 3 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> index 98cf523a629e..1dfa7ec9af35 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> @@ -12108,9 +12108,6 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,<br>
> } else if (edid && sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A) {<br>
> i = parse_hdmi_amd_vsdb(amdgpu_dm_connector, edid, &vsdb_info);<br>
> if (i >= 0 && vsdb_info.freesync_supported) {<br>
> - timing = &edid->detailed_timings[i];<br>
> - data = &timing->data.other_data;<br>
> -<br>
> amdgpu_dm_connector->min_vfreq = vsdb_info.min_refresh_rate_hz;<br>
> amdgpu_dm_connector->max_vfreq = vsdb_info.max_refresh_rate_hz;<br>
> if (amdgpu_dm_connector->max_vfreq - amdgpu_dm_connector->min_vfreq > 10)<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 25 Jul 2024 12:30:07 -0400<br>
From: Alex Deucher <alexdeucher@gmail.com><br>
To: vitaly.prosyak@amd.com<br>
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,<br>
alexander.deucher@amd.com, christian.koenig@amd.com,<br>
jesse.zhang@amd.com<br>
Subject: Re: [PATCH 1/2] drm/sched: Add error code parameter to<br>
drm_sched_start<br>
Message-ID:<br>
<CADnq5_NPmHX_1j9xifr-wk3VjB5j5_inmrrP8JknQ-49A2UqwA@mail.gmail.com><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Wed, Jul 24, 2024 at 11:30?PM <vitaly.prosyak@amd.com> wrote:<br>
><br>
> From: Vitaly Prosyak <vitaly.prosyak@amd.com><br>
><br>
> The current implementation of drm_sched_start uses a hardcoded -ECANCELED to dispose of a job when<br>
> the parent/hw fence is NULL. This results in drm_sched_job_done being called with -ECANCELED for<br>
> each job with a NULL parent in the pending list, making it difficult to distinguish between recovery<br>
> methods, whether a queue reset or a full GPU reset was used.<br>
><br>
> To improve this, we first try a soft recovery for timeout jobs and use the error code -ENODATA.<br>
> If soft recovery fails, we proceed with a queue reset, where the error code remains -ENODATA for<br>
> the job. Finally, for a full GPU reset, we use error codes -ECANCELED or -ETIME. This patch adds<br>
> an error code parameter to drm_sched_start, allowing us to differentiate between queue reset and<br>
> GPU reset failures. This enables user mode and test applications to validate the expected<br>
> correctness of the requested operation. After a successful queue reset, the only way to continue<br>
> normal operation is to call drm_sched_job_done with the specific error code -ENODATA.<br>
><br>
> v1: Initial implementation by Jesse utilized amdgpu_device_lock_reset_domain and<br>
> amdgpu_device_unlock_reset_domain to allow user mode to track the queue reset status and distinguish<br>
> between queue reset and GPU reset.<br>
> v2: Christian suggested using the error codes -ENODATA for queue reset and -ECANCELED or -ETIME for GPU<br>
> reset, returned to amdgpu_cs_wait_ioctl.<br>
> v3: To meet the requirements, we introduce a new function drm_sched_start_ex with an additional parameter<br>
> to set dma_fence_set_error, allowing us to handle the specific error codes appropriately and dispose<br>
> of bad jobs with the selected error code depending on whether it was a queue reset or GPU reset.<br>
> v4: Alex suggested using a new name, drm_sched_start_with_recovery_error, which more accurately describes<br>
> the function's purpose. Additionally, it was recommended to add documentation details about the new method.<br>
><br>
> Cc: Alex Deucher <alexander.deucher@amd.com><br>
> Cc: Christian Koenig <christian.koenig@amd.com><br>
> Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com><br>
> Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com><br>
> ---<br>
> drivers/gpu/drm/scheduler/sched_main.c | 30 +++++++++++++++++++++++---<br>
> include/drm/gpu_scheduler.h | 1 +<br>
> 2 files changed, 28 insertions(+), 3 deletions(-)<br>
><br>
> diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers/gpu/drm/scheduler/sched_main.c<br>
> index 7e90c9f95611..c42449358b3f 100644<br>
> --- a/drivers/gpu/drm/scheduler/sched_main.c<br>
> +++ b/drivers/gpu/drm/scheduler/sched_main.c<br>
> @@ -671,13 +671,24 @@ void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad)<br>
> EXPORT_SYMBOL(drm_sched_stop);<br>
><br>
> /**<br>
> - * drm_sched_start - recover jobs after a reset<br>
> + * drm_sched_start_with_recovery_error - recover jobs after a reset with<br>
> + * custom error<br>
> *<br>
> * @sched: scheduler instance<br>
> * @full_recovery: proceed with complete sched restart<br>
> + * @error : err code for set dma_fence_set_error<br>
> + *<br>
> + * Starts the scheduler and allows setting a custom dma_fence_set_error,<br>
> + * which can be used to identify the recovery mechanism actually used.<br>
> *<br>
> + * For example:<br>
> + * - If a soft or queue reset was used, dma_fence_set_error is set to -ENODATA.<br>
> + * - If an entire GPU reset was used, the error code is set to -ECANCELED.<br>
> + *<br>
> + * This approach enables user mode and test applications to know which<br>
> + * recovery method was used for a given bad job.<br>
> */<br>
> -void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery)<br>
> +void drm_sched_start_with_recovery_error(struct drm_gpu_scheduler *sched, bool full_recovery, int error)<br>
> {<br>
> struct drm_sched_job *s_job, *tmp;<br>
> int r;<br>
> @@ -704,7 +715,7 @@ void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery)<br>
> DRM_DEV_ERROR(sched->dev, "fence add callback failed (%d)\n",<br>
> r);<br>
> } else<br>
> - drm_sched_job_done(s_job, -ECANCELED);<br>
> + drm_sched_job_done(s_job, error);<br>
> }<br>
><br>
> if (full_recovery)<br>
> @@ -712,6 +723,19 @@ void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery)<br>
><br>
> drm_sched_wqueue_start(sched);<br>
> }<br>
> +EXPORT_SYMBOL(drm_sched_start_with_recovery_error);<br>
> +<br>
> +/**<br>
> + * drm_sched_start - recover jobs after a reset<br>
> + *<br>
> + * @sched: scheduler instance<br>
> + * @full_recovery: proceed with complete sched restart<br>
> + *<br>
> + */<br>
> +void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery)<br>
> +{<br>
> + drm_sched_start_with_recovery_error(sched, full_recovery, -ECANCELED);<br>
> +}<br>
> EXPORT_SYMBOL(drm_sched_start);<br>
><br>
> /**<br>
> diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h<br>
> index 5acc64954a88..444fa6761590 100644<br>
> --- a/include/drm/gpu_scheduler.h<br>
> +++ b/include/drm/gpu_scheduler.h<br>
> @@ -580,6 +580,7 @@ void drm_sched_wqueue_stop(struct drm_gpu_scheduler *sched);<br>
> void drm_sched_wqueue_start(struct drm_gpu_scheduler *sched);<br>
> void drm_sched_stop(struct drm_gpu_scheduler *sched, struct drm_sched_job *bad);<br>
> void drm_sched_start(struct drm_gpu_scheduler *sched, bool full_recovery);<br>
> +void drm_sched_start_ex(struct drm_gpu_scheduler *sched, bool full_recovery, int error);<br>
<br>
drm_sched_start_with_recovery_error()<br>
<br>
Alex<br>
<br>
> void drm_sched_resubmit_jobs(struct drm_gpu_scheduler *sched);<br>
> void drm_sched_increase_karma(struct drm_sched_job *bad);<br>
> void drm_sched_reset_karma(struct drm_sched_job *bad);<br>
> --<br>
> 2.25.1<br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Thu, 25 Jul 2024 10:35:07 -0600<br>
From: Alex Hung <alex.hung@amd.com><br>
To: Melissa Wen <mwen@igalia.com>, harry.wentland@amd.com,<br>
sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com,<br>
alexander.deucher@amd.com, christian.koenig@amd.com,<br>
Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch<br>
Cc: Mario Limonciello <mario.limonciello@amd.com>, Jani Nikula<br>
<jani.nikula@linux.intel.com>, amd-gfx@lists.freedesktop.org,<br>
dri-devel@lists.freedesktop.org, kernel-dev@igalia.com<br>
Subject: Re: [PATCH v4 02/11] drm/amd/display: switch<br>
amdgpu_dm_connector to use struct drm_edid<br>
Message-ID: <d1cce2ee-f12b-4d37-8729-5ff22cb64550@amd.com><br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
Please see inline comments.<br>
<br>
On 2024-07-05 21:35, Melissa Wen wrote:<br>
> Replace raw edid handling (struct edid) with the opaque EDID type<br>
> (struct drm_edid) on amdgpu_dm_connector for consistency. It may also<br>
> prevent mismatch of approaches in different parts of the driver code.<br>
> Working in progress. It was only exercised with IGT tests.<br>
> <br>
> v2: use const to fix warnings (Alex Hung)<br>
> v3: fix general protection fault on mst<br>
> v4: rename edid to drm_edid in amdgpu_connector (Jani)<br>
> call drm_edid_connector_update to clear edid in case of NULL (Jani)<br>
> keep setting NULL instead of free drm_edid (Jani)<br>
> check drm_edid not NULL, instead of valid (Jani)<br>
> <br>
> Signed-off-by: Melissa Wen <mwen@igalia.com><br>
> ---<br>
> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 106 +++++++++---------<br>
> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 4 +-<br>
> .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c | 13 ++-<br>
> .../display/amdgpu_dm/amdgpu_dm_mst_types.c | 32 +++---<br>
> 4 files changed, 79 insertions(+), 76 deletions(-)<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> index 1dfa7ec9af35..49b8c5b00728 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
> @@ -3408,7 +3408,7 @@ void amdgpu_dm_update_connector_after_detect(<br>
> aconnector->dc_sink = sink;<br>
> dc_sink_retain(aconnector->dc_sink);<br>
> amdgpu_dm_update_freesync_caps(connector,<br>
> - aconnector->edid);<br>
> + aconnector->drm_edid);<br>
> } else {<br>
> amdgpu_dm_update_freesync_caps(connector, NULL);<br>
> if (!aconnector->dc_sink) {<br>
> @@ -3467,18 +3467,20 @@ void amdgpu_dm_update_connector_after_detect(<br>
> aconnector->dc_sink = sink;<br>
> dc_sink_retain(aconnector->dc_sink);<br>
> if (sink->dc_edid.length == 0) {<br>
> - aconnector->edid = NULL;<br>
> + aconnector->drm_edid = NULL;<br>
> if (aconnector->dc_link->aux_mode) {<br>
> drm_dp_cec_unset_edid(<br>
> &aconnector->dm_dp_aux.aux);<br>
> }<br>
> } else {<br>
> - aconnector->edid =<br>
> - (struct edid *)sink->dc_edid.raw_edid;<br>
> + const struct edid *edid = (const struct edid *)sink->dc_edid.raw_edid;<br>
> + aconnector->drm_edid = drm_edid_alloc(edid, sink->dc_edid.length);<br>
> + drm_edid_connector_update(connector, aconnector->drm_edid);<br>
> <br>
> + /* FIXME: Get rid of drm_edid_raw() */<br>
> if (aconnector->dc_link->aux_mode)<br>
> drm_dp_cec_set_edid(&aconnector->dm_dp_aux.aux,<br>
> - aconnector->edid);<br>
Why not pass edid but drm_edid_raw(aconnector->drm_edid)?<br>
<br>
> + drm_edid_raw(aconnector->drm_edid));<br>
> }<br>
> <br>
> if (!aconnector->timing_requested) {<br>
> @@ -3489,17 +3491,18 @@ void amdgpu_dm_update_connector_after_detect(<br>
> "failed to create aconnector->requested_timing\n");<br>
> }<br>
> <br>
> - drm_connector_update_edid_property(connector, aconnector->edid);<br>
> - amdgpu_dm_update_freesync_caps(connector, aconnector->edid);<br>
> + drm_edid_connector_update(connector, aconnector->drm_edid);<br>
> + amdgpu_dm_update_freesync_caps(connector, aconnector->drm_edid);<br>
> update_connector_ext_caps(aconnector);<br>
> } else {<br>
> drm_dp_cec_unset_edid(&aconnector->dm_dp_aux.aux);<br>
> amdgpu_dm_update_freesync_caps(connector, NULL);<br>
> - drm_connector_update_edid_property(connector, NULL);<br>
> + drm_edid_connector_update(connector, NULL);<br>
> aconnector->num_modes = 0;<br>
> dc_sink_release(aconnector->dc_sink);<br>
> aconnector->dc_sink = NULL;<br>
> - aconnector->edid = NULL;<br>
> + drm_edid_free(aconnector->drm_edid);<br>
> + aconnector->drm_edid = NULL;<br>
> kfree(aconnector->timing_requested);<br>
> aconnector->timing_requested = NULL;<br>
> /* Set CP to DESIRED if it was ENABLED, so we can re-enable it again on hotplug */<br>
> @@ -7002,13 +7005,7 @@ static void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)<br>
> struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector);<br>
> struct dc_link *dc_link = aconnector->dc_link;<br>
> struct dc_sink *dc_em_sink = aconnector->dc_em_sink;<br>
> - struct edid *edid;<br>
> - struct i2c_adapter *ddc;<br>
> -<br>
> - if (dc_link && dc_link->aux_mode)<br>
> - ddc = &aconnector->dm_dp_aux.aux.ddc;<br>
> - else<br>
> - ddc = &aconnector->i2c->base;<br>
> + const struct drm_edid *drm_edid;<br>
> <br>
> /*<br>
> * Note: drm_get_edid gets edid in the following order:<br>
> @@ -7016,18 +7013,20 @@ static void amdgpu_dm_connector_funcs_force(struct drm_connector *connector)<br>
> * 2) firmware EDID if set via edid_firmware module parameter<br>
> * 3) regular DDC read.<br>
> */<br>
> - edid = drm_get_edid(connector, ddc);<br>
drm_get_edid() is removed here, and thhe above comments should be <br>
removed as well.<br>
<br>
> - if (!edid) {<br>
> + drm_edid = drm_edid_read(connector);<br>
> + drm_edid_connector_update(connector, drm_edid);<br>
> + if (!drm_edid) {<br>
> DRM_ERROR("No EDID found on connector: %s.\n", connector->name);<br>
> return;<br>
> }<br>
> <br>
> - aconnector->edid = edid;<br>
> -<br>
> + aconnector->drm_edid = drm_edid;<br>
> /* Update emulated (virtual) sink's EDID */<br>
> if (dc_em_sink && dc_link) {<br>
> + const struct edid *edid = drm_edid_raw(drm_edid); // FIXME: Get rid of drm_edid_raw()<br>
> +<br>
> memset(&dc_em_sink->edid_caps, 0, sizeof(struct dc_edid_caps));<br>
> - memmove(dc_em_sink->dc_edid.raw_edid, edid, (edid->extensions + 1) * EDID_LENGTH);<br>
> + memmove(dc_em_sink->dc_edid.raw_edid, (uint8_t *)edid, (edid->extensions + 1) * EDID_LENGTH);<br>
<br>
is casting to (uint8 *) necessary?<br>
<br>
> dm_helpers_parse_edid_caps(<br>
> dc_link,<br>
> &dc_em_sink->dc_edid,<br>
> @@ -7057,18 +7056,12 @@ static int get_modes(struct drm_connector *connector)<br>
> static void create_eml_sink(struct amdgpu_dm_connector *aconnector)<br>
> {<br>
> struct drm_connector *connector = &aconnector->base;<br>
> - struct dc_link *dc_link = aconnector->dc_link;<br>
> struct dc_sink_init_data init_params = {<br>
> .link = aconnector->dc_link,<br>
> .sink_signal = SIGNAL_TYPE_VIRTUAL<br>
> };<br>
> - struct edid *edid;<br>
> - struct i2c_adapter *ddc;<br>
> -<br>
> - if (dc_link->aux_mode)<br>
> - ddc = &aconnector->dm_dp_aux.aux.ddc;<br>
> - else<br>
> - ddc = &aconnector->i2c->base;<br>
> + const struct drm_edid *drm_edid;<br>
> + const struct edid *edid;<br>
> <br>
> /*<br>
> * Note: drm_get_edid gets edid in the following order:<br>
> @@ -7076,17 +7069,19 @@ static void create_eml_sink(struct amdgpu_dm_connector *aconnector)<br>
> * 2) firmware EDID if set via edid_firmware module parameter<br>
> * 3) regular DDC read.<br>
> */<br>
> - edid = drm_get_edid(connector, ddc);<br>
<br>
drm_get_edid() is removed here, and thhe above comments should be <br>
removed as well.<br>
<br>
> - if (!edid) {<br>
> + drm_edid = drm_edid_read(connector);<br>
> + drm_edid_connector_update(connector, drm_edid);<br>
> + if (!drm_edid) {<br>
> DRM_ERROR("No EDID found on connector: %s.\n", connector->name);<br>
> return;<br>
> }<br>
> <br>
> - if (drm_detect_hdmi_monitor(edid))<br>
> + if (connector->display_info.is_hdmi)<br>
> init_params.sink_signal = SIGNAL_TYPE_HDMI_TYPE_A;<br>
> <br>
> - aconnector->edid = edid;<br>
> + aconnector->drm_edid = drm_edid;<br>
> <br>
> + edid = drm_edid_raw(drm_edid); // FIXME: Get rid of drm_edid_raw()<br>
> aconnector->dc_em_sink = dc_link_add_remote_sink(<br>
> aconnector->dc_link,<br>
> (uint8_t *)edid,<br>
> @@ -7770,16 +7765,16 @@ static void amdgpu_set_panel_orientation(struct drm_connector *connector)<br>
> }<br>
> <br>
> static void amdgpu_dm_connector_ddc_get_modes(struct drm_connector *connector,<br>
> - struct edid *edid)<br>
> + const struct drm_edid *drm_edid)<br>
> {<br>
> struct amdgpu_dm_connector *amdgpu_dm_connector =<br>
> to_amdgpu_dm_connector(connector);<br>
> <br>
> - if (edid) {<br>
> + if (drm_edid) {<br>
> /* empty probed_modes */<br>
> INIT_LIST_HEAD(&connector->probed_modes);<br>
> amdgpu_dm_connector->num_modes =<br>
> - drm_add_edid_modes(connector, edid);<br>
> + drm_edid_connector_add_modes(connector);<br>
> <br>
> /* sorting the probed modes before calling function<br>
> * amdgpu_dm_get_native_mode() since EDID can have<br>
> @@ -7793,10 +7788,10 @@ static void amdgpu_dm_connector_ddc_get_modes(struct drm_connector *connector,<br>
> amdgpu_dm_get_native_mode(connector);<br>
> <br>
> /* Freesync capabilities are reset by calling<br>
> - * drm_add_edid_modes() and need to be<br>
> + * drm_edid_connector_add_modes() and need to be<br>
> * restored here.<br>
> */<br>
> - amdgpu_dm_update_freesync_caps(connector, edid);<br>
> + amdgpu_dm_update_freesync_caps(connector, drm_edid);<br>
> } else {<br>
> amdgpu_dm_connector->num_modes = 0;<br>
> }<br>
> @@ -7892,12 +7887,12 @@ static uint add_fs_modes(struct amdgpu_dm_connector *aconnector)<br>
> }<br>
> <br>
> static void amdgpu_dm_connector_add_freesync_modes(struct drm_connector *connector,<br>
> - struct edid *edid)<br>
> + const struct drm_edid *drm_edid)<br>
> {<br>
> struct amdgpu_dm_connector *amdgpu_dm_connector =<br>
> to_amdgpu_dm_connector(connector);<br>
> <br>
> - if (!(amdgpu_freesync_vid_mode && edid))<br>
> + if (!(amdgpu_freesync_vid_mode && drm_edid))<br>
> return;<br>
> <br>
> if (amdgpu_dm_connector->max_vfreq - amdgpu_dm_connector->min_vfreq > 10)<br>
> @@ -7910,24 +7905,24 @@ static int amdgpu_dm_connector_get_modes(struct drm_connector *connector)<br>
> struct amdgpu_dm_connector *amdgpu_dm_connector =<br>
> to_amdgpu_dm_connector(connector);<br>
> struct drm_encoder *encoder;<br>
> - struct edid *edid = amdgpu_dm_connector->edid;<br>
> + const struct drm_edid *drm_edid = amdgpu_dm_connector->drm_edid;<br>
> struct dc_link_settings *verified_link_cap =<br>
> &amdgpu_dm_connector->dc_link->verified_link_cap;<br>
> const struct dc *dc = amdgpu_dm_connector->dc_link->dc;<br>
> <br>
> encoder = amdgpu_dm_connector_to_encoder(connector);<br>
> <br>
> - if (!drm_edid_is_valid(edid)) {<br>
> + if (!drm_edid) {<br>
> amdgpu_dm_connector->num_modes =<br>
> drm_add_modes_noedid(connector, 640, 480);<br>
> if (dc->link_srv->dp_get_encoding_format(verified_link_cap) == DP_128b_132b_ENCODING)<br>
> amdgpu_dm_connector->num_modes +=<br>
> drm_add_modes_noedid(connector, 1920, 1080);<br>
> } else {<br>
> - amdgpu_dm_connector_ddc_get_modes(connector, edid);<br>
> + amdgpu_dm_connector_ddc_get_modes(connector, drm_edid);<br>
> if (encoder)<br>
> amdgpu_dm_connector_add_common_modes(encoder, connector);<br>
> - amdgpu_dm_connector_add_freesync_modes(connector, edid);<br>
> + amdgpu_dm_connector_add_freesync_modes(connector, drm_edid);<br>
> }<br>
> amdgpu_dm_fbc_init(connector);<br>
> <br>
> @@ -11867,7 +11862,7 @@ static bool parse_edid_cea(struct amdgpu_dm_connector *aconnector,<br>
> }<br>
> <br>
> static void parse_edid_displayid_vrr(struct drm_connector *connector,<br>
> - struct edid *edid)<br>
> + const struct edid *edid)<br>
> {<br>
> u8 *edid_ext = NULL;<br>
> int i;<br>
> @@ -11910,7 +11905,7 @@ static void parse_edid_displayid_vrr(struct drm_connector *connector,<br>
> }<br>
> <br>
> static int parse_amd_vsdb(struct amdgpu_dm_connector *aconnector,<br>
> - struct edid *edid, struct amdgpu_hdmi_vsdb_info *vsdb_info)<br>
> + const struct edid *edid, struct amdgpu_hdmi_vsdb_info *vsdb_info)<br>
> {<br>
> u8 *edid_ext = NULL;<br>
> int i;<br>
> @@ -11945,7 +11940,8 @@ static int parse_amd_vsdb(struct amdgpu_dm_connector *aconnector,<br>
> }<br>
> <br>
> static int parse_hdmi_amd_vsdb(struct amdgpu_dm_connector *aconnector,<br>
> - struct edid *edid, struct amdgpu_hdmi_vsdb_info *vsdb_info)<br>
> + const struct edid *edid,<br>
> + struct amdgpu_hdmi_vsdb_info *vsdb_info)<br>
> {<br>
> u8 *edid_ext = NULL;<br>
> int i;<br>
> @@ -11987,19 +11983,19 @@ static int parse_hdmi_amd_vsdb(struct amdgpu_dm_connector *aconnector,<br>
> * FreeSync parameters.<br>
> */<br>
> void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,<br>
> - struct edid *edid)<br>
> + const struct drm_edid *drm_edid)<br>
> {<br>
> int i = 0;<br>
> - struct detailed_timing *timing;<br>
> - struct detailed_non_pixel *data;<br>
> - struct detailed_data_monitor_range *range;<br>
> + const struct detailed_timing *timing;<br>
> + const struct detailed_non_pixel *data;<br>
> + const struct detailed_data_monitor_range *range;<br>
> struct amdgpu_dm_connector *amdgpu_dm_connector =<br>
> to_amdgpu_dm_connector(connector);<br>
> struct dm_connector_state *dm_con_state = NULL;<br>
> struct dc_sink *sink;<br>
> -<br>
> struct amdgpu_device *adev = drm_to_adev(connector->dev);<br>
> struct amdgpu_hdmi_vsdb_info vsdb_info = {0};<br>
> + const struct edid *edid;<br>
> bool freesync_capable = false;<br>
> enum adaptive_sync_type as_type = ADAPTIVE_SYNC_TYPE_NONE;<br>
> <br>
> @@ -12012,7 +12008,7 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,<br>
> amdgpu_dm_connector->dc_sink :<br>
> amdgpu_dm_connector->dc_em_sink;<br>
> <br>
> - if (!edid || !sink) {<br>
> + if (!drm_edid || !sink) {<br>
> dm_con_state = to_dm_connector_state(connector->state);<br>
> <br>
> amdgpu_dm_connector->min_vfreq = 0;<br>
> @@ -12029,6 +12025,8 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,<br>
> if (!adev->dm.freesync_module)<br>
> goto update;<br>
> <br>
> + edid = drm_edid_raw(drm_edid); // FIXME: Get rid of drm_edid_raw()<br>
> +<br>
> /* Some eDP panels only have the refresh rate range info in DisplayID */<br>
> if ((connector->display_info.monitor_range.min_vfreq == 0 ||<br>
> connector->display_info.monitor_range.max_vfreq == 0))<br>
> @@ -12105,7 +12103,7 @@ void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,<br>
> amdgpu_dm_connector->as_type = ADAPTIVE_SYNC_TYPE_EDP;<br>
> }<br>
> <br>
> - } else if (edid && sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A) {<br>
> + } else if (drm_edid && sink->sink_signal == SIGNAL_TYPE_HDMI_TYPE_A) {<br>
> i = parse_hdmi_amd_vsdb(amdgpu_dm_connector, edid, &vsdb_info);<br>
> if (i >= 0 && vsdb_info.freesync_supported) {<br>
> amdgpu_dm_connector->min_vfreq = vsdb_info.min_refresh_rate_hz;<br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h<br>
> index 5fd1b6b44577..2aff4c4b76de 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h<br>
> @@ -658,7 +658,7 @@ struct amdgpu_dm_connector {<br>
> <br>
> /* we need to mind the EDID between detect<br>
> and get modes due to analog/digital/tvencoder */<br>
> - struct edid *edid;<br>
> + const struct drm_edid *drm_edid;<br>
> <br>
> /* shared with amdgpu */<br>
> struct amdgpu_hpd hpd;<br>
> @@ -936,7 +936,7 @@ void dm_restore_drm_connector_state(struct drm_device *dev,<br>
> struct drm_connector *connector);<br>
> <br>
> void amdgpu_dm_update_freesync_caps(struct drm_connector *connector,<br>
> - struct edid *edid);<br>
> + const struct drm_edid *drm_edid);<br>
> <br>
> void amdgpu_dm_trigger_timing_sync(struct drm_device *dev);<br>
> <br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c<br>
> index b490ae67b6be..be72f14f5429 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c<br>
> @@ -897,7 +897,8 @@ enum dc_edid_status dm_helpers_read_local_edid(<br>
> struct i2c_adapter *ddc;<br>
> int retry = 3;<br>
> enum dc_edid_status edid_status;<br>
> - struct edid *edid;<br>
> + const struct drm_edid *drm_edid;<br>
> + const struct edid *edid;<br>
> <br>
> if (link->aux_mode)<br>
> ddc = &aconnector->dm_dp_aux.aux.ddc;<br>
> @@ -909,25 +910,27 @@ enum dc_edid_status dm_helpers_read_local_edid(<br>
> */<br>
> do {<br>
> <br>
> - edid = drm_get_edid(&aconnector->base, ddc);<br>
> + drm_edid = drm_edid_read_ddc(connector, ddc);<br>
> + drm_edid_connector_update(connector, drm_edid);<br>
> <br>
> /* DP Compliance Test 4.2.2.6 */<br>
> if (link->aux_mode && connector->edid_corrupt)<br>
> drm_dp_send_real_edid_checksum(&aconnector->dm_dp_aux.aux, connector->real_edid_checksum);<br>
> <br>
> - if (!edid && connector->edid_corrupt) {<br>
> + if (!drm_edid && connector->edid_corrupt) {<br>
> connector->edid_corrupt = false;<br>
> return EDID_BAD_CHECKSUM;<br>
> }<br>
> <br>
> - if (!edid)<br>
> + if (!drm_edid)<br>
> return EDID_NO_RESPONSE;<br>
> <br>
> + edid = drm_edid_raw(drm_edid); // FIXME: Get rid of drm_edid_raw()<br>
> sink->dc_edid.length = EDID_LENGTH * (edid->extensions + 1);<br>
> memmove(sink->dc_edid.raw_edid, (uint8_t *)edid, sink->dc_edid.length);<br>
> <br>
> /* We don't need the original edid anymore */<br>
> - kfree(edid);<br>
> + drm_edid_free(drm_edid);<br>
> <br>
> edid_status = dm_helpers_parse_edid_caps(<br>
> link,<br>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c<br>
> index 5442da90f508..b0d307e5dd72 100644<br>
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c<br>
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c<br>
> @@ -129,7 +129,7 @@ dm_dp_mst_connector_destroy(struct drm_connector *connector)<br>
> dc_sink_release(aconnector->dc_sink);<br>
> }<br>
> <br>
> - kfree(aconnector->edid);<br>
> + drm_edid_free(aconnector->drm_edid);<br>
> <br>
> drm_connector_cleanup(connector);<br>
> drm_dp_mst_put_port_malloc(aconnector->mst_output_port);<br>
> @@ -182,7 +182,7 @@ amdgpu_dm_mst_connector_early_unregister(struct drm_connector *connector)<br>
> <br>
> dc_sink_release(dc_sink);<br>
> aconnector->dc_sink = NULL;<br>
> - aconnector->edid = NULL;<br>
> + aconnector->drm_edid = NULL;<br>
> aconnector->dsc_aux = NULL;<br>
> port->passthrough_aux = NULL;<br>
> }<br>
> @@ -302,16 +302,16 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)<br>
> if (!aconnector)<br>
> return drm_add_edid_modes(connector, NULL);<br>
> <br>
> - if (!aconnector->edid) {<br>
> - struct edid *edid;<br>
> + if (!aconnector->drm_edid) {<br>
> + const struct drm_edid *drm_edid;<br>
> <br>
> - edid = drm_dp_mst_get_edid(connector, &aconnector->mst_root->mst_mgr, aconnector->mst_output_port);<br>
> + drm_edid = drm_dp_mst_edid_read(connector, &aconnector->mst_root->mst_mgr, aconnector->mst_output_port);<br>
> <br>
> - if (!edid) {<br>
> + if (!drm_edid) {<br>
> amdgpu_dm_set_mst_status(&aconnector->mst_status,<br>
> MST_REMOTE_EDID, false);<br>
> <br>
> - drm_connector_update_edid_property(<br>
> + drm_edid_connector_update(<br>
> &aconnector->base,<br>
> NULL);<br>
> <br>
> @@ -345,7 +345,7 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)<br>
> return ret;<br>
> }<br>
> <br>
> - aconnector->edid = edid;<br>
> + aconnector->drm_edid = drm_edid;<br>
> amdgpu_dm_set_mst_status(&aconnector->mst_status,<br>
> MST_REMOTE_EDID, true);<br>
> }<br>
> @@ -360,10 +360,13 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)<br>
> struct dc_sink_init_data init_params = {<br>
> .link = aconnector->dc_link,<br>
> .sink_signal = SIGNAL_TYPE_DISPLAY_PORT_MST };<br>
> + const struct edid *edid;<br>
> +<br>
> + edid = drm_edid_raw(aconnector->drm_edid); // FIXME: Get rid of drm_edid_raw()<br>
> dc_sink = dc_link_add_remote_sink(<br>
> aconnector->dc_link,<br>
> - (uint8_t *)aconnector->edid,<br>
> - (aconnector->edid->extensions + 1) * EDID_LENGTH,<br>
> + (uint8_t *)edid,<br>
> + (edid->extensions + 1) * EDID_LENGTH,<br>
> &init_params);<br>
> <br>
> if (!dc_sink) {<br>
> @@ -405,7 +408,7 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)<br>
> <br>
> if (aconnector->dc_sink) {<br>
> amdgpu_dm_update_freesync_caps(<br>
> - connector, aconnector->edid);<br>
> + connector, aconnector->drm_edid);<br>
> <br>
> #if defined(CONFIG_DRM_AMD_DC_FP)<br>
> if (!validate_dsc_caps_on_connector(aconnector))<br>
> @@ -419,10 +422,9 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)<br>
> }<br>
> }<br>
> <br>
> - drm_connector_update_edid_property(<br>
> - &aconnector->base, aconnector->edid);<br>
> + drm_edid_connector_update(&aconnector->base, aconnector->drm_edid);<br>
> <br>
> - ret = drm_add_edid_modes(connector, aconnector->edid);<br>
> + ret = drm_edid_connector_add_modes(connector);<br>
> <br>
> return ret;<br>
> }<br>
> @@ -500,7 +502,7 @@ dm_dp_mst_detect(struct drm_connector *connector,<br>
> <br>
> dc_sink_release(aconnector->dc_sink);<br>
> aconnector->dc_sink = NULL;<br>
> - aconnector->edid = NULL;<br>
> + aconnector->drm_edid = NULL;<br>
> aconnector->dsc_aux = NULL;<br>
> port->passthrough_aux = NULL;<br>
> <br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
<br>
<br>
------------------------------<br>
<br>
End of amd-gfx Digest, Vol 98, Issue 341<br>
****************************************<br>
</div>
</span></font></div>
</div>
</body>
</html>