[PATCH] drm/amd/display: explicitly set is_dsc_supported to false before use
Alex Deucher
alexdeucher at gmail.com
Thu Jan 6 21:40:24 UTC 2022
Acked-by: Alex Deucher <alexander.deucher at amd.com>
On Thu, Jan 6, 2022 at 8:40 AM Mario Limonciello
<mario.limonciello at amd.com> wrote:
>
> When UBSAN is enabled a case is shown on unplugging the display that
> this variable hasn't been initialized by `update_dsc_caps`, presumably
> when the display was unplugged it wasn't copied from the DPCD.
>
> Link: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956497
> Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> 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 5d20807b6f88..3d81314e6cb4 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -6093,6 +6093,7 @@ static void update_dsc_caps(struct amdgpu_dm_connector *aconnector,
> struct dsc_dec_dpcd_caps *dsc_caps)
> {
> stream->timing.flags.DSC = 0;
> + dsc_caps->is_dsc_supported = false;
>
> if (aconnector->dc_link && (sink->sink_signal == SIGNAL_TYPE_DISPLAY_PORT ||
> sink->sink_signal == SIGNAL_TYPE_EDP)) {
> --
> 2.25.1
>
More information about the amd-gfx
mailing list