Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49B3FD3C92E for ; Wed, 10 Dec 2025 16:15:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 05C8E10E773; Wed, 10 Dec 2025 16:15:15 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="adJmu+iU"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1ED3B10E76C for ; Wed, 10 Dec 2025 16:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=phJplfU2pw+mnuG8d65j7rxQ0hijjoLKGL5rIZoYheE=; b=adJmu+iUOIQL2kzmQ4fDxSyAPT 9fv+oIOtuXwCGhLk/51HZyqzhUpwkqnv8AU/GZdbXOr0P6RvevwztWH3tJuVomm2urMSb24OKTbOx Yiek9wK0my00B34Au1OBsV/ui26kQoPtX5n8unbzE1sHAsKMQa6FVTkS0M9Gp1wcvJir7nOlU9Ky6 Edo0VQ9MET97IGW971H+L8+WVsEUbr6ZQpBvjPqaebWh3jYHO5WTAxY88qtiYo4BpGhjgxGPfrprQ /bMowEws6KoR3T0gVLW9sHeATrxHXSL8/MC8FOWw0ytbJTV9fI5mwwJ17b1lfipNWzxxeSG1c8XWO LM+gI7vA==; Received: from [86.33.28.86] (helo=localhost) by fanzine2.igalia.com with utf8esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1vTMqM-00B2gC-8z for ; Wed, 10 Dec 2025 17:15:10 +0100 From: Tvrtko Ursulin To: intel-xe@lists.freedesktop.org Subject: [CI 11/11] drm/xe: Do not use stolen memory for DPT on IGFX and AuxCCS Date: Wed, 10 Dec 2025 17:14:57 +0100 Message-ID: <20251210161457.14394-12-tursulin@igalia.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251210161457.14394-1-tursulin@igalia.com> References: <20251210161457.14394-1-tursulin@igalia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" From: Tvrtko Ursulin With DPT in stolen memory there are occasional pipe crc IGT failures in tests such as kms_flip_tiling. Allocate a normal system memory object instead. Signed-off-by: Tvrtko Ursulin Cc: Rodrigo Vivi --- drivers/gpu/drm/xe/display/xe_fb_pin.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/display/xe_fb_pin.c b/drivers/gpu/drm/xe/display/xe_fb_pin.c index a849bdd14d36..de7c14a44a82 100644 --- a/drivers/gpu/drm/xe/display/xe_fb_pin.c +++ b/drivers/gpu/drm/xe/display/xe_fb_pin.c @@ -140,6 +140,20 @@ write_dpt_remapped(struct xe_bo *bo, } } +static bool try_dpt_stolen(const struct intel_framebuffer *fb, struct xe_bo *bo) +{ + /* + * XXX: DPT in stolen memory on IGFX platforms (at least Alderlake) + * suffers from occasional pipe crc IGT failures in tests such as + * kms_flip_tiling. + */ + if (intel_fb_is_ccs_modifier(fb->base.modifier) && + !xe_bo_is_vram(bo) && !xe_bo_is_stolen(bo)) + return false; + + return true; +} + static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb, const struct i915_gtt_view *view, struct i915_vma *vma, @@ -149,7 +163,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb, struct xe_tile *tile0 = xe_device_get_root_tile(xe); struct xe_ggtt *ggtt = tile0->mem.ggtt; struct drm_gem_object *obj = intel_fb_bo(&fb->base); - struct xe_bo *bo = gem_to_xe_bo(obj), *dpt; + struct xe_bo *bo = gem_to_xe_bo(obj), *dpt = ERR_PTR(-EINVAL); u32 dpt_size, size = bo->ttm.base.size; if (view->type == I915_GTT_VIEW_NORMAL) @@ -170,7 +184,7 @@ static int __xe_pin_fb_vma_dpt(const struct intel_framebuffer *fb, XE_BO_FLAG_GGTT | XE_BO_FLAG_PAGETABLE, alignment, false); - else + else if (try_dpt_stolen(fb, bo)) dpt = xe_bo_create_pin_map_at_novm(xe, tile0, dpt_size, ~0ull, ttm_bo_type_kernel, -- 2.52.0