Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Poosa, Karthik" <karthik.poosa@intel.com>
To: Vinay Belgaumkar <vinay.belgaumkar@intel.com>,
	<intel-xe@lists.freedesktop.org>
Subject: Re: [2/3] drm/xe: Access MMIO after pcode init
Date: Fri, 16 Oct 2026 23:32:24 +0530	[thread overview]
Message-ID: <cfadcabe-0a2f-4e12-930a-e07bf78ca960@intel.com> (raw)
In-Reply-To: <20261015165451.154495-7-vinay.belgaumkar@intel.com>


On 15-10-2026 22:24, Vinay Belgaumkar wrote:
> Allow pcode initialization to complete before we start poking around
> the MMIO space during resume. This ensures MMIO space is ready for access.
>
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> ---
>   drivers/gpu/drm/xe/xe_pm.c | 12 ++++++------
>   1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
> index daa7ba2df317..1f5097875bcd 100644
> --- a/drivers/gpu/drm/xe/xe_pm.c
> +++ b/drivers/gpu/drm/xe/xe_pm.c
> @@ -241,9 +241,6 @@ int xe_pm_resume(struct xe_device *xe)
>   	drm_dbg(&xe->drm, "Resuming device\n");
>   	trace_xe_pm_resume(xe, __builtin_return_address(0));
>   
> -	for_each_gt(gt, xe, id)
> -		xe_gt_idle_disable_c6(gt);
> -
>   	for_each_tile(tile, xe, id)
>   		xe_wa_apply_tile_workarounds(tile);

shouldn't xe_wa_apply_tile_workarounds() also be after pcode ready ?
are the MMIOs accessed inside independent of pcode readiness ?
if it is okay, below changes look right to me.

>   
> @@ -251,6 +248,9 @@ int xe_pm_resume(struct xe_device *xe)
>   	if (err)
>   		return err;
>   
> +	for_each_gt(gt, xe, id)
> +		xe_gt_idle_disable_c6(gt);
> +
>   	xe_display_pm_resume_early(xe);
>   
>   	/*
> @@ -698,13 +698,13 @@ int xe_pm_runtime_resume(struct xe_device *xe)
>   	xe_rpm_lockmap_acquire(xe);
>   
>   	if (xe->d3cold.allowed) {
> -		for_each_gt(gt, xe, id)
> -			xe_gt_idle_disable_c6(gt);
> -
>   		err = xe_pcode_ready(xe, true);
>   		if (err)
>   			goto out;
>   
> +		for_each_gt(gt, xe, id)
> +			xe_gt_idle_disable_c6(gt);
> +
>   		xe_display_pm_resume_early(xe);
>   
>   		/*

  parent reply	other threads:[~2026-10-16 18:02 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-15 16:54 [PATCH 0/3] drm/xe: Some d3cold related fixes Vinay Belgaumkar
2026-10-15 16:54 ` [PATCH 1/3] drm/xe: Toggle the D3Cold enable flag at runtime resume Vinay Belgaumkar
2026-10-16 18:23   ` [1/3] " Poosa, Karthik
2026-10-16 18:35     ` Belgaumkar, Vinay
2026-10-15 16:54 ` [PATCH 2/3] drm/xe: Access MMIO after pcode init Vinay Belgaumkar
2026-10-15 23:43   ` sashiko-bot
2026-10-15 23:52     ` Belgaumkar, Vinay
2026-10-16 18:02   ` Poosa, Karthik [this message]
2026-10-16 18:05     ` [2/3] " Belgaumkar, Vinay
2026-10-15 16:54 ` [PATCH 3/3] drm/xe: Memset g2g buffer on resume Vinay Belgaumkar
2026-10-16 18:49   ` Matthew Brost
2026-10-16 18:56     ` Matthew Brost
2026-10-16 20:43     ` Belgaumkar, Vinay
2026-10-18  1:36       ` Matthew Brost
2026-10-16  0:03 ` ✓ CI.KUnit: success for drm/xe: Some d3cold related fixes Patchwork
2026-10-16  0:41 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-16 11:38 ` ✓ Xe.CI.FULL: " 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=cfadcabe-0a2f-4e12-930a-e07bf78ca960@intel.com \
    --to=karthik.poosa@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --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