From 80ab6b62a5ad84e460110a60d88a5bd3a8ea0e51 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 4 Aug 2023 09:18:11 +0000 Subject: [PATCH] drm/i915/dpt: Use shmem for dpt objects From Radhakrishna Sripada 507f70c06aa99d05fbb0f36de2be31ef1cf88497 in linux-6.1.y/6.1.43 3844ed5e78823eebb5f0f1edefc403310693d402 in mainline linux --- sys/dev/pci/drm/i915/display/intel_dpt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/i915/display/intel_dpt.c b/sys/dev/pci/drm/i915/display/intel_dpt.c index a3893aff386..ea8a08b9c0b 100644 --- a/sys/dev/pci/drm/i915/display/intel_dpt.c +++ b/sys/dev/pci/drm/i915/display/intel_dpt.c @@ -163,6 +163,8 @@ struct i915_vma *intel_dpt_pin(struct i915_address_space *vm) i915_vma_get(vma); } + dpt->obj->mm.dirty = true; + atomic_dec(&i915->gpu_error.pending_fb_pin); intel_runtime_pm_put(&i915->runtime_pm, wakeref); @@ -258,7 +260,7 @@ intel_dpt_create(struct intel_framebuffer *fb) dpt_obj = i915_gem_object_create_stolen(i915, size); if (IS_ERR(dpt_obj) && !HAS_LMEM(i915)) { drm_dbg_kms(&i915->drm, "Allocating dpt from smem\n"); - dpt_obj = i915_gem_object_create_internal(i915, size); + dpt_obj = i915_gem_object_create_shmem(i915, size); } if (IS_ERR(dpt_obj)) return ERR_CAST(dpt_obj); -- 2.20.1