]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Track the number of times we have woken the GPU up
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Jan 2018 11:36:07 +0000 (11:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 24 Jan 2018 15:28:05 +0000 (15:28 +0000)
commitcb6fe3d5e3430a3957e50c3878fb6b8b3a590890
tree5c9a75b671b256df69711adabf460101c046aeed
parenta4e04596077ba4e053129b8bf2ba603b3ff656e5
drm/i915: Track the number of times we have woken the GPU up

By counting the number of times we have woken up, we have a very simple
means of defining an epoch, which will come in handy if we want to
perform deferred tasks at the end of an epoch (i.e. while we are going
to sleep) without imposing on the next activity cycle.

v2: No reason to specify precise number of bits here.
v3: Take Tvrtko's advice and reserve 0 as an invalid epoch.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180124113608.14909-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_request.c