drm: exynos: fix for loosing display mode header during mode adjustment
Subsystems (3)
PATCH 1/1 drm: exynos: fix for loosing display mode header during mode adjustment
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.
--- drivers/gpu/drm/exynos/exynos_hdmi.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +9 -0
@@ -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 ; } }
Signature · 1 line
1.7.0.4
Applied.
Thanks,
Inki Dae
2012/11/20 Rahul Sharma <[email protected]>
Quoted 36 lines
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 <[email protected]>--- drivers/gpu/drm/exynos/exynos_hdmi.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)drivers/gpu/drm/exynos/exynos_hdmi.c +9
-0@@ -1978,9 +1978,18 @@ static void hdmi_mode_fixup(void *ctx, structdrm_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 ;} }
Quoted 8 lines
--
1.7.0.4_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel