]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bdw: Generic logical ring init and cleanup
authorOscar Mateo <oscar.mateo@intel.com>
Thu, 24 Jul 2014 16:04:23 +0000 (17:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 14:55:17 +0000 (16:55 +0200)
commit0878507ec8949a065b31f8714d05fd2fd1689a19
tree15aea93bd4927c689309120f720284f1b88b5e19
parent19c41a55b0847b30cf2176ead874002ad2153098
drm/i915/bdw: Generic logical ring init and cleanup

Allocate and populate the default LRC for every ring, call
gen-specific init/cleanup, init/fini the command parser and
set the status page (now inside the LRC object). These are
things all engines/rings have in common.

Stopping the ring before cleanup and initializing the seqnos
is left as a TODO task (we need more infrastructure in place
before we can achieve this).

v2: Check the ringbuffer backing obj for ring_is_initialized,
instead of the context backing obj (similar, but not exactly
the same).

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h