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 5CA84C369C2 for ; Thu, 17 Apr 2025 23:58:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1CFB410E1A9; Thu, 17 Apr 2025 23:58:03 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="dFJZha0D"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id 55CBD10E1A9 for ; Thu, 17 Apr 2025 23:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1744934281; x=1776470281; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=tYhfCK2omk0eYjZ+nB05G+9xdSqtQbo+M+yda1RuZLw=; b=dFJZha0DtOI2b0+lu4e+eougsNjbsmMPl4UtQofkGzf0mMsN+CLQIT4r lM8D1BfS9mAywGTI5J6tKY7BggN7rRAqditeQ4upT0gyGeEZYf0Lw7wCw L5E7+8z/CLtPJs9YjhxaFzmrIDTSOm7XloUessh9i6mWt5roq9ltdybfV ayc3sK7Cu01s/V/HrVenTjeA4tUhyWiLz/spuKnoNYFtPfWZd4k3OUMD6 Xf1/DU8bi4dwI+PEkBIvUMo1VuOI81Y9LLrOXnnSQMGk8r3dsshG/Slob hD7ZP/a+5IqTd8kOdPRGMmpGfcLB8t7d8csBnKEZWOXXLJQUpDq5Enn41 g==; X-CSE-ConnectionGUID: nAspjDTTS4Gbmuo2C5cpPQ== X-CSE-MsgGUID: hhdsIPOJQ9qiY/6ggcJvuA== X-IronPort-AV: E=McAfee;i="6700,10204,11406"; a="46728884" X-IronPort-AV: E=Sophos;i="6.15,220,1739865600"; d="scan'208";a="46728884" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2025 16:57:59 -0700 X-CSE-ConnectionGUID: 9eP0K9PSQkCe763TsLrXBA== X-CSE-MsgGUID: 5XnWjP9KQHG3OTJ8Wjm4UA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,220,1739865600"; d="scan'208";a="135939209" Received: from dut4463arlhx.fm.intel.com ([10.105.10.215]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2025 16:57:58 -0700 From: Umesh Nerlige Ramappa To: intel-xe@lists.freedesktop.org, kenneth@whitecape.org, fei.yang@intel.com, lucas.demarchi@intel.com Subject: [PATCH v2] Revert "drm/xe: enable lite restore" Date: Thu, 17 Apr 2025 16:57:56 -0700 Message-ID: <20250417235756.456283-1-umesh.nerlige.ramappa@intel.com> X-Mailer: git-send-email 2.43.0 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" Lite restore is breaking some functionality in MangoHud. While lite restore is certainly preferable, it is throwing off per context utilization calculations that rely on the context switching out. The utilization counters are used by MangoHud to overlay GPU utilization on screen. Hold off on enabling lite restore until we find a better way to accommodate lite restore with per context utilization counters. v2: checkpatch issues fixed This reverts commit 6ef3bb60557d5e7f5af442c8c9ef0a9190bf3d23. Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4532 Signed-off-by: Umesh Nerlige Ramappa --- drivers/gpu/drm/xe/xe_guc.c | 2 +- drivers/gpu/drm/xe/xe_guc_fwif.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c index c5aace59b62c..97c4ffc63302 100644 --- a/drivers/gpu/drm/xe/xe_guc.c +++ b/drivers/gpu/drm/xe/xe_guc.c @@ -80,7 +80,7 @@ static u32 guc_ctl_debug_flags(struct xe_guc *guc) static u32 guc_ctl_feature_flags(struct xe_guc *guc) { - u32 flags = GUC_CTL_ENABLE_LITE_RESTORE; + u32 flags = 0; if (!guc_to_xe(guc)->info.skip_guc_pc) flags |= GUC_CTL_ENABLE_SLPC; diff --git a/drivers/gpu/drm/xe/xe_guc_fwif.h b/drivers/gpu/drm/xe/xe_guc_fwif.h index 6f57578b07cb..4a7d6fe95a05 100644 --- a/drivers/gpu/drm/xe/xe_guc_fwif.h +++ b/drivers/gpu/drm/xe/xe_guc_fwif.h @@ -106,7 +106,6 @@ struct guc_update_exec_queue_policy { #define GUC_CTL_FEATURE 2 #define GUC_CTL_ENABLE_SLPC BIT(2) -#define GUC_CTL_ENABLE_LITE_RESTORE BIT(4) #define GUC_CTL_DISABLE_SCHEDULER BIT(14) #define GUC_CTL_DEBUG 3 -- 2.43.0