]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: add a debugfs entry for power domain info
authorImre Deak <imre.deak@intel.com>
Mon, 25 Nov 2013 15:15:35 +0000 (17:15 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Nov 2013 19:08:29 +0000 (20:08 +0100)
commit1da51581b00b3fc3ac72156e2a69c6bab71f7794
tree954f32c347417ae21ddb1fbd6783475be4f1a1ba
parent1c2256df26f697bcd20016c271ddc8fd44653919
drm/i915: add a debugfs entry for power domain info

Add a debugfs entry showing the use-count for all power domains of each
power well.

v3: address comments from Paulo:
- simplify power_domain_str() by using a switch table
- move power_well::domain_count to power_domains
- WARN_ON decrementing a 0 refcount

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c