From: jsg Date: Wed, 15 Feb 2023 10:31:23 +0000 (+0000) Subject: drm/i915: Initialize the obj flags for shmem objects X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c3c1ac826d7d4fbfcba330f0fefc6b211b8b7c3f;p=openbsd 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 --- 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;