Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Subject: Re: [PATCH] drm/xe/dg1: Fix power gate sequence.
Date: Fri, 20 Dec 2024 09:19:03 +0530	[thread overview]
Message-ID: <a3706685-4fff-430f-9729-2194ce632a12@intel.com> (raw)
In-Reply-To: <20241219235536.454270-1-rodrigo.vivi@intel.com>



On 20-12-2024 05:25, Rodrigo Vivi wrote:
> sub-pipe PG is not present on DG1. Setting these bits can disable
> other power gates and cause GPU hangs on video playbacks.
> 
> VLK: 16314, 4304
> 
> Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13381
> Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
> Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
>   drivers/gpu/drm/xe/xe_gt_idle.c | 10 ++++++----
>   1 file changed, 6 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gt_idle.c b/drivers/gpu/drm/xe/xe_gt_idle.c
> index fd80afeef56a..ffd3ba7f6656 100644
> --- a/drivers/gpu/drm/xe/xe_gt_idle.c
> +++ b/drivers/gpu/drm/xe/xe_gt_idle.c
> @@ -122,10 +122,12 @@ void xe_gt_idle_enable_pg(struct xe_gt *gt)
>   	if (!xe_gt_is_media_type(gt))
>   		gtidle->powergate_enable |= RENDER_POWERGATE_ENABLE;
>   
> -	for (i = XE_HW_ENGINE_VCS0, j = 0; i <= XE_HW_ENGINE_VCS7; ++i, ++j) {
> -		if ((gt->info.engine_mask & BIT(i)))
> -			gtidle->powergate_enable |= (VDN_HCP_POWERGATE_ENABLE(j) |
> -						     VDN_MFXVDENC_POWERGATE_ENABLE(j));
> +	if (xe->info.platform != XE_DG1) {
> +		for (i = XE_HW_ENGINE_VCS0, j = 0; i <= XE_HW_ENGINE_VCS7; ++i, ++j) {
> +			if ((gt->info.engine_mask & BIT(i)))
> +				gtidle->powergate_enable |= (VDN_HCP_POWERGATE_ENABLE(j) |
> +							     VDN_MFXVDENC_POWERGATE_ENABLE(j));
> +		}

Looks good to me.
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>

>   	}
>   
>   	fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);


  parent reply	other threads:[~2024-12-20  3:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-19 23:55 [PATCH] drm/xe/dg1: Fix power gate sequence Rodrigo Vivi
2024-12-20  1:50 ` ✓ CI.Patch_applied: success for " Patchwork
2024-12-20  1:50 ` ✓ CI.checkpatch: " Patchwork
2024-12-20  1:51 ` ✓ CI.KUnit: " Patchwork
2024-12-20  2:09 ` ✓ CI.Build: " Patchwork
2024-12-20  2:11 ` ✓ CI.Hooks: " Patchwork
2024-12-20  2:13 ` ✓ CI.checksparse: " Patchwork
2024-12-20  3:49 ` Ghimiray, Himal Prasad [this message]
2024-12-20  8:04 ` ✓ 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=a3706685-4fff-430f-9729-2194ce632a12@intel.com \
    --to=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=rodrigo.vivi@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