File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1726,8 +1726,13 @@ void xe_guc_submit_stop(struct xe_guc *guc)
1726
1726
1727
1727
mutex_lock (& guc -> submission_state .lock );
1728
1728
1729
- xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q )
1729
+ xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q ) {
1730
+ /* Prevent redundant attempts to stop parallel queues */
1731
+ if (q -> guc -> id != index )
1732
+ continue ;
1733
+
1730
1734
guc_exec_queue_stop (guc , q );
1735
+ }
1731
1736
1732
1737
mutex_unlock (& guc -> submission_state .lock );
1733
1738
@@ -1765,8 +1770,13 @@ int xe_guc_submit_start(struct xe_guc *guc)
1765
1770
1766
1771
mutex_lock (& guc -> submission_state .lock );
1767
1772
atomic_dec (& guc -> submission_state .stopped );
1768
- xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q )
1773
+ xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q ) {
1774
+ /* Prevent redundant attempts to start parallel queues */
1775
+ if (q -> guc -> id != index )
1776
+ continue ;
1777
+
1769
1778
guc_exec_queue_start (q );
1779
+ }
1770
1780
mutex_unlock (& guc -> submission_state .lock );
1771
1781
1772
1782
wake_up_all (& guc -> ct .wq );
You can’t perform that action at this time.
0 commit comments