]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Clear rc6 residency trackers across suspend
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Jan 2020 10:56:48 +0000 (10:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Jan 2020 12:55:13 +0000 (12:55 +0000)
commitd7c9cda47120d65e346fc74f20841b871e1081b2
treebfd01f22c84b9d6367238ae1c637146f9b6f884f
parent4b07cbb42d993a5d8aa55db69f9952ee07d2c42d
drm/i915/gt: Clear rc6 residency trackers across suspend

On suspend, the rc6 residency counters (stored in HW registers) will be
lost and cleared. However, we keep track of the rc6 residency to provide
a continuous 64b sampling, and if we see the HW value go backwards, we
assume it overflowed and add on 32b/40b -- an interesting artifact when
sampling across suspend.

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/20200114105648.2172026-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_rc6.c