mbox series

[v2,0/2] drm: Add DRM managed workqueues

Message ID 20240322190121.3881425-1-quic_jhugo@quicinc.com (mailing list archive)
Headers show
Series drm: Add DRM managed workqueues | expand

Message

Jeffrey Hugo March 22, 2024, 7:01 p.m. UTC
Based on work at https://lore.kernel.org/dri-devel/20230118032413.6496-1-jiasheng@iscas.ac.cn/

The API in the origional work seemed to have two issues:
1. The output parameter was not correctly defined
2. The allocating functions did not return the allocated object like the
other drmm functions

I tweaked the implementation to address both of these.

From what I can tell, the i915 change no longer applies to the code
base, likely due to refactoring from merging xe.  I dropped it.

v2:
-Fix make htmldocs warnings

Jeffrey Hugo (1):
  accel/qaic: Use drmm_alloc_workqueue()

Jiasheng Jiang (1):
  drm: Add DRM-managed alloc_workqueue() and alloc_ordered_workqueue()

 drivers/accel/qaic/qaic_drv.c | 30 ++----------
 drivers/gpu/drm/drm_managed.c | 87 +++++++++++++++++++++++++++++++++++
 include/drm/drm_managed.h     |  8 ++++
 3 files changed, 99 insertions(+), 26 deletions(-)