]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Show support for accurate sw PMU busyness tracking
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 14:37:02 +0000 (15:37 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 4 Jul 2019 14:42:24 +0000 (15:42 +0100)
commit6d1d513d4706f220a961f043007bc32b8c3252c0
tree03e206f337714ac94253aa6935183e7a659230b1
parent2bc89d8b60b5e4c41fcc0279e29ecfae17444212
drm/i915: Show support for accurate sw PMU busyness tracking

Expose whether or not we support the PMU software tracking in our
scheduler capabilities, so userspace can query at runtime.

v2: Use I915_SCHEDULER_CAP_ENGINE_BUSY_STATS for a less ambiguous
capability name.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703143702.11339-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/i915_pmu.c
include/uapi/drm/i915_drm.h