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 @@ -1819,8 +1819,13 @@ void xe_guc_submit_stop(struct xe_guc *guc)
1819
1819
1820
1820
mutex_lock (& guc -> submission_state .lock );
1821
1821
1822
- xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q )
1822
+ xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q ) {
1823
+ /* Prevent redundant attempts to stop parallel queues */
1824
+ if (q -> guc -> id != index )
1825
+ continue ;
1826
+
1823
1827
guc_exec_queue_stop (guc , q );
1828
+ }
1824
1829
1825
1830
mutex_unlock (& guc -> submission_state .lock );
1826
1831
@@ -1858,8 +1863,13 @@ int xe_guc_submit_start(struct xe_guc *guc)
1858
1863
1859
1864
mutex_lock (& guc -> submission_state .lock );
1860
1865
atomic_dec (& guc -> submission_state .stopped );
1861
- xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q )
1866
+ xa_for_each (& guc -> submission_state .exec_queue_lookup , index , q ) {
1867
+ /* Prevent redundant attempts to start parallel queues */
1868
+ if (q -> guc -> id != index )
1869
+ continue ;
1870
+
1862
1871
guc_exec_queue_start (q );
1872
+ }
1863
1873
mutex_unlock (& guc -> submission_state .lock );
1864
1874
1865
1875
wake_up_all (& guc -> ct .wq );
You can’t perform that action at this time.
0 commit comments