mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-10 21:48:45 -04:00
drm/xe: Fix xe_exec_queue_is_idle for parallel exec queues
Last little piece to support parallel exec queue is compute mode. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
924e6a9789
commit
5009d554e0
@@ -867,8 +867,17 @@ bool xe_exec_queue_ring_full(struct xe_exec_queue *q)
|
||||
*/
|
||||
bool xe_exec_queue_is_idle(struct xe_exec_queue *q)
|
||||
{
|
||||
if (XE_WARN_ON(xe_exec_queue_is_parallel(q)))
|
||||
return false;
|
||||
if (xe_exec_queue_is_parallel(q)) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < q->width; ++i) {
|
||||
if (xe_lrc_seqno(&q->lrc[i]) !=
|
||||
q->lrc[i].fence_ctx.next_seqno - 1)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return xe_lrc_seqno(&q->lrc[0]) ==
|
||||
q->lrc[0].fence_ctx.next_seqno - 1;
|
||||
|
||||
Reference in New Issue
Block a user