Skip to content

Commit 44e4c56

Browse files
aravind-idrodrigovivi
authored andcommitted
drm/i915: Initialize the obj flags for shmem objects
Obj flags for shmem objects is not being set correctly. Fixes in setting BO_ALLOC_USER flag which applies to shmem objs as well. v2: Add fixes tag (Tvrtko, Matt A) Fixes: 13d29c8 ("drm/i915/ehl: unconditionally flush the pages on acquire") Cc: <[email protected]> # v5.15+ Cc: Matthew Auld <[email protected]> Cc: Tvrtko Ursulin <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Signed-off-by: Aravind Iddamsetty <[email protected]> Reviewed-by: Andrzej Hajda <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> [tursulin: Grouped all tags together.] Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit bca0d1d) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 251e8c5 commit 44e4c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/i915/gem/i915_gem_shmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ static int shmem_object_init(struct intel_memory_region *mem,
579579
mapping_set_gfp_mask(mapping, mask);
580580
GEM_BUG_ON(!(mapping_gfp_mask(mapping) & __GFP_RECLAIM));
581581

582-
i915_gem_object_init(obj, &i915_gem_shmem_ops, &lock_class, 0);
582+
i915_gem_object_init(obj, &i915_gem_shmem_ops, &lock_class, flags);
583583
obj->mem_flags |= I915_BO_FLAG_STRUCT_PAGE;
584584
obj->write_domain = I915_GEM_DOMAIN_CPU;
585585
obj->read_domains = I915_GEM_DOMAIN_CPU;

0 commit comments

Comments
 (0)