@@ -2491,7 +2491,7 @@ struct i915_context_param_engines {
2491
2491
#define I915_CONTEXT_ENGINES_EXT_LOAD_BALANCE 0 /* see i915_context_engines_load_balance */
2492
2492
#define I915_CONTEXT_ENGINES_EXT_BOND 1 /* see i915_context_engines_bond */
2493
2493
#define I915_CONTEXT_ENGINES_EXT_PARALLEL_SUBMIT 2 /* see i915_context_engines_parallel_submit */
2494
- struct i915_engine_class_instance engines [0 ];
2494
+ struct i915_engine_class_instance engines [];
2495
2495
} __attribute__((packed ));
2496
2496
2497
2497
#define I915_DEFINE_CONTEXT_PARAM_ENGINES (name__ , N__ ) struct { \
@@ -2676,6 +2676,10 @@ enum drm_i915_oa_format {
2676
2676
I915_OAR_FORMAT_A32u40_A4u32_B8_C8 ,
2677
2677
I915_OA_FORMAT_A24u40_A14u32_B8_C8 ,
2678
2678
2679
+ /* MTL OAM */
2680
+ I915_OAM_FORMAT_MPEC8u64_B8_C8 ,
2681
+ I915_OAM_FORMAT_MPEC8u32_B8_C8 ,
2682
+
2679
2683
I915_OA_FORMAT_MAX /* non-ABI */
2680
2684
};
2681
2685
@@ -2758,6 +2762,25 @@ enum drm_i915_perf_property_id {
2758
2762
*/
2759
2763
DRM_I915_PERF_PROP_POLL_OA_PERIOD ,
2760
2764
2765
+ /**
2766
+ * Multiple engines may be mapped to the same OA unit. The OA unit is
2767
+ * identified by class:instance of any engine mapped to it.
2768
+ *
2769
+ * This parameter specifies the engine class and must be passed along
2770
+ * with DRM_I915_PERF_PROP_OA_ENGINE_INSTANCE.
2771
+ *
2772
+ * This property is available in perf revision 6.
2773
+ */
2774
+ DRM_I915_PERF_PROP_OA_ENGINE_CLASS ,
2775
+
2776
+ /**
2777
+ * This parameter specifies the engine instance and must be passed along
2778
+ * with DRM_I915_PERF_PROP_OA_ENGINE_CLASS.
2779
+ *
2780
+ * This property is available in perf revision 6.
2781
+ */
2782
+ DRM_I915_PERF_PROP_OA_ENGINE_INSTANCE ,
2783
+
2761
2784
DRM_I915_PERF_PROP_MAX /* non-ABI */
2762
2785
};
2763
2786
0 commit comments