diff options
author | Ramalingam C <ramalingam.c@intel.com> | 2022-02-15 11:01:15 +0530 |
---|---|---|
committer | Ramalingam C <ramalingam.c@intel.com> | 2022-02-17 13:49:17 +0530 |
commit | f2ed8ef31366467930c98494535a044e33a1b3d4 (patch) | |
tree | f85e321e5bf2f0d31bf7654f3cd4a0e0735da93c /drivers/gpu/drm/i915/i915_perf.c | |
parent | 154cfae6158141b18d65abb0db679bb51a8294e7 (diff) | |
download | lwn-f2ed8ef31366467930c98494535a044e33a1b3d4.tar.gz lwn-f2ed8ef31366467930c98494535a044e33a1b3d4.zip |
drm/i915/perf: Skip the i915_perf_init for dg2
i915_perf is not enabled for dg2 yet, hence skip the feature
initialization.
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220215053115.6023-1-ramalingam.c@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_perf.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_perf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c index 2e8028e826b5..cb381fba15e3 100644 --- a/drivers/gpu/drm/i915/i915_perf.c +++ b/drivers/gpu/drm/i915/i915_perf.c @@ -4332,6 +4332,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; |