summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_renderstate_gen6.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-02-14 14:06:05 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-05-14 18:39:31 +0200
commitaff10b30a1d3edd1e31f536648772da85e33f655 (patch)
treebb06367c396f09b1462e22278df86781efa67c1b /drivers/gpu/drm/i915/intel_renderstate_gen6.c
parent2206e6a11bf4acff9831b4dbfaa3c3adc7d6172f (diff)
drm/i915: Don't drop pinned fences
Userspace can currently provoke this when e.g. trying to use a pinned scanout as a cursor or overlay target. Later on that might lead to some fun fence pin count mayhem. Spurred by Ville's report that something goes wrong here and originally I've thought that this might slip through the pwrite gtt fastpath. But that one checks of obj tiling, so should be ok. But one thing that _does_ blow up is the vma unbinding with more than one address space. The next patch will fix this. v2: Use a WARN_ON - Chris pointed out that we already catch all cases so userspace can't provoke this like I've originally feared. While reviewing relevant code I've noticed a pile of DRM_ERROR in the overlay&cursor code which are all triggerable by userspace. Tune them down while at it. v3: Split out the DRM_ERROR->DRM_DEBUG_KMS change into a separate patch, as requested by Chris. Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Tested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_renderstate_gen6.c')
0 files changed, 0 insertions, 0 deletions