Skip to content

Commit

Permalink
drm/i915: Disallow direct CPU access to stolen pages for relocations
Browse files Browse the repository at this point in the history
As we cannot access the backing pages behind stolen objects, we should
not attempt to do so for relocations.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-15-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Aug 18, 2016
1 parent e8cb909 commit 9e53d9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ static void eb_destroy(struct eb_vmas *eb)

static inline int use_cpu_reloc(struct drm_i915_gem_object *obj)
{
if (!i915_gem_object_has_struct_page(obj))
return false;

if (DBG_USE_CPU_RELOC)
return DBG_USE_CPU_RELOC > 0;

Expand Down

0 comments on commit 9e53d9b

Please sign in to comment.