drm/modes: Fix CVT-R modeline generation
Subsystems (2)
PATCH 1/1 drm/modes: Fix CVT-R modeline generation
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16651
--- drivers/gpu/drm/drm_modes.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
drivers/gpu/drm/drm_modes.c +4 -1
@@ -251,7 +251,10 @@ struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, drm_mode->htotal = drm_mode->hdisplay +CVT_RB_H_BLANK ;/* Fill in HSync values */ drm_mode->hsync_end = drm_mode->hdisplay +CVT_RB_H_BLANK /2 ; - drm_mode->hsync_start = drm_mode->hsync_end =CVT_RB_H_SYNC ; + drm_mode->hsync_start = drm_mode->hsync_end -CVT_RB_H_SYNC ; +/* Fill in VSync values */ + drm_mode->vsync_start = drm_mode->vdisplay +CVT_RB_VFPORCH ; + drm_mode->vsync_end = drm_mode->vsync_start + vsync; }/* 15/13. Find pixel clock frequency (kHz for xf86) */ drm_mode->clock = drm_mode->htotal *HV_FACTOR *1000 / hperiod;
Signature · 1 line
1.7.2.1
Quoted 3 lines · Adam Jackson
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16651
Signed-off-by Adam Jackson <[email protected]>
- ajax
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Am Montag, den 23.08.2010, 10:19 -0400 schrieb Adam Jackson:
Quoted 13 lines
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=16651
Signed-off-by Adam Jackson <[email protected]>--- drivers/gpu/drm/drm_modes.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)drivers/gpu/drm/drm_modes.c +0
-0@@ -251,7 +251,10 @@ struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, drm_mode->htotal = drm_mode->hdisplay +CVT_RB_H_BLANK ;
drivers/gpu/drm/drm_modes.c struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, · line 260
Quoted 10 lines
drivers/gpu/drm/drm_modes.c +4
-1/* Fill in HSync values */ drm_mode->hsync_end = drm_mode->hdisplay +CVT_RB_H_BLANK /2 ; - drm_mode->hsync_start = drm_mode->hsync_end =CVT_RB_H_SYNC ; + drm_mode->hsync_start = drm_mode->hsync_end -CVT_RB_H_SYNC ; +/* Fill in VSync values */ + drm_mode->vsync_start = drm_mode->vdisplay +CVT_RB_VFPORCH ; + drm_mode->vsync_end = drm_mode->vsync_start + vsync; }/* 15/13. Find pixel clock frequency (kHz for xf86) */ drm_mode->clock = drm_mode->htotal *HV_FACTOR *1000 / hperiod;
Do you know if that was an regression in libdrm and if that patch might also fix #26294 [1]? DebPkg:libdrm2 was upgraded during that time from 2.4.14 too.
Unfortunately I do not know how to rebuild that package with the patch applied and to test it. If you know a live CD having this patch applied I could test it though.
Thanks,
Paul
[1] http://bugs.freedesktop.org/show_bug.cgi?id=26294
[2] http://packages.debian.org/changelogs/pool/main/libd/libdrm/libdrm_2.4.21-1~squeeze2/changelog
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Paul Menzel
Am Montag, den 23.08.2010, 10:19 -0400 schrieb Adam Jackson:
Quoted 10 lines
drivers/gpu/drm/drm_modes.c +1
-1@@ -251,7 +251,10 @@ struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, drm_mode->htotal = drm_mode->hdisplay +CVT_RB_H_BLANK ;/* Fill in HSync values */ drm_mode->hsync_end = drm_mode->hdisplay +CVT_RB_H_BLANK /2 ; - drm_mode->hsync_start = drm_mode->hsync_end =CVT_RB_H_SYNC ; + drm_mode->hsync_start = drm_mode->hsync_end -CVT_RB_H_SYNC ;
Quoted 8 lines
drivers/gpu/drm/drm_modes.c struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay, · line 260
Quoted 6 lines
drivers/gpu/drm/drm_modes.c +3
-0+/* Fill in VSync values */ + drm_mode->vsync_start = drm_mode->vdisplay +CVT_RB_VFPORCH ; + drm_mode->vsync_end = drm_mode->vsync_start + vsync; }/* 15/13. Find pixel clock frequency (kHz for xf86) */ drm_mode->clock = drm_mode->htotal *HV_FACTOR *1000 / hperiod;Do you know if that was an regression in libdrm
Well it's a change to a kernel source file, so, no.
Quoted 3 lines
and if that patch might
also fix #26294 [1]? DebPkg:libdrm2 was upgraded during that time from 2.4.14 too.
It might.
- ajax
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel