Skip to content

Commit

Permalink
drm/i915/perf: Skip the i915_perf_init for dg2
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Ramalingam C committed Feb 17, 2022
1 parent 154cfae commit f2ed8ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/i915/i915_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f2ed8ef

Please sign in to comment.