Skip to content

Commit

Permalink
drm/i915/perf: Enable OA for DG2
Browse files Browse the repository at this point in the history
OA was disabled for DG2 as support was missing. Enable it back now.

Signed-off-by: Umesh Nerlige Ramappa <[email protected]>
Reviewed-by: Ashutosh Dixit <[email protected]>
Signed-off-by: John Harrison <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
unerlige authored and johnharr-intel committed Oct 27, 2022
1 parent 0fa9349 commit 07b444f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/gpu/drm/i915/i915_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -4798,12 +4798,6 @@ void i915_perf_init(struct drm_i915_private *i915)
{
struct i915_perf *perf = &i915->perf;

/* 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 07b444f

Please sign in to comment.