drm/xe: Use pool of ordered wq for GuC submission
authorMatthew Brost <matthew.brost@intel.com>
Mon, 6 Nov 2023 18:39:38 +0000 (10:39 -0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:43:39 +0000 (11:43 -0500)
commita839e365ac88f0fa9f8c7ae92b9e7e66bbd9e4d7
tree3ccc4f1b6af99f72c9c64c257a6d3f29445cceca
parent43efd3ba9f44c46fdb31c8b0f257cf9a2d1b58ae
drm/xe: Use pool of ordered wq for GuC submission

To appease lockdep, use a pool of ordered wq for GuC submission rather
tha leaving the ordered wq allocation to the drm sched. Without this change
eventually lockdep runs out of hash entries (MAX_LOCKDEP_CHAINS is
exceeded) as each user allocated exec queue adds more hash table entries
to lockdep. A pool old of 256 ordered wq should be enough to have
similar behavior with and without lockdep enabled.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_submit.c
drivers/gpu/drm/xe/xe_guc_types.h