Skip to contentSkip to conversation

drm: Remove misleading paragraph from drm_vblank_pre_modeset kerneldoc comment

PATCH In review Michel Dänzer 2 participants 2 messages May 26, 2015

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

PATCH 1/1 drm: Remove misleading paragraph from drm_vblank_pre_modeset kerneldoc comment

From: Michel Dänzer <[email protected]>

drm_vblank_pre/post_modeset work fine for the radeon driver even though it uses hardware counters, including suspend/resume.

---
 drivers/gpu/drm/drm_irq.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/drm_irq.c +0 -7
index f9634da..0dcd73d 100644
@@ -1346,13 +1346,6 @@ EXPORT_SYMBOL(drm_crtc_vblank_on);
  * software-side vblank frame counting will ensure that there are no jumps or
  * discontinuities.
  *
- * Unfortunately this approach is racy and also doesn't work when the vblank
- * interrupt stops running, e.g. across system suspend resume. It is therefore
- * highly recommended that drivers use the newer drm_vblank_off() and
- * drm_vblank_on() instead. drm_vblank_pre_modeset() only works correctly when
- * using "cooked" software vblank frame counters and not relying on any hardware
- * counters.
- *
  * Drivers must call drm_vblank_post_modeset() when re-enabling the same crtc
  * again.
  */
Signature · 6 lines
2.1.4

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Michel Dänzer

From: Michel Dänzer <[email protected]>

drm_vblank_pre/post_modeset work fine for the radeon driver even though it uses hardware counters, including suspend/resume.

Quoted 25 lines
---
 drivers/gpu/drm/drm_irq.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/drm_irq.c +0 -8
index f9634da..0dcd73d 100644
@@ -1346,13 +1346,6 @@ EXPORT_SYMBOL(drm_crtc_vblank_on);
  * software-side vblank frame counting will ensure that there are no jumps or
  * discontinuities.
  *
- * Unfortunately this approach is racy and also doesn't work when the vblank
- * interrupt stops running, e.g. across system suspend resume. It is therefore
- * highly recommended that drivers use the newer drm_vblank_off() and
- * drm_vblank_on() instead. drm_vblank_pre_modeset() only works correctly when
- * using "cooked" software vblank frame counters and not relying on any hardware
- * counters.
- *
  * Drivers must call drm_vblank_post_modeset() when re-enabling the same crtc
  * again.
  */
--

2.1.4

Quoted 4 lines

_______________________________________________
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