drm/i915: check that the i965g/gm 4G limit is really obeyed
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 7 Oct 2013 20:15:45 +0000 (17:15 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 10:47:05 +0000 (12:47 +0200)
commit3bbbe706e8e6dac36ae893dc23bdb378dd4f4413
treec4f8df0b480578fec0fdb3d6024d9fbb7c2f739b
parenta4945f9522d27e1e6d64a02ad055e83768cb0896
drm/i915: check that the i965g/gm 4G limit is really obeyed

In truly crazy circumstances shmem might give us the wrong type of
page. So be a bit paranoid and double check this.

Reviewer: Damien Lespiau <damien.lespiau@intel.com>
Cc: Rob Clark <robdclark@gmail.com>
References: http://lkml.org/lkml/2011/7/11/238
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c