]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove the upper limit on the bo size for mapping into the CPU domain
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 29 Jan 2012 16:52:05 +0000 (16:52 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 30 Jan 2012 16:54:35 +0000 (17:54 +0100)
commit25243447afbbc3f08008aff99b0b4cec411aecc4
tree80f1218da73e33947d9078ffce79ee2b8e1879f0
parente7c90a62b48f0afe81c7f63aab6b125e5839d2c8
drm/i915: Remove the upper limit on the bo size for mapping into the CPU domain

The original intention of comparing the bo against the mappable GTT
limits was to prevent a subsequent faulting of the bo into the GTT from
clearing the entire GTT in vain. However, that was clearly a cut'n'paste
mistake as a CPU mapping never binds the bo into the aperture. Whilst
there may be some merit to limiting the maximum size of the bo to
something that can be utilized by the GPU, that limit itself does not
belong as a safeguard to mmapping the bo, so remove the check entirely.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c