Use no_vblank property for drivers without VBLANK
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest15 patches 1 replyIn review
- v415 patches 8 repliesSuperseded
- v34 patches 7 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 2/2 | 4 patches | 8 replies | Superseded | |
| v2 posting 1/2 | 4 patches | 0 replies | Superseded |
Changes in v5 from the cover letter
* documentation updates in DRM core and xen (Daniel, Emil, Oleksandr)
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | drm: Initialize struct drm_crtc_state.no_vblank from device settingsdrivers/ drivers/ include/ +2 more | +70 | 0 replies | |
| 2/15 | drm/arc: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 3/15 | drm/ast: Don't set struct drm_crtc_state.no_vblank explictlydrivers/ | +0 | 0 replies | |
| 4/15 | drm/bochs: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 5/15 | drm/cirrus: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 6/15 | drm/gm12u320: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 7/15 | drm/ili9225: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 8/15 | drm/mipi-dbi: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 9/15 | drm/qxl: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 10/15 | drm/repaper: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 11/15 | drm/st7586: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 12/15 | drm/udl: Don't set struct drm_crtc_state.no_vblank explictlydrivers/ | +0 | 0 replies | |
| 13/15 | drm/vboxvideo: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 14/15 | drm/virtio: Remove sending of vblank eventdrivers/ | +0 | 0 replies | |
| 15/15 | drm/xen: Explicitly disable automatic sending of vblank eventdrivers/ | +19 | 1 reply |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | Gerd Hoffmann | Daniel Vetter | Oleksandr Andrushchenko |
|---|---|---|---|
| 1/15 | A-b | R-b | |
| 2/15 | A-b | R-b | |
| 3/15 | A-b | R-b | |
| 4/15 | A-b | R-b | |
| 5/15 | A-b | R-b | |
| 6/15 | A-b | R-b | |
| 7/15 | A-b | R-b | |
| 8/15 | A-b | R-b | |
| 9/15 | A-b | R-b | |
| 10/15 | A-b | R-b | |
| 11/15 | A-b | R-b | |
| 12/15 | A-b | R-b | |
| 13/15 | A-b | R-b | |
| 14/15 | A-b | R-b | |
| 15/15 | A-b | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v5 00/15] Use no_vblank property for drivers without VBLANK
Instead of faking VBLANK events by themselves, drivers without VBLANK support can enable drm_crtc_vblank.no_vblank and let DRM do the rest. The patchset makes this official and converts over drivers.
The current implementation looks at state of a device wrt vblanking. If vblanking has been initialized for the device, the driver is responsible for sending out VBLANK events. Otherwise, DRM will send out the event. The behaviour is selected by initializing no_vblank as part of drm_atomic_helper_check_modeset().
I went through all drivers, looking for those that call send out VBLANK events but do not call drm_vblank_init(). These are converted to the new semantics. This affects tiny drivers; drivers for virtual hardware; and a few others, which do not support interrupts. Xen comes with its own VBLANK logic and now disables no_vblank explicitly.
v5:
* documentation updates in DRM core and xen (Daniel, Emil, Oleksandr)
v4:
* replaced drm_crtc_has_vblank() with drm_dev_has_vblank() (Daniel)
* squashed patches 1 and 2
* moved driver updates into separate patches
v3:
* reorder and squash patches
* set no_vblank in drm_atomic_helper_check_modeset() for *all* drivers (Daniel)
* convert all drivers to new semnatics as necessary
v2:
* document functionality (Daniel)
* cleanup ast (Daniel)
* let simple-kms handle no_vblank where possible
Thomas Zimmermann (15):
drm: Initialize struct drm_crtc_state.no_vblank from device settings drm/arc: Remove sending of vblank event
drm/ast: Don't set struct drm_crtc_state.no_vblank explictly drm/bochs: Remove sending of vblank event
drm/cirrus: Remove sending of vblank event
drm/gm12u320: Remove sending of vblank event
drm/ili9225: Remove sending of vblank event
drm/mipi-dbi: Remove sending of vblank event
drm/qxl: Remove sending of vblank event
drm/repaper: Remove sending of vblank event
drm/st7586: Remove sending of vblank event
drm/udl: Don't set struct drm_crtc_state.no_vblank explictly drm/vboxvideo: Remove sending of vblank event
drm/virtio: Remove sending of vblank event
drm/xen: Explicitly disable automatic sending of vblank event
drivers/gpu/drm/arc/arcpgu_crtc.c | 16 ----------- drivers/gpu/drm/ast/ast_mode.c | 2 -- drivers/gpu/drm/bochs/bochs_kms.c | 9 ------- drivers/gpu/drm/cirrus/cirrus.c | 8 ------ drivers/gpu/drm/drm_atomic_helper.c | 10 ++++++- drivers/gpu/drm/drm_mipi_dbi.c | 9 ------- drivers/gpu/drm/drm_vblank.c | 28 +++++++++++++++++++ drivers/gpu/drm/qxl/qxl_display.c | 14 ---------- drivers/gpu/drm/tiny/gm12u320.c | 9 ------- drivers/gpu/drm/tiny/ili9225.c | 9 ------- drivers/gpu/drm/tiny/repaper.c | 9 ------- drivers/gpu/drm/tiny/st7586.c | 9 ------- drivers/gpu/drm/udl/udl_modeset.c | 11 -------- drivers/gpu/drm/vboxvideo/vbox_mode.c | 12 --------- drivers/gpu/drm/virtio/virtgpu_display.c | 8 ------ drivers/gpu/drm/xen/xen_drm_front_kms.c | 19 +++++++++++++ include/drm/drm_crtc.h | 34 +++++++++++++++++++----- include/drm/drm_simple_kms_helper.h | 7 +++-- include/drm/drm_vblank.h | 1 + 19 files changed, 89 insertions(+), 135 deletions(-)
--
2.25.0