drm/i915: Comments for semaphore clarification
authorBen Widawsky <ben@bwidawsk.net>
Wed, 29 May 2013 02:22:17 +0000 (19:22 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 31 May 2013 18:54:08 +0000 (20:54 +0200)
commit5586181fce2b2e89a0e281d78ffbdfa103bb0dde
treece5d6d12c1e7efbdb54334d56fcb50e10c73f955
parent40ccc72b84a848e6fcbdb38fe716f0ac6939609e
drm/i915: Comments for semaphore clarification

Semaphores are tied very closely to the rings in the GPU. Trivial patch
adds comments to the existing code so that when we add new rings we can
include comments there as well. It also helps distinguish the ring to
semaphore mailbox interactions by using the ringname in the semaphore
data structures.

This patch should have no functional impact.

v2: The English parts (as opposed to register names) of the comments
were reversed. (Damien)

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h