Message ID | 20200120122051.25178-1-tzimmermann@suse.de (mailing list archive) |
---|---|
Headers | show |
Series | Use no_vblank property for drivers without VBLANK | expand |
On Mon, Jan 20, 2020 at 01:20:47PM +0100, Thomas Zimmermann wrote: > 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 the number of initialized CRTCs > wrt vblanking. If vblanking has been initialized for a CRTC, the driver > is responsible for sending out VBLANK events. Otherwise, DRM will send > out the event. The behaviour 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 disables no_vblank explictly. Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Hi Am 21.01.20 um 10:36 schrieb Gerd Hoffmann: > On Mon, Jan 20, 2020 at 01:20:47PM +0100, Thomas Zimmermann wrote: >> 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 the number of initialized CRTCs >> wrt vblanking. If vblanking has been initialized for a CRTC, the driver >> is responsible for sending out VBLANK events. Otherwise, DRM will send >> out the event. The behaviour 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 disables no_vblank explictly. > > Acked-by: Gerd Hoffmann <kraxel@redhat.com> Thanks a lot. v4 will mostly reorganize the patches so I'll keep your A-b. Best regards Thomas > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >