]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move ring_begin to signal()
authorBen Widawsky <benjamin.widawsky@intel.com>
Tue, 29 Apr 2014 21:52:30 +0000 (14:52 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 08:56:53 +0000 (10:56 +0200)
commit145db44ccd4487135eb282a45e50c9a4438d343c
treede935a2c3c46e63fb78111a697d0a700f3bb6bed
parentb17edbca6def593545ca3ff0de0572d4989a71dd
drm/i915: Move ring_begin to signal()

Add_request has always contained both the semaphore mailbox updates as
well as the breadcrumb writes. Since the semaphore signal is the one
which actually knows about the number of dwords it needs to emit to the
ring, we move the ring_begin to that function. This allows us to remove
the hideously shared #define

On a related not, gen8 will use a different number of dwords for
semaphores, but not for add request.

v2: Make number of dwords an explicit part of signalling (via function
argument). (Chris)

v3: very slight comment change

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h