Quoting Tvrtko Ursulin (2018-01-23 13:45:58) > From: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> > > We need to generate the event config value using the uAPI class and not > the driver internal one. > > Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> > Fixes: 109ec558370f ("drm/i915/pmu: Only enumerate available counters in sysfs") > Cc: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx> > Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> > Cc: Jani Nikula <jani.nikula@xxxxxxxxxxxxxxx> > Cc: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx> > Cc: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx> > --- > drivers/gpu/drm/i915/i915_pmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu.c > index 86d9b9fb6aef..f380d8896a63 100644 > --- a/drivers/gpu/drm/i915/i915_pmu.c > +++ b/drivers/gpu/drm/i915/i915_pmu.c > @@ -906,7 +906,7 @@ create_event_attributes(struct drm_i915_private *i915) > *attr_iter++ = &i915_iter->attr.attr; > i915_iter = > add_i915_attr(i915_iter, str, > - __I915_PMU_ENGINE(engine->class, > + __I915_PMU_ENGINE(engine->uabi_class, Indeed. __I915_PMU_ENGINE() is uapi/i915_drm.h so uabi-centric. Reviewed-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx