From: jsg Date: Fri, 7 Apr 2023 04:03:48 +0000 (+0000) Subject: drm/i915/gem: Flush lmem contents after construction X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=d5e0de02f2781d96788c6285d17ac4c3aed9c6e3;p=openbsd drm/i915/gem: Flush lmem contents after construction From Chris Wilson 21ee19974b19edcda7a8e4f9bd5b02c3a750a69e in linux-6.1.y/6.1.23 d032ca43f2c80049ce5aabd3f208dc3849359497 in mainline linux --- diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c b/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c index ea4a8b5afe0..1181249d8fe 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_lmem.c @@ -131,7 +131,8 @@ i915_gem_object_create_lmem_from_data(struct drm_i915_private *i915, memcpy(map, data, size); - i915_gem_object_unpin_map(obj); + i915_gem_object_flush_map(obj); + __i915_gem_object_release_map(obj); return obj; }