All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] How to convert drivers/gpu/drm/i915/ to use local workqueue?
@ 2022-06-10 14:57 ` Tetsuo Handa
  0 siblings, 0 replies; 22+ messages in thread
From: Tetsuo Handa @ 2022-06-10 14:57 UTC (permalink / raw)
  To: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin
  Cc: Intel Graphics Development, DRI

Hello.

Like commit c4f135d643823a86 ("workqueue: Wrap flush_workqueue() using
a macro") explains, we are removing flush_scheduled_work() calls. And now

  drivers/gpu/drm/i915/display/intel_display.c
  drivers/gpu/drm/i915/gt/selftest_execlists.c

are the last flush_scheduled_work() callers which have no patch proposed.
I want to make a patch like
https://lkml.kernel.org/r/e9b95132-89cd-5cfc-1a09-966393c5ecb0@I-love.SAKURA.ne.jp
but I couldn't understand how to interpret drivers/gpu/drm/i915/ part.



There are many schedule_work()/schedule_delayed_work() callers within
drivers/gpu/drm/i915/ directory.

intel_modeset_driver_remove_noirq() in intel_display.c says

        /* flush any delayed tasks or pending work */
        flush_scheduled_work();

but intel_display.c itself does not call schedule_delayed_work().
Then, does this flush_scheduled_work() mean to wait all schedule_work()/schedule_delayed_work()
calls inside drivers/gpu/drm/i915/ directory?

wait_for_reset() in selftest_execlists.c says

	flush_scheduled_work();

but selftest_execlists.c itself does not call schedule_work()/schedule_delayed_work().
Then, does this flush_scheduled_work() mean to wait all schedule_work()/schedule_delayed_work()
calls inside drivers/gpu/drm/i915/ directory, by sharing a WQ created for
intel_modeset_driver_remove_noirq() ?

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2022-08-09 16:23 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10 14:57 [Intel-gfx] How to convert drivers/gpu/drm/i915/ to use local workqueue? Tetsuo Handa
2022-06-10 14:57 ` Tetsuo Handa
2022-06-30  4:30 ` [Intel-gfx] " Tetsuo Handa
2022-06-30  4:30   ` Tetsuo Handa
2022-06-30  7:46 ` [Intel-gfx] " Tvrtko Ursulin
2022-06-30  7:46   ` Tvrtko Ursulin
2022-06-30  8:06   ` [Intel-gfx] " Tetsuo Handa
2022-06-30  8:06     ` Tetsuo Handa
2022-06-30 10:17     ` [Intel-gfx] " Tvrtko Ursulin
2022-06-30 10:17       ` Tvrtko Ursulin
2022-06-30 11:19       ` [Intel-gfx] " Tetsuo Handa
2022-06-30 11:19         ` Tetsuo Handa
2022-06-30 13:09         ` [Intel-gfx] " Tvrtko Ursulin
2022-06-30 13:09           ` Tvrtko Ursulin
2022-06-30 13:59           ` [Intel-gfx] " Rodrigo Vivi
2022-06-30 13:59             ` Rodrigo Vivi
2022-06-30 14:34             ` [Intel-gfx] " Jani Nikula
2022-06-30 14:34               ` Jani Nikula
2022-06-30 15:25               ` [Intel-gfx] " Rodrigo Vivi
2022-06-30 15:25                 ` Rodrigo Vivi
2022-08-05 13:14           ` [Intel-gfx] " Tetsuo Handa
2022-08-09 16:22             ` Tvrtko Ursulin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.