]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: Rebind bo if currently bound with incorrect alignment.
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 May 2010 12:18:18 +0000 (13:18 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:16:02 +0000 (11:16 -0700)
commit674829c058a8dc47d312be62f31c0013f116903d
tree354f8156894e95d731f28eef3a678425a6557efc
parent89d35068d07dec55b33a8af7915441350857c8bf
drm/i915: Rebind bo if currently bound with incorrect alignment.

commit ac0c6b5ad3b3b513e1057806d4b7627fcc0ecc27 upstream.

Whilst pinning the buffer, check that that its current alignment
matches the requested alignment. If it does not, rebind.

This should clear up any final render errors whilst resuming,
for reference:

  Bug 27070 - [i915] Page table errors with empty ringbuffer
  https://bugs.freedesktop.org/show_bug.cgi?id=27070

  Bug 15502 -  render error detected, EIR: 0x00000010
  https://bugzilla.kernel.org/show_bug.cgi?id=15502

  Bug 13844 -  i915 error: "render error detected"
  https://bugzilla.kernel.org/show_bug.cgi?id=13844

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_gem.c