drm/i915/pmu: Fix sysfs exported counter config
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 23 Jan 2018 13:45:58 +0000 (13:45 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 24 Jan 2018 08:51:11 +0000 (08:51 +0000)
commit8810bc5609117aad1dd01c1c8c4cd3847ec2fd3e
treee6f222809402d8f8d58fa8b8ed29ee5e990a2507
parentc559c2a071ff01a3b8b9ce38d3b09d3f403cff10
drm/i915/pmu: Fix sysfs exported counter config

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@intel.com>
Fixes: 109ec558370f ("drm/i915/pmu: Only enumerate available counters in sysfs")
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180123134558.3222-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_pmu.c