[PATCH v1] drm: exynos: fix for loosing display mode header during mode adjustment

Inki Dae inki.dae at samsung.com
Tue Nov 20 19:53:02 PST 2012


Applied.

Thanks,
Inki Dae

2012/11/20 Rahul Sharma <rahul.sharma at samsung.com>

> This patch is to preserve the display mode header during the mode
> adjustment.
> Display mode header is overwritten with the adjusted mode header which is
> throwing the stack dump.
>
> Signed-off-by: Rahul Sharma <rahul.sharma at samsung.com>
> ---
>  drivers/gpu/drm/exynos/exynos_hdmi.c |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c
> b/drivers/gpu/drm/exynos/exynos_hdmi.c
> index 2c115f8..be7b676 100644
> --- a/drivers/gpu/drm/exynos/exynos_hdmi.c
> +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
> @@ -1978,9 +1978,18 @@ static void hdmi_mode_fixup(void *ctx, struct
> drm_connector *connector,
>                         index = hdmi_v14_conf_index(m);
>
>                 if (index >= 0) {
> +                       struct drm_mode_object base;
> +                       struct list_head head;
> +
>                         DRM_INFO("desired mode doesn't exist so\n");
>                         DRM_INFO("use the most suitable mode among
> modes.\n");
> +
> +                       /* preserve display mode header while copying. */
> +                       head = adjusted_mode->head;
> +                       base = adjusted_mode->base;
>                         memcpy(adjusted_mode, m, sizeof(*m));
> +                       adjusted_mode->head = head;
> +                       adjusted_mode->base = base;
>                         break;
>                 }
>         }
> --
> 1.7.0.4
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121121/ec2be6aa/attachment.html>


More information about the dri-devel mailing list