[PATCH] drm/amd/display: Avoid sending abnormal VSIF
Kazlauskas, Nicholas
Nicholas.Kazlauskas at amd.com
Thu Oct 17 12:45:40 UTC 2019
On 2019-10-17 5:11 a.m., Wayne Lin wrote:
> [Why]
> While setting hdmi_vic, hv_frame.vic is not initialized and might
> assign a wrong value to hdmi_vic. Cause to send out VSIF with
> abnormal value.
>
> [How]
> Initialize hv_frame and avi_frame
>
> Signed-off-by: Wayne Lin <Wayne.Lin at amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas at amd.com>
Thanks!
> ---
> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +++
> 1 file changed, 3 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 10cce584719f..33a455c90e27 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -3472,6 +3472,9 @@ static void fill_stream_properties_from_drm_display_mode(
> struct hdmi_vendor_infoframe hv_frame;
> struct hdmi_avi_infoframe avi_frame;
>
> + memset(&hv_frame, 0, sizeof(hv_frame));
> + memset(&avi_frame, 0, sizeof(avi_frame));
> +
> timing_out->h_border_left = 0;
> timing_out->h_border_right = 0;
> timing_out->v_border_top = 0;
>
More information about the amd-gfx
mailing list