From: Oscar Mateo Date: Thu, 24 Jul 2014 16:04:23 +0000 (+0100) Subject: drm/i915/bdw: Generic logical ring init and cleanup X-Git-Tag: omap-for-v3.19/prcm-cleanup~70^2~73^2~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48d823878d64f93163f5a949623346748bbce1b4;p=pandora-kernel.git 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 Reviewed-by: Damien Lespiau Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed