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 497C4ECD9B8 for ; Thu, 5 Feb 2026 23:40:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF0FB10E218; Thu, 5 Feb 2026 23:40:38 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="SVX86Qza"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0655810E178; Thu, 5 Feb 2026 23:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1770334833; x=1801870833; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=JOTUb6QyKsTQFzyAXT2d8kfyESBhC35g03rQHcAXiHk=; b=SVX86QzarRlSnEMKV5oqyhfggRytMAzJOi2TzpazfFIKFN39a90tRTD6 +VRuoay8xdEsuNOHmRl/M55fqJTXnWMyyOPjutc2UErv/uWBgmgaqA9JN Bvi94F9SlWrsXTF3MbNd2kwsqp1kyGiGsx4QRfOe4JBxgS+96bOn67Nn4 rXP0vveu1takOVrljdY90XbC5WTxQ0ZghbtdZMKaFl5n3sD7UmmAhqCpP UtI7FfNjcfLThyA95PK/kDWSDL+TqqEzIFk+DXZtEgOP1NGT4VM7G+WXF TAnSFxGbWZcJR3PsCmhcumtjkPf0TaoxK4GNb/dyzCiJKPeRGDVk3mW7n g==; X-CSE-ConnectionGUID: hpQXmmgVTomEAktHqn38zA== X-CSE-MsgGUID: qQeI8K6WS8CL/XXQOmUojg== X-IronPort-AV: E=McAfee;i="6800,10657,11692"; a="82658685" X-IronPort-AV: E=Sophos;i="6.21,275,1763452800"; d="scan'208";a="82658685" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2026 15:40:33 -0800 X-CSE-ConnectionGUID: kUO3+fLTSVmgzRNr0S5dwg== X-CSE-MsgGUID: Xch1Jc1ISJqx+RpFDXjWhA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,275,1763452800"; d="scan'208";a="210500133" Received: from rfrazer-mobl3.amr.corp.intel.com (HELO [192.168.1.16]) ([10.124.222.82]) by orviesa009-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2026 15:40:26 -0800 From: Gustavo Sousa Date: Thu, 05 Feb 2026 20:39:35 -0300 Subject: [PATCH v2 07/15] drm/xe/xe3p_lpg: Disable reporting of context switch status to GHWSP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260205-nvl-p-upstreaming-v2-7-9ec14f00cc6c@intel.com> References: <20260205-nvl-p-upstreaming-v2-0-9ec14f00cc6c@intel.com> In-Reply-To: <20260205-nvl-p-upstreaming-v2-0-9ec14f00cc6c@intel.com> To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: Gustavo Sousa , Matt Roper , Matt Atwood X-Mailer: b4 0.15-dev 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: Matt Roper By default the hardware reports context switch status into the global hardware status page. The Xe driver doesn't use this information for anything, and as of Xe3p, leaving this setting enabled will prevent other hardware optimizations from being enabled. Disable this reporting as suggested by the tuning guide. Bspec: 72161 Reviewed-by: Matt Atwood Signed-off-by: Matt Roper Signed-off-by: Gustavo Sousa --- drivers/gpu/drm/xe/xe_tuning.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_tuning.c b/drivers/gpu/drm/xe/xe_tuning.c index 5766fa7742d3..a97872b3214b 100644 --- a/drivers/gpu/drm/xe/xe_tuning.c +++ b/drivers/gpu/drm/xe/xe_tuning.c @@ -10,6 +10,7 @@ #include #include +#include "regs/xe_engine_regs.h" #include "regs/xe_gt_regs.h" #include "xe_gt_types.h" #include "xe_platform_types.h" @@ -107,6 +108,12 @@ static const struct xe_rtp_entry_sr engine_tunings[] = { FUNC(xe_rtp_match_first_render_or_compute)), XE_RTP_ACTIONS(SET(RT_CTRL, DIS_NULL_QUERY)) }, + { XE_RTP_NAME("Tuning: disable HW reporting of ctx switch to GHWSP"), + XE_RTP_RULES(GRAPHICS_VERSION_RANGE(3500, XE_RTP_END_VERSION_UNDEFINED)), + XE_RTP_ACTIONS(SET(CSFE_CHICKEN1(0), + GHWSP_CSB_REPORT_DIS, + XE_RTP_ACTION_FLAG(ENGINE_BASE))) + }, }; static const struct xe_rtp_entry_sr lrc_tunings[] = { -- 2.52.0