drm/i915: Align initial plane backing objects correctly
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Feb 2015 22:12:27 +0000 (23:12 +0100)
committerJani Nikula <jani.nikula@intel.com>
Tue, 24 Feb 2015 13:51:19 +0000 (15:51 +0200)
commitf37b5c2be8979993efee2da50b51126e3908eb8b
tree774853aa9ffe8b4c96a3afb62637df4d4bc1a31b
parent2dd2a883aad7c852400027c2261bcab69d9e238e
drm/i915: Align initial plane backing objects correctly

Some bios really like to joke and start the planes at an offset ...
hooray!

Align start and end to fix this.

v2: Fixup calculation of size, spotted by Chris Wilson.

v3: Fix serious fumble I've just spotted.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86883
Cc: stable@vger.kernel.org
Cc: Johannes W <jargon@molb.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Reported-and-tested-by: Johannes W <jargon@molb.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
[Jani: split WARN_ONs, rebase on v4.0-rc1]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem_stolen.c
drivers/gpu/drm/i915/intel_display.c