From: Chris Wilson Date: Thu, 12 Aug 2010 09:47:56 +0000 (+0100) Subject: drm/i915/overlay: Use the recommended page alignment for physical regs X-Git-Tag: v2.6.37-rc1~92^2~28^2~224 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a29301288f1840bdf9c5456da9cd7c944436edd5;p=karo-tx-linux.git drm/i915/overlay: Use the recommended page alignment for physical regs Signed-off-by: Chris Wilson Reviewed-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c index ab2a8cad8129..b0aea47cb445 100644 --- a/drivers/gpu/drm/i915/intel_overlay.c +++ b/drivers/gpu/drm/i915/intel_overlay.c @@ -1406,7 +1406,7 @@ void intel_setup_overlay(struct drm_device *dev) if (OVERLAY_NEEDS_PHYSICAL(dev)) { ret = i915_gem_attach_phys_object(dev, reg_bo, I915_GEM_PHYS_OVERLAY_REGS, - 0); + PAGE_SIZE); if (ret) { DRM_ERROR("failed to attach phys overlay regs\n"); goto out_free_bo;