Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Piotr Piórkowski" <piotr.piorkowski@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 4/4] drm/xe/vf: Custom GT restart
Date: Thu, 6 Jun 2024 13:49:40 +0200	[thread overview]
Message-ID: <20240606114940.urvk67oi2fmro6ae@intel.com> (raw)
In-Reply-To: <20240604212231.1416-5-michal.wajdeczko@intel.com>

Michal Wajdeczko <michal.wajdeczko@intel.com> wrote on wto [2024-cze-04 23:22:31 +0200]:
> Only few steps from the GT restart phase are applicable for the
> VF drivers, as initialization of PAT, WOPCM, MOCS or CCS mode can
> be done only by the native or PF drivers. Use custom GT restart
> function if running in VF mode.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
> ---
>  drivers/gpu/drm/xe/xe_gt.c | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
> diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
> index 4e11662b78bd..57d84751e160 100644
> --- a/drivers/gpu/drm/xe/xe_gt.c
> +++ b/drivers/gpu/drm/xe/xe_gt.c
> @@ -611,12 +611,34 @@ static int do_gt_reset(struct xe_gt *gt)
>  	return err;
>  }
>  
> +static int vf_gt_restart(struct xe_gt *gt)
> +{
> +	int err;
> +
> +	err = xe_uc_sanitize_reset(&gt->uc);
> +	if (err)
> +		return err;
> +
> +	err = xe_uc_init_hw(&gt->uc);
> +	if (err)
> +		return err;
> +
> +	err = xe_uc_start(&gt->uc);
> +	if (err)
> +		return err;
> +
> +	return 0;
> +}
> +
>  static int do_gt_restart(struct xe_gt *gt)
>  {
>  	struct xe_hw_engine *hwe;
>  	enum xe_hw_engine_id id;
>  	int err;
>  
> +	if (IS_SRIOV_VF(gt_to_xe(gt)))
> +		return vf_gt_restart(gt);
> +

LGTM:
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>

>  	xe_pat_init(gt);
>  
>  	xe_gt_mcr_set_implicit_defaults(gt);
> -- 
> 2.43.0
> 

-- 

  reply	other threads:[~2024-06-06 11:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-04 21:22 [PATCH 0/4] VF: Custom init and reset steps Michal Wajdeczko
2024-06-04 21:22 ` [PATCH 1/4] drm/xe/vf: Support only GuC/HuC firmwares Michal Wajdeczko
2024-06-06 11:29   ` Piotr Piórkowski
2024-06-04 21:22 ` [PATCH 2/4] drm/xe/vf: Custom uC initialization Michal Wajdeczko
2024-06-06 11:37   ` Piotr Piórkowski
2024-06-06 13:34     ` Michal Wajdeczko
2024-06-04 21:22 ` [PATCH 3/4] drm/xe/vf: Custom GuC reset Michal Wajdeczko
2024-06-06 11:38   ` Piotr Piórkowski
2024-06-04 21:22 ` [PATCH 4/4] drm/xe/vf: Custom GT restart Michal Wajdeczko
2024-06-06 11:49   ` Piotr Piórkowski [this message]
2024-06-05  5:02 ` ✓ CI.Patch_applied: success for VF: Custom init and reset steps Patchwork
2024-06-05  5:02 ` ✓ CI.checkpatch: " Patchwork
2024-06-05  5:03 ` ✓ CI.KUnit: " Patchwork
2024-06-05  5:15 ` ✓ CI.Build: " Patchwork
2024-06-05  5:15 ` ✗ CI.Hooks: failure " Patchwork
2024-06-05  5:17 ` ✓ CI.checksparse: success " Patchwork
2024-06-05  5:44 ` ✓ CI.BAT: " Patchwork
2024-06-05 15:36 ` ✗ CI.FULL: failure " Patchwork
2024-06-06 13:58   ` Michal Wajdeczko

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=20240606114940.urvk67oi2fmro6ae@intel.com \
    --to=piotr.piorkowski@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=michal.wajdeczko@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