drm/i915: Add debugfs entry to read/write next_seqno
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 4 Dec 2012 13:12:00 +0000 (15:12 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 5 Dec 2012 16:17:14 +0000 (17:17 +0100)
commit40633219a0ff4953601c7b2326f8faabc0171fd9
tree4ab42e539fe37a7322214eb5013a5fabd6cab86b
parent1a240d4de2ccf40de5796a4d1dbb3a0236051fc9
drm/i915: Add debugfs entry to read/write next_seqno

This is needed for testing seqno wrapping. Be careful to not bump next_seqno
more than 0x7FFFFFFF at a time (between some handled requests) as
i915_seqno_passed() can't handle bigger difference in between.

v2: Address review comments from Chris Wilson.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Squash in fixup to properly remove the debugfs file on driver
unload again.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c