[Intel-gfx] [PATCH] drm/i915/dg2: Use I915_BO_ALLOC_CONTIGUOUS flag for DPT

Matthew Auld matthew.william.auld at gmail.com
Thu Mar 3 12:40:39 UTC 2022


On Thu, 9 Dec 2021 at 17:00, Stanislav Lisovskiy
<stanislav.lisovskiy at intel.com> wrote:
>
> Do mapping using CONTIGUOUS flag - otherwise
> i915_gem_object_is_contiguous warn is triggered.
>
> Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy at intel.com>

As a temporary fix,
Reviewed-by: Matthew Auld <matthew.auld at intel.com>

> ---
>  drivers/gpu/drm/i915/display/intel_dpt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_dpt.c b/drivers/gpu/drm/i915/display/intel_dpt.c
> index 963ca7155b06..f66346dcf2d8 100644
> --- a/drivers/gpu/drm/i915/display/intel_dpt.c
> +++ b/drivers/gpu/drm/i915/display/intel_dpt.c
> @@ -244,7 +244,7 @@ intel_dpt_create(struct intel_framebuffer *fb)
>         size = round_up(size * sizeof(gen8_pte_t), I915_GTT_PAGE_SIZE);
>
>         if (HAS_LMEM(i915))
> -               dpt_obj = i915_gem_object_create_lmem(i915, size, 0);
> +               dpt_obj = i915_gem_object_create_lmem(i915, size, I915_BO_ALLOC_CONTIGUOUS);
>         else
>                 dpt_obj = i915_gem_object_create_stolen(i915, size);
>         if (IS_ERR(dpt_obj))
> --
> 2.24.1.485.gad05a3d8e5
>


More information about the Intel-gfx mailing list