File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -908,6 +908,23 @@ static intel_engine_mask_t init_engine_mask(struct intel_gt *gt)
908
908
info -> engine_mask &= ~BIT (GSC0 );
909
909
}
910
910
911
+ /*
912
+ * Do not create the command streamer for CCS slices beyond the first.
913
+ * All the workload submitted to the first engine will be shared among
914
+ * all the slices.
915
+ *
916
+ * Once the user will be allowed to customize the CCS mode, then this
917
+ * check needs to be removed.
918
+ */
919
+ if (IS_DG2 (gt -> i915 )) {
920
+ u8 first_ccs = __ffs (CCS_MASK (gt ));
921
+
922
+ /* Mask off all the CCS engine */
923
+ info -> engine_mask &= ~GENMASK (CCS3 , CCS0 );
924
+ /* Put back in the first CCS engine */
925
+ info -> engine_mask |= BIT (_CCS (first_ccs ));
926
+ }
927
+
911
928
return info -> engine_mask ;
912
929
}
913
930
You can’t perform that action at this time.
0 commit comments