drm/i915: Increase fb alignment to 64k
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 9 Feb 2010 14:14:36 +0000 (14:14 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Feb 2010 15:37:48 +0000 (07:37 -0800)
commit68c12bf53608bceef97da294778dfa10349c7223
tree98591555d9053438c5671e79c4b1712e2766f548
parentd37bec021841c4388e9046d331291b4787932fdf
drm/i915: Increase fb alignment to 64k

commit fd2e8ea597222b8f38ae8948776a61ea7958232e upstream.

An untiled framebuffer must be aligned to 64k. This is normally handled
by intel_pin_and_fence_fb_obj(), but the intelfb_create() likes to be
different and do the pinning itself. However, it aligns the buffer
object incorrectly for pre-i965 chipsets causing a PGTBL_ERR when it is
installed onto the output.

Fixes:
  KMS error message while initializing modesetting -
  render error detected: EIR: 0x10 [i915]
  http://bugs.freedesktop.org/show_bug.cgi?id=22936

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/intel_fb.c