Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Atwood <matthew.s.atwood@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>,
	<prashanth.kumar@inte.com>, <dnyaneshwar.bhadane@intel.com>,
	<vinay.belgaumkar@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <prashanth.kumar@intel.com>,
	<dnyaneshwar.bhadane@intel.com>,
	Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Subject: Re: [PATCH v4 05/13] drm/xe/psmi: Add Wa_16023683509
Date: Wed, 20 Aug 2025 13:42:47 -0700	[thread overview]
Message-ID: <aKYzR0l0NIhtiShu@msatwood-mobl> (raw)
In-Reply-To: <20250818-psmi-v4-5-a330783ce1c0@intel.com>

On Mon, Aug 18, 2025 at 10:37:30AM -0700, Lucas De Marchi wrote:
> From: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> 
> This WA ensures GuC will restore the media MCFG registers at C6
> exit.
> 
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> ---
> v2:
>  - Enable only when PSMI is enabled
> ---
>  drivers/gpu/drm/xe/xe_guc.c        | 3 +++
>  drivers/gpu/drm/xe/xe_guc_fwif.h   | 1 +
>  drivers/gpu/drm/xe/xe_wa_oob.rules | 2 ++
>  3 files changed, 6 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index 883f700e532a7..37d06c51180cb 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -219,6 +219,9 @@ static u32 guc_ctl_wa_flags(struct xe_guc *guc)
>  	if (XE_GT_WA(gt, 14018913170))
>  		flags |= GUC_WA_ENABLE_TSC_CHECK_ON_RC6;
>  
> +	if (XE_GT_WA(gt, 16023683509))
> +		flags |= GUC_WA_SAVE_RESTORE_MCFG_REG_AT_MC6;
> +
>  	return flags;
>  }
>  
> diff --git a/drivers/gpu/drm/xe/xe_guc_fwif.h b/drivers/gpu/drm/xe/xe_guc_fwif.h
> index 400004f1838a0..0508f1064178e 100644
> --- a/drivers/gpu/drm/xe/xe_guc_fwif.h
> +++ b/drivers/gpu/drm/xe/xe_guc_fwif.h
> @@ -108,6 +108,7 @@ struct guc_update_exec_queue_policy {
>  #define   GUC_WA_RENDER_RST_RC6_EXIT	BIT(19)
>  #define   GUC_WA_RCS_REGS_IN_CCS_REGS_LIST	BIT(21)
>  #define   GUC_WA_ENABLE_TSC_CHECK_ON_RC6	BIT(22)
> +#define   GUC_WA_SAVE_RESTORE_MCFG_REG_AT_MC6	BIT(25)
>  
>  #define GUC_CTL_FEATURE			2
>  #define   GUC_CTL_ENABLE_SLPC		BIT(2)
> diff --git a/drivers/gpu/drm/xe/xe_wa_oob.rules b/drivers/gpu/drm/xe/xe_wa_oob.rules
> index 303a5e05d9932..fe369e8a01012 100644
> --- a/drivers/gpu/drm/xe/xe_wa_oob.rules
> +++ b/drivers/gpu/drm/xe/xe_wa_oob.rules
> @@ -72,6 +72,8 @@ no_media_l3	MEDIA_VERSION(3000)
>  		MEDIA_VERSION(2000), FUNC(xe_rtp_match_psmi_enabled)
>  		MEDIA_VERSION(3000), FUNC(xe_rtp_match_psmi_enabled)
>  		MEDIA_VERSION(3002), FUNC(xe_rtp_match_psmi_enabled)
> +16023683509	MEDIA_VERSION(2000), FUNC(xe_rtp_match_psmi_enabled)
> +		MEDIA_VERSION(3000), GRAPHICS_STEP(A0, B0), FUNC(xe_rtp_match_psmi_enabled)
				    ^MEDIA_STEP(A0, B0)
MattA
>  
>  # SoC workaround - currently applies to all platforms with the following
>  # primary GT GMDID
> 
> -- 
> 2.50.1
> 

  reply	other threads:[~2025-08-20 20:43 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-18 17:37 [PATCH v4 00/13] drm/xe: Add psmi support Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 01/13] drm/xe/psmi: Add GuC flag to enable PSMI Lucas De Marchi
2025-08-21 14:47   ` Belgaumkar, Vinay
2025-08-18 17:37 ` [PATCH v4 02/13] drm/xe/psmi: Add debugfs interface for PSMI Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 03/13] drm/xe/rtp: Add match for psmi Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 04/13] drm/xe/psmi: Add Wa_14020001231 Lucas De Marchi
2025-08-20 20:31   ` Matt Atwood
2025-08-18 17:37 ` [PATCH v4 05/13] drm/xe/psmi: Add Wa_16023683509 Lucas De Marchi
2025-08-20 20:42   ` Matt Atwood [this message]
2025-08-18 17:37 ` [PATCH v4 06/13] drm/xe/configfs: Simplify kernel doc Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 07/13] drm/xe/configfs: Allow to enable PSMI Lucas De Marchi
2025-08-20  7:52   ` Riana Tauro
2025-08-18 17:37 ` [PATCH v4 08/13] drm/xe/configfs: Use guard() for dev->lock Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 09/13] drm/xe/configfs: Block runtime attribute changes Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 10/13] drm/xe/configfs: Use tree-like output in documentation Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 11/13] drm/xe/configfs: Improve documentation steps Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 12/13] drm/xe/configfs: Minor fixes to documentation Lucas De Marchi
2025-08-18 17:37 ` [PATCH v4 13/13] drm/xe/configfs: Dump custom settings when binding Lucas De Marchi
2025-08-18 19:50 ` ✗ CI.checkpatch: warning for drm/xe: Add psmi support (rev4) Patchwork
2025-08-18 19:51 ` ✓ CI.KUnit: success " Patchwork
2025-08-18 21:13 ` ✓ Xe.CI.BAT: " Patchwork
2025-08-19 16:04 ` ✗ Xe.CI.Full: failure " Patchwork
2025-08-19 16:51   ` Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aKYzR0l0NIhtiShu@msatwood-mobl \
    --to=matthew.s.atwood@intel.com \
    --cc=dnyaneshwar.bhadane@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=prashanth.kumar@inte.com \
    --cc=prashanth.kumar@intel.com \
    --cc=vinay.belgaumkar@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox