]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Use coarse grained residency counter with byt
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Wed, 15 Mar 2017 16:12:59 +0000 (18:12 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Thu, 16 Mar 2017 10:28:28 +0000 (12:28 +0200)
commit6b7f6aa75e38ef4e2bfb9e13726f6561e682892f
treec0028fc967d28217d8ffb5f2ef2a4de548d488bb
parent679cb6c1320bc0d4b1572a4cf0988c3bba66becf
drm/i915: Use coarse grained residency counter with byt

Set byt rc residency counters high level as chv does by
default. We lose some accuracy on byt but we can do the calculation
without extra hw read on both platforms, as now they behave
identically in this respect.

v2: use ktime
v3: keep comparison u32 (Chris)

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1489592584-10422-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_pm.c