Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Charles <daniel.charles@intel.com>
To: <sashiko-reviews@lists.linux.dev>, <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH v4] drm/xe/cri: Implement Wa_14028586678
Date: Fri, 30 Oct 2026 12:05:57 -0700	[thread overview]
Message-ID: <0d0bce22-39f7-43a7-8138-e5fd3b27c82d@intel.com> (raw)
In-Reply-To: <sashiko-outbox-191358@kernel.org>


On 10/30/2026 10:49 AM, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] drm/xe: xe_wa_apply_tile_workarounds() runs before xe_pcode_ready() on resume
> --
>
> commit 3d1f950d0d5e813299acdbeedeb799005ea2bb7c
> Author: Fei Yang <fei.yang@intel.com>
>
> drm/xe/cri: Implement Wa_14028586678
>
> This commit implements hardware workaround Wa_14028586678 on Crescent
> Island by updating DWNSTRM_ACCESS_MODE_GAMREQ_MERTSS in
> xe_wa_apply_tile_workarounds() and calling xe_wa_apply_tile_workarounds()
> on runtime D3cold resume.
>
>> diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
>> index 5a562d8daeb94..d4f93de368fc4 100644
>> --- a/drivers/gpu/drm/xe/xe_pm.c
>> +++ b/drivers/gpu/drm/xe/xe_pm.c
>> @@ -687,6 +687,7 @@ int xe_pm_runtime_suspend(struct xe_device *xe)
>>    */
>>   int xe_pm_runtime_resume(struct xe_device *xe)
>>   {
>> +	struct xe_tile *tile;
>>   	struct xe_gt *gt;
>>   	u8 id;
>>   	int err = 0;
>> @@ -702,6 +703,9 @@ int xe_pm_runtime_resume(struct xe_device *xe)
>>   		if (err)
>>   			goto out;
>>   
>> +		for_each_tile(tile, xe, id)
>> +			xe_wa_apply_tile_workarounds(tile);
>> +
> [Severity: Medium]
> In xe_pm_runtime_resume(), xe_wa_apply_tile_workarounds() is called after
> xe_pcode_ready(xe, true).
>
> However, in the system resume path in drivers/gpu/drm/xe/xe_pm.c,
> xe_pm_resume() calls xe_wa_apply_tile_workarounds() before
> xe_pcode_ready(xe, true):
>
> drivers/gpu/drm/xe/xe_pm.c:xe_pm_resume() {
> 	...
> 	for_each_tile(tile, xe, id)
> 		xe_wa_apply_tile_workarounds(tile);
>
> 	err = xe_pcode_ready(xe, true);
> 	if (err)
> 		return err;
> 	...
> }
>
> As noted in xe_device_probe_early() in drivers/gpu/drm/xe/xe_device.c:
>
> 	/*
> 	 * Check for pcode uncore_init status to confirm if the SoC
> 	 * initialization is complete. Until done, any MMIO or lmem access from
> 	 * the driver will be blocked
> 	 */
> 	err = xe_pcode_probe_early(xe);
>
> When resuming from system suspend, can the MMIO read-modify-write to
> DWNSTRM_ACCESS_MODE_GAMREQ_MERTSS in xe_wa_apply_tile_workarounds() run
> before PCODE SoC initialization has completed and while MMIO access is
> still blocked, leaving Wa_14028586678 unapplied or corrupting other fields
> of the register?
>
> Should xe_pm_resume() also wait for xe_pcode_ready(xe, true) before calling
> xe_wa_apply_tile_workarounds()?
I'll move it after xe_pcode_ready(xe, true)
>

  reply	other threads:[~2026-10-30 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 17:36 [PATCH v4] drm/xe/cri: Implement Wa_14028586678 Daniel Charles
2026-10-30 17:49 ` sashiko-bot
2026-10-30 19:05   ` Daniel Charles [this message]
2026-10-30 19:18 ` ✓ CI.KUnit: success for " Patchwork
2026-10-30 19:57 ` ✓ Xe.CI.BAT: " Patchwork

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=0d0bce22-39f7-43a7-8138-e5fd3b27c82d@intel.com \
    --to=daniel.charles@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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