]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove incorrect restriction on 32bit offsets in ppGTT backend
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Apr 2015 07:48:03 +0000 (08:48 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:22 +0000 (13:03 +0200)
commit4dde57ec5e56ca023690d3195b8173854b4657c2
treed6fa49cf6b9a1788f7fc1b87916f20e537ec5459
parent48b7e41de10b24034123a65521379a0bd38e947e
drm/i915: Remove incorrect restriction on 32bit offsets in ppGTT backend

This is the wrong layer to apply an arbitrary restriction and the wrong
error code (object too large!). If we do want to prevent large offsets
being return to the user on 32bit systems (to hide bugs in userspace),
you want to restrict the drm_mm range manager instead. This first tells
userspace about the correct size of the GTT they can use (so they don't
try and overallocate object or batches), and fixes the eviction logic to
avoid the eventual and *guaranteed* error.

Fixes regression in
commit d482128f8cf0197a393d86d3c04f7a14014351dc
Author: Michel Thierry <michel.thierry@intel.com>
Date:   Wed Apr 8 12:13:34 2015 +0100

    drm/i915/gen8: Dynamic page table allocations

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c