Skip to content

Commit d43e245

Browse files
matt-auldrodrigovivi
authored andcommitted
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: Matthew Auld <[email protected]> Cc: Chris Wilson <[email protected]> Fixes: 4f7af19 ("drm/i915: Support ro ppgtt mapped cmdparser shadow buffers") Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit d18580b) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent c0fa92e commit d43e245

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/i915/gt/intel_engine_pool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ node_create(struct intel_engine_pool *pool, size_t sz)
103103
return ERR_CAST(obj);
104104
}
105105

106+
i915_gem_object_set_readonly(obj);
107+
106108
node->obj = obj;
107109
return node;
108110
}

0 commit comments

Comments
 (0)