]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6b703d8d504c4078ddc391d8272ffdd7ef9fae2
treece5d6d12c1e7efbdb54334d56fcb50e10c73f955
parente17a84cdc259db1f4e078c8c6a1c9a92ac0d862f
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