]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bdw: Print context state in debugfs
authorBen Widawsky <ben@bwidawsk.net>
Thu, 7 Aug 2014 12:24:26 +0000 (13:24 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Aug 2014 15:17:51 +0000 (17:17 +0200)
commit3154fe486b1fbe42a5467527c4027a7c3e94fcd9
tree9af9ae926f60b80e6fb59aa79ea75fd80eac652e
parent665db6a4263acdbc6a529d2ce76e4ea98610eccf
drm/i915/bdw: Print context state in debugfs

This has turned out to be really handy in debug so far.

Update:
Since writing this patch, I've gotten similar code upstream for error
state. I've used it quite a bit in debugfs however, and I'd like to keep
it here at least until preemption is working.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This patch was accidentally dropped in the first Execlists version, and
it has been very useful indeed. Put it back again, but as a standalone
debugfs file.

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
v2: Take the device struct_mutex rather than mode_config mutex for
atomic state capture.

Signed-off-by: Thomas Daniel <thomas.daniel@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c