Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Roper <matthew.d.roper@intel.com>
To: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
	Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH v2 1/2] drm/xe: fix WA 14018094691
Date: Wed, 7 Aug 2024 16:56:33 -0700	[thread overview]
Message-ID: <20240807235633.GD5774@mdroper-desk1.amr.corp.intel.com> (raw)
In-Reply-To: <20240807235333.1370915-1-daniele.ceraolospurio@intel.com>

On Wed, Aug 07, 2024 at 04:53:32PM -0700, Daniele Ceraolo Spurio wrote:
> This WA is applied while initializing the media GT, but it a primary
> GT WA (because it modifies a register on the primary GT), so the XE_WA
> macro is returning false even when the WA should be applied.
> Fix this by using the primary GT in the macro.
> 
> Note that this WA only applies to PXP and we don't yet support that in
> Xe, so there are no negative effects to this bug, which is why we didn't
> see any errors in testing.
> 
> v2: use the primary GT in the macro instead of marking the WA as
> platform-wide (Lucas, Matt).
> 
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Matt Roper <matthew.d.roper@intel.com>
> Cc: Lucas De Marchi <lucas.demarchi@intel.com>

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_gsc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gsc.c b/drivers/gpu/drm/xe/xe_gsc.c
> index f8239a13fa2b..77ce44e845c5 100644
> --- a/drivers/gpu/drm/xe/xe_gsc.c
> +++ b/drivers/gpu/drm/xe/xe_gsc.c
> @@ -260,7 +260,7 @@ static int gsc_upload_and_init(struct xe_gsc *gsc)
>  	struct xe_tile *tile = gt_to_tile(gt);
>  	int ret;
>  
> -	if (XE_WA(gt, 14018094691)) {
> +	if (XE_WA(tile->primary_gt, 14018094691)) {
>  		ret = xe_force_wake_get(gt_to_fw(tile->primary_gt), XE_FORCEWAKE_ALL);
>  
>  		/*
> @@ -278,7 +278,7 @@ static int gsc_upload_and_init(struct xe_gsc *gsc)
>  
>  	ret = gsc_upload(gsc);
>  
> -	if (XE_WA(gt, 14018094691))
> +	if (XE_WA(tile->primary_gt, 14018094691))
>  		xe_force_wake_put(gt_to_fw(tile->primary_gt), XE_FORCEWAKE_ALL);
>  
>  	if (ret)
> -- 
> 2.43.0
> 

-- 
Matt Roper
Graphics Software Engineer
Linux GPU Platform Enablement
Intel Corporation

  parent reply	other threads:[~2024-08-07 23:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07 23:53 [PATCH v2 1/2] drm/xe: fix WA 14018094691 Daniele Ceraolo Spurio
2024-08-07 23:53 ` [PATCH v2 2/2] drm/xe/bmg: extend WA 14018094691 to BMG Daniele Ceraolo Spurio
2024-08-07 23:56   ` Matt Roper
2024-08-08 17:01     ` Daniele Ceraolo Spurio
2024-08-07 23:56 ` Matt Roper [this message]
2024-08-07 23:58 ` ✓ CI.Patch_applied: success for series starting with [v2,1/2] drm/xe: fix WA 14018094691 Patchwork
2024-08-07 23:58 ` ✓ CI.checkpatch: " Patchwork
2024-08-08  0:00 ` ✓ CI.KUnit: " Patchwork
2024-08-08  0:11 ` ✓ CI.Build: " Patchwork
2024-08-08  0:14 ` ✓ CI.Hooks: " Patchwork
2024-08-08  0:15 ` ✓ CI.checksparse: " Patchwork
2024-08-08  0:35 ` ✓ CI.BAT: " Patchwork
2024-08-08  1:35 ` ✗ CI.FULL: failure " Patchwork
2024-08-08  6:47 ` [PATCH v2 1/2] " 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=20240807235633.GD5774@mdroper-desk1.amr.corp.intel.com \
    --to=matthew.d.roper@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@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