Commit d43e2453 authored by Matthew Auld's avatar Matthew Auld Committed by Rodrigo Vivi

drm/i915: make pool objects read-only

For our current users we don't expect pool objects to be writable from
the gpu.
Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 4f7af194 ("drm/i915: Support ro ppgtt mapped cmdparser shadow buffers")
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20191119150154.18249-1-matthew.auld@intel.com
(cherry picked from commit d18580b0)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent c0fa92ec
...@@ -103,6 +103,8 @@ node_create(struct intel_engine_pool *pool, size_t sz) ...@@ -103,6 +103,8 @@ node_create(struct intel_engine_pool *pool, size_t sz)
return ERR_CAST(obj); return ERR_CAST(obj);
} }
i915_gem_object_set_readonly(obj);
node->obj = obj; node->obj = obj;
return node; return node;
} }
......
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