@@ -6,6 +6,7 @@
#include "i915_drv.h"
#include "intel_display_types.h"
+#include "gem/i915_gem_lmem.h"
#define DSB_BUF_SIZE (2 * PAGE_SIZE)
@@ -278,7 +279,11 @@ void intel_dsb_prepare(struct intel_crtc_state *crtc_state)
wakeref = intel_runtime_pm_get(&i915->runtime_pm);
- obj = i915_gem_object_create_internal(i915, DSB_BUF_SIZE);
+ if (HAS_LMEM(i915))
+ obj = i915_gem_object_create_lmem(i915, DSB_BUF_SIZE, 0);
+ else
+ obj = i915_gem_object_create_internal(i915, DSB_BUF_SIZE);
+
if (IS_ERR(obj)) {
drm_err(&i915->drm, "Gem object creation failed\n");
kfree(dsb);