]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use LRI for switching PP_DIR_BASE
authorBen Widawsky <ben@bwidawsk.net>
Fri, 6 Dec 2013 22:11:11 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:28:45 +0000 (15:28 +0100)
commit65ef4467a05d9e2e0b0c07b97cc5d782142ff461
tree56b6129b1db04cf83e3d55404049e5253e938013
parent779aa092e40fdd1562b0b4a66940ab8a44ed8b8f
drm/i915: Use LRI for switching PP_DIR_BASE

The docs seem to suggest this is the appropriate method (though it
doesn't say so outright). In other words, we probably should have done
this before. We certainly must do this for switching VMs on the fly,
since synchronizing the rings to MMIO updates isn't acceptable.

v2:
Make the reset code actually work for all rings. Note that this was
fixed in subsequent commits, but was indeed broken for this commit.

Add a posting read to the reset case. It probably should have existed
before hand, but since we have no failures; there is no reason to make
it a separate commit.

Make IS_GEN6 not use the ring because I am seeing crashes when using it.
It is a bit of a hack in this patch, it will get fixed up in a couple of
patches.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c