]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/pmu: Skip sampling engines if gt is asleep
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Dec 2019 00:07:56 +0000 (00:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 18 Dec 2019 11:09:15 +0000 (11:09 +0000)
commit1185617a2dbf3a2c5fae728338b47cb5cdc0f155
tree88ec318815dac7d9378466dc82d5b37f8856c63e
parentaba74a148a2c7791b6b5bfdfd52511e8175eafd5
drm/i915/pmu: Skip sampling engines if gt is asleep

If the whole GT is asleep, we know that each engine must also be asleep
and so we can quickly return without checking them all.

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/20191218000756.3475668-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_pmu.c