• Michel Thierry's avatar
    drm/i915/gtt: Allow >= 4GB offsets in X86_32 · 088e0df4
    Michel Thierry authored
    Similar to commit c44ef60e ("drm/i915/gtt:
    Allow >= 4GB sizes for vm"), i915_gem_obj_offset and i915_gem_obj_ggtt_offset
    return an unsigned long, which in only 4-bytes long in 32-bit kernels.
    
    Change return type (and other related offset variables) to u64.
    
    Since Global GTT is always limited to 4GB, this change would not be required
    in i915_gem_obj_ggtt_offset, but this is done for consistency.
    
    v2: Remove unnecessary offset variable in do_pin, as we already have
        vma->node.start (Chris).
        Update GGTT offset too (Tvrtko).
    
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
    Signed-off-by: default avatarMichel Thierry <michel.thierry@intel.com>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    088e0df4
i915_gem.c 129 KB