Skip to contentSkip to conversation

drm/modes: do not enforce an odd vtotal for interlaced modes

PATCH In review Daniel Vetter 3 participants 3 messages Jan 27, 2012 – Feb 6, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/modes: do not enforce an odd vtotal for interlaced modes

CEA actually specifies an interlaced mode with even vtotal and supplies a diagram showing how this is supposed to work.

Note that interlaced modes with an even vtotal seem to be a fairly recent invention. All modelines lore I could dig up with googling says that vtotal for interlaced modes _needs_ to be odd. But the even modelines in CEA are not a spec-bug, there's a figure in CEA-861-E called "Figure 5 Special Interlaced Video Format Timing (Even Vtotal)" that explains how it's supposed to work. Furthermore intel Bspec explicitly mentions that both odd and even interlaced vtotal are supported (VTOTAL register in the south display engine of PCH split chips).

---
 drivers/gpu/drm/drm_modes.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_modes.c +0 -2
index fb8e46b..7ff13bc 100644
@@ -686,8 +686,6 @@ void drm_mode_set_crtcinfo(struct drm_display_mode *p, int adjust_flags)
 			p->crtc_vsync_end /= 2;
 			p->crtc_vtotal /= 2;
 		}
-
-		p->crtc_vtotal |= 1;
 	}
 
 	if (p->flags & DRM_MODE_FLAG_DBLSCAN) {
Signature · 1 line
1.7.7.5
maintainer
#1 lore raw
Quoted 13 lines · Daniel Vetter

CEA actually specifies an interlaced mode with even vtotal and supplies a diagram showing how this is supposed to work.

Note that interlaced modes with an even vtotal seem to be a fairly recent invention. All modelines lore I could dig up with googling says that vtotal for interlaced modes _needs_ to be odd. But the even modelines in CEA are not a spec-bug, there's a figure in CEA-861-E called "Figure 5 Special Interlaced Video Format Timing (Even Vtotal)" that explains how it's supposed to work. Furthermore intel Bspec explicitly mentions that both odd and even interlaced vtotal are supported (VTOTAL register in the south display engine of PCH split chips).

Quoted 3 lines

---

Ajax? I'd like your ack/review on this.

Thanks,
Dave.

#2 lore raw
Quoted 14 lines · Dave Airlie
Quoted 13 lines · Daniel Vetter

CEA actually specifies an interlaced mode with even vtotal and supplies a diagram showing how this is supposed to work.

Note that interlaced modes with an even vtotal seem to be a fairly recent invention. All modelines lore I could dig up with googling says that vtotal for interlaced modes _needs_ to be odd. But the even modelines in CEA are not a spec-bug, there's a figure in CEA-861-E called "Figure 5 Special Interlaced Video Format Timing (Even Vtotal)" that explains how it's supposed to work. Furthermore intel Bspec explicitly mentions that both odd and even interlaced vtotal are supported (VTOTAL register in the south display engine of PCH split chips).

Quoted 5 lines
Quoted 3 lines

---

Ajax? I'd like your ack/review on this.

That |= 1 logic was just slavishy copied from the server's RANDR code, which afaict slavishly copied it from xfree86 4, and I think even that was copypasta from xfree86 3. I don't know what it was ever meant to do.

- ajax