From mboxrd@z Thu Jan 1 00:00:00 1970 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 A6874EA810A for ; Tue, 10 Feb 2026 12:52:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E79C10E576; Tue, 10 Feb 2026 12:52:46 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="kcuh37AD"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7097710E57A for ; Tue, 10 Feb 2026 12:52:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770727963; x=1802263963; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=aXVIrQnKJCVmE+k9NuXUk6ax00oiw/LSHRchFDyQsCU=; b=kcuh37ADuqRmFfHqjpT8XlZX1AjWO3Ee87JYBTE5K0o7swUXIiZhPdwV 3t+9vv0OLvWYFMRzF4IuhJa71+9t72jQsyxLdtzqAO3QotIyM6dqd6aTl PytYoaa3uIxIEjpW5mUa0lpbfVSaqZI59VZhuex8zgRUj79SilVMgtsy5 MwfpAdhvQi/zhhR9+JcZMvZIXyzlelN98XCdNonK4YgslQR4KPoUdLxAC Ugpd3RVCBHamzNmBwae/66u8TCLLk8wr7wnlVK3aEbALBMq3AXWzsJ11e LMJAqudjtgeDg4281dZGDbUceMmyswnst1TCcG1Xx6Jz02rP+cuVEKLsa g==; X-CSE-ConnectionGUID: aM1N3MACSzqzvGFGlSLqbg== X-CSE-MsgGUID: TeopvhpiQS+Y6hlw/tJcfQ== X-IronPort-AV: E=McAfee;i="6800,10657,11697"; a="82492525" X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="82492525" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2026 04:52:43 -0800 X-CSE-ConnectionGUID: uF+d0DpyS4GIMvbgzIcM5A== X-CSE-MsgGUID: i5bJYxQ4S36lkoBkGqMkDQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,283,1763452800"; d="scan'208";a="211989303" Received: from tejasupa-desk.iind.intel.com (HELO tejasupa-desk) ([10.190.239.37]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2026 04:52:41 -0800 From: Tejas Upadhyay To: intel-xe@lists.freedesktop.org Cc: matthew.auld@intel.com, thomas.hellstrom@linux.intel.com, Tejas Upadhyay Subject: [PATCH 3/3] drm/xe/xe3p: Skip TD flush Date: Tue, 10 Feb 2026 18:21:24 +0530 Message-ID: <20260210125120.1329411-8-tejas.upadhyay@intel.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260210125120.1329411-5-tejas.upadhyay@intel.com> References: <20260210125120.1329411-5-tejas.upadhyay@intel.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" Xe3p has HW ability to do transient display flush so the xe driver can enable this HW feature by default and skip the software TD flush. Bspec: 60002 Signed-off-by: Tejas Upadhyay --- drivers/gpu/drm/xe/xe_device.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c index da2abed94bc0..483813d45474 100644 --- a/drivers/gpu/drm/xe/xe_device.c +++ b/drivers/gpu/drm/xe/xe_device.c @@ -1166,6 +1166,14 @@ void xe_device_td_flush(struct xe_device *xe) { struct xe_gt *root_gt; + /* + * From Xe3p onward the HW takes care of flush of TD entries also along + * with flushing XA entries, which will be at the usual sync points, + * like at the end of submission, so no manual flush is needed here. + */ + if (GRAPHICS_VER(xe) >= 35) + return; + if (!IS_DGFX(xe) || GRAPHICS_VER(xe) < 20) return; -- 2.52.0