From c3c1ac826d7d4fbfcba330f0fefc6b211b8b7c3f Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 15 Feb 2023 10:31:23 +0000 Subject: [PATCH] drm/i915: Initialize the obj flags for shmem objects From Aravind Iddamsetty baaed8c92927e2530a799daf2e909e6688dc2943 in linux-6.1.y/6.1.12 44e4c5684fcc82d8f099656c4ea39d9571e2a8ac in mainline linux --- sys/dev/pci/drm/i915/gem/i915_gem_shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_shmem.c b/sys/dev/pci/drm/i915/gem/i915_gem_shmem.c index 44c9fad392d..647f7958ed9 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_shmem.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_shmem.c @@ -676,7 +676,7 @@ static int shmem_object_init(struct intel_memory_region *mem, GEM_BUG_ON(!(mapping_gfp_mask(mapping) & __GFP_RECLAIM)); #endif - i915_gem_object_init(obj, &i915_gem_shmem_ops, &lock_class, 0); + i915_gem_object_init(obj, &i915_gem_shmem_ops, &lock_class, flags); obj->mem_flags |= I915_BO_FLAG_STRUCT_PAGE; obj->write_domain = I915_GEM_DOMAIN_CPU; obj->read_domains = I915_GEM_DOMAIN_CPU; -- 2.20.1