drm/i915: Avoid pointer arithmetic in calculating plane surface offset
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 30 Oct 2015 11:26:15 +0000 (13:26 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 Nov 2015 18:00:11 +0000 (20:00 +0200)
commit44eb0cb9620c6a53ec8e7073262e2af8079b727f
tree4fb542b8ac13ee6182570edd75c876d1d5355cf3
parent0ac7655cf7f5722fe3a24fda5f435a00baa7d513
drm/i915: Avoid pointer arithmetic in calculating plane surface offset

VMA offsets are 64 bits. Plane surface offsets are in ggtt and
the hardware register to set this is thus 32 bits. Be explicit
about these and convert carefully to from vma to final size.

This will make sparse happy by not creating 32bit pointers out
of 64bit vma offsets.

Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1446204375-29831-1-git-send-email-mika.kuoppala@intel.com
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c