[PATCH 09/31] drm/i915/perf: Skip the i915_perf_init for dg2

Ramalingam C ramalingam.c at intel.com
Fri Feb 11 15:00:30 UTC 2022


i915_perf is not enabled for dg2 yet. Till then Skip the i915_perf
initialization.

Signed-off-by: Ramalingam C <ramalingam.c at intel.com>
cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
---
 drivers/gpu/drm/i915/i915_perf.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 061e61371dae..8dce4b6c9db7 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -4372,6 +4372,10 @@ void i915_perf_init(struct drm_i915_private *i915)
 
 	/* XXX const struct i915_perf_ops! */
 
+	/* i915_perf is not enabled for DG2 yet */
+	if (IS_DG2(i915))
+		return;
+
 	perf->oa_formats = oa_formats;
 	if (IS_HASWELL(i915)) {
 		perf->ops.is_valid_b_counter_reg = gen7_is_valid_b_counter_addr;
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list