search for: drm_vblank_work_cancel

Displaying 13 results from an estimated 13 matches for "drm_vblank_work_cancel".

2020 Mar 18
4
[PATCH 1/9] drm/vblank: Add vblank works
...+ case DRM_VBL_WORK_WAITING: > + drm_vblank_put(vblank->dev, vblank->pipe); > + /* fall through */ > + case DRM_VBL_WORK_SCHEDULED: > + list_del_init(&work->list); > + work->state = DRM_VBL_WORK_IDLE; > + return true; > + } > +} > + > +/** > + * drm_vblank_work_cancel - cancel a vblank work > + * @work: vblank work to cancel > + * > + * Cancel an already scheduled vblank work. > + * > + * On return @work may still be executing, unless the return > + * value is %true. > + * > + * Returns: > + * True if the work was cancelled before it s...
2020 May 08
0
[RFC v4 04/12] drm/vblank: Add vblank works
...work *pos, *tmp; + + if (list_empty(&work->pending)) + return false; + + list_for_each_entry_safe(pos, tmp, &work->flush_work, work.node) + complete(&pos->done); + + list_del_init(&work->pending); + INIT_LIST_HEAD(&work->flush_work); + return true; +} + +/** + * drm_vblank_work_cancel - cancel a vblank work + * @work: vblank work to cancel + * + * Cancel an already scheduled vblank work. + * + * On return @work may still be executing, unless the return + * value is %true. + * + * Returns: + * True if the work was cancelled before it started to excute, false otherwise. + */ +bool...
2020 Mar 18
0
[PATCH 1/9] drm/vblank: Add vblank works
...+ default: + case DRM_VBL_WORK_IDLE: + return false; + case DRM_VBL_WORK_WAITING: + drm_vblank_put(vblank->dev, vblank->pipe); + /* fall through */ + case DRM_VBL_WORK_SCHEDULED: + list_del_init(&work->list); + work->state = DRM_VBL_WORK_IDLE; + return true; + } +} + +/** + * drm_vblank_work_cancel - cancel a vblank work + * @work: vblank work to cancel + * + * Cancel an already scheduled vblank work. + * + * On return @work may still be executing, unless the return + * value is %true. + * + * Returns: + * True if the work was cancelled before it started to excute, false otherwise. + */ +bool...
2020 Mar 27
2
[PATCH 1/9] drm/vblank: Add vblank works
...+ /* fall through */ > > > + case DRM_VBL_WORK_SCHEDULED: > > > + list_del_init(&work->list); > > > + work->state = DRM_VBL_WORK_IDLE; > > > + return true; > > > + } > > > +} > > > + > > > +/** > > > + * drm_vblank_work_cancel - cancel a vblank work > > > + * @work: vblank work to cancel > > > + * > > > + * Cancel an already scheduled vblank work. > > > + * > > > + * On return @work may still be executing, unless the return > > > + * value is %true. > > > + *...
2020 Mar 27
0
[PATCH 1/9] drm/vblank: Add vblank works
...t(vblank->dev, vblank->pipe); > > + /* fall through */ > > + case DRM_VBL_WORK_SCHEDULED: > > + list_del_init(&work->list); > > + work->state = DRM_VBL_WORK_IDLE; > > + return true; > > + } > > +} > > + > > +/** > > + * drm_vblank_work_cancel - cancel a vblank work > > + * @work: vblank work to cancel > > + * > > + * Cancel an already scheduled vblank work. > > + * > > + * On return @work may still be executing, unless the return > > + * value is %true. > > + * > > + * Returns: > > +...
2020 Apr 13
0
[PATCH 1/9] drm/vblank: Add vblank works
...case DRM_VBL_WORK_SCHEDULED: > > > > + list_del_init(&work->list); > > > > + work->state = DRM_VBL_WORK_IDLE; > > > > + return true; > > > > + } > > > > +} > > > > + > > > > +/** > > > > + * drm_vblank_work_cancel - cancel a vblank work > > > > + * @work: vblank work to cancel > > > > + * > > > > + * Cancel an already scheduled vblank work. > > > > + * > > > > + * On return @work may still be executing, unless the return > > > > + * valu...
2020 Jun 22
0
[RFC v5 02/10] drm/vblank: Add vblank works
...ignoff later] Changes since v4: * Get rid of kthread interfaces we tried adding and move all of the locking into drm_vblank.c. For implementing drm_vblank_work_flush(), we now use a wait_queue and sequence counters in order to differentiate between multiple work item executions. * Get rid of drm_vblank_work_cancel() - this would have been pretty difficult to actually reimplement and it occurred to me that neither nouveau or i915 are even planning to use this function. Since there's also no async cancel function for most of the work interfaces in the kernel, it seems a bit unnecessary anyway. * Ge...
2020 Mar 18
12
[PATCH 0/9] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests that we'll be sending in just a short bit. This additionally adds a feature that Ville Syrj?l? came up with: vblank works. Basically, this is just a generic DRM
2020 May 08
16
[RFC v4 00/12] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Jun 24
0
[RFC v7 03/11] drm/vblank: Add vblank works
...()/drm_crtc_vblank_off(), the main reason for this is so that other threads calling drm_vblank_work_schedule() are blocked from attempting to schedule while we're in the middle of enabling/disabling vblanks. * Move drm_handle_vblank_works() call below drm_handle_vblank_events() * Simplify drm_vblank_work_cancel_sync() * Fix drm_vblank_work_cancel_sync() documentation * Move wake_up_all() calls out of spinlock where we can. The only one I left was the call to wake_up_all() in drm_vblank_handle_works() as this seemed like it made more sense just living in that function (which is all technically under...
2020 Jun 24
13
[RFC v7 00/11] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Jun 22
13
[RFC v5 00/10] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up
2020 Jun 27
9
[RFC v8 0/9] drm/nouveau: Introduce CRC support for gf119+
Nvidia released some documentation on how CRC support works on their GPUs, hooray! So: this patch series implements said CRC support in nouveau, along with adding some special debugfs interfaces for some relevant igt-gpu-tools tests (already on the ML). First - we add some new functionality to kthread_work in the kernel, and then use this to add a new feature to DRM that Ville Syrj?l? came up