]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move golden context init into ->init_context
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 2 Dec 2014 15:19:07 +0000 (16:19 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 8 Dec 2014 14:19:02 +0000 (15:19 +0100)
commit44fce204faa981477cf6ba5534ad203841dd0c1e
tree51b1b6deb75b66b5eef1c173d9995b24f6e78a1d
parente3d01d23ec1e259ba372156115ff61ad31fc7e82
drm/i915: Move golden context init into ->init_context

Similar to a patch from Thomas Daniel for lrc contexts. This keeps
both sides somewhat in sync and should make Dave Gordon happy.

Note that both the wa and the golden context init code suffer a bit
from an inssuficient split into driver load and hw init code. Which
means we have a bunch of tests all over the place to check whether the
one-time initialization has been done already or not.

All that one-tim code should be moved into the one-time ring setup
code, but that's work for later.

Cc: Dave Gordon <david.s.gordon@intel.com>
Cc: Thomas Daniel <thomas.daniel@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_ringbuffer.c