Commit 0f9dc59d authored by Ben Widawsky's avatar Ben Widawsky Committed by Jani Nikula

drm/i915: Allow full PPGTT with param override

When PPGTT was disabled by default, the patch also prevented the user
from overriding this behavior via module parameter. Being able to test
this on arbitrary kernels is extremely beneficial to track down the
remaining bugs. The patch that prevented this was:

commit 93a25a9e
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Mar 6 09:40:43 2014 +0100

    drm/i915: Disable full ppgtt by default

By default PPGTT is set to -1. 0 means off, 1 means aliasing only, 2
means full, all other values are reserved.
Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
parent edd586fe
...@@ -50,7 +50,7 @@ bool intel_enable_ppgtt(struct drm_device *dev, bool full) ...@@ -50,7 +50,7 @@ bool intel_enable_ppgtt(struct drm_device *dev, bool full)
/* Full ppgtt disabled by default for now due to issues. */ /* Full ppgtt disabled by default for now due to issues. */
if (full) if (full)
return false; /* HAS_PPGTT(dev) */ return HAS_PPGTT(dev) && (i915.enable_ppgtt == 2);
else else
return HAS_ALIASING_PPGTT(dev); return HAS_ALIASING_PPGTT(dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment