]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "drm/i915: Do not allow buffers at offset 0"
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 15:40:38 +0000 (16:40 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 16:50:39 +0000 (17:50 +0100)
commitda7d04c1c5bf93ae2693af0c4b33a892a506d70f
treeee4e7d44320d5893f8fd62c9d10dd0aba2923a5b
parent3c150f9eb57d98cd69aa5ec523c4497064480b83
Revert "drm/i915: Do not allow buffers at offset 0"

This reverts commit 78572d39317c6b01885a9a4f5d4074c0a02c538c.

The patch completely lacks a detailed explanation of what exactly
blows up and how, so is insufficiently justified as a band-aid.

Otoh the justification as a safety measure against userspace botching
up relocations is also fairly weak: If we want real project we need to
at least make the gab big enough that the gpu doesn't scribble over
more important stuff. With 4k screens that would be 32MB.

Also I think this would be much better in conjunction with a (debug)
switch to disable our use of the scratch page.

Hence revert this.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c