drm/edid: Don't pretend (badly) to support composite sync
Subsystems (2)
PATCH 1/1 drm/edid: Don't pretend (badly) to support composite sync
If hardware does require composite sync for a mode, it's out of luck with current drivers, since none support that. Just skip the mode instead, there'll be others in the EDID. (Unless there's not, in which case, failing is correct anyway.)
While we're at it, hush the other mode support messages behind DRM_DEBUG_KMS, they're too chatty for normal dmesg.
--- drivers/gpu/drm/drm_edid.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_edid.c +3 -2
@@ -849,11 +849,12 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,return NULL ;if (pt->misc &DRM_EDID_PT_STEREO ) { -printk (KERN_WARNING "stereo mode not supported\n" ); +DRM_DEBUG_KMS ("stereo mode not supported\n" );return NULL ; }if (!(pt->misc &DRM_EDID_PT_SEPARATE_SYNC )) { -printk (KERN_WARNING "composite sync not supported\n" ); +DRM_DEBUG_KMS ("composite sync not supported\n" ); +return NULL ; }/* it is incorrect if hsync/vsync width is zero */
Signature · 1 line
1.7.6
Quoted 4 lines · Adam Jackson
If hardware does require composite sync for a mode, it's out of luck with current drivers, since none support that. Just skip the mode instead, there'll be others in the EDID. (Unless there's not, in which case, failing is correct anyway.)
In theory radeon supports it, but I've never tried it.
Alex
Quoted 36 lines
While we're at it, hush the other mode support messages behind
DRM_DEBUG_KMS, they're too chatty for normal dmesg.Signed-off-by Adam Jackson <[email protected]>---
drivers/gpu/drm/drm_edid.c | 5 +++--1 files changed, 3 insertions(+), 2 deletions(-)drivers/gpu/drm/drm_edid.c +3
-3@@ -849,11 +849,12 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, return NULL; if (pt->misc & DRM_EDID_PT_STEREO) { - printk(KERN_WARNING "stereo mode not supported\n"); + DRM_DEBUG_KMS("stereo mode not supported\n"); return NULL; } if (!(pt->misc & DRM_EDID_PT_SEPARATE_SYNC)) { - printk(KERN_WARNING "composite sync not supported\n"); + DRM_DEBUG_KMS("composite sync not supported\n"); + return NULL; } /* it is incorrect if hsync/vsync width is zero */ --1.7.6
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Alex Deucher
Quoted 4 lines · Adam Jackson
If hardware does require composite sync for a mode, it's out of luck with current drivers, since none support that. Just skip the mode instead, there'll be others in the EDID. (Unless there's not, in which case, failing is correct anyway.)
In theory radeon supports it, but I've never tried it.
Nod.
I suppose the right right thing to do here is create any mode the device happens to define, and then filter out later same as we do for interlace and doublescan. I'm happy to write that too, but I think this patch is still better than before.
- ajax
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel