All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <vinay.belgaumkar@intel.com>,
	<michal.winiarski@intel.com>, <matthew.brost@intel.com>
Subject: Re: [PATCH 4/5] drm/xe: Move xe_force_wake_init_gt() inside gt initialization
Date: Mon, 29 Apr 2024 16:25:15 -0400	[thread overview]
Message-ID: <ZjACK96eXXS_Uul-@intel.com> (raw)
In-Reply-To: <20240425182410.2705061-5-lucas.demarchi@intel.com>

On Thu, Apr 25, 2024 at 11:24:09AM -0700, Lucas De Marchi wrote:
> xe_force_wake_init_gt() is a software-only initialization and doesn't
> need to be called from xe_device_probe(). Move it to initialize
> together with the gt.
> 
> Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_device.c | 3 ---
>  drivers/gpu/drm/xe/xe_gt.c     | 2 ++
>  2 files changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index 8d04283b3617..d090c4e7d57a 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -572,9 +572,6 @@ int xe_device_probe(struct xe_device *xe)
>  			return err;
>  	}
>  
> -	for_each_gt(gt, xe, id)
> -		xe_force_wake_init_gt(gt, gt_to_fw(gt));
> -
>  	for_each_tile(tile, xe, id) {
>  		err = xe_ggtt_init_early(tile->mem.ggtt);
>  		if (err)
> diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
> index 805fd0acfc03..2e8efce2799a 100644
> --- a/drivers/gpu/drm/xe/xe_gt.c
> +++ b/drivers/gpu/drm/xe/xe_gt.c
> @@ -328,6 +328,8 @@ int xe_gt_init_early(struct xe_gt *gt)
>  	xe_wa_process_oob(gt);
>  	xe_tuning_process_gt(gt);
>  
> +	xe_force_wake_init_gt(gt, gt_to_fw(gt));
> +
>  	return 0;
>  }
>  
> -- 
> 2.43.0
> 

  reply	other threads:[~2024-04-29 20:25 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-25 18:24 [PATCH 0/5] drm/xe: Fix early probe order Lucas De Marchi
2024-04-25 18:24 ` [PATCH 1/5] drm/xe: Drop __engine_mask Lucas De Marchi
2024-04-29 20:29   ` Rodrigo Vivi
2024-04-29 20:36     ` Matthew Brost
2024-04-29 21:03       ` Lucas De Marchi
2024-04-30 15:56         ` Matthew Brost
2024-05-02 11:54           ` Michal Wajdeczko
2024-05-02 12:55             ` Lucas De Marchi
2024-05-02 14:12               ` Michal Wajdeczko
2024-05-02 17:26                 ` Lucas De Marchi
2024-05-02 20:36                   ` Michal Wajdeczko
2024-05-09  0:02   ` Michał Winiarski
2024-05-13 21:35   ` Lucas De Marchi
2024-04-25 18:24 ` [PATCH 2/5] drm/xe: Drop useless forcewake get/put Lucas De Marchi
2024-04-26  5:19   ` Matthew Brost
2024-04-26 14:45     ` Dong, Zhanjun
2024-05-09  0:03   ` Michał Winiarski
2024-04-25 18:24 ` [PATCH 3/5] drm/xe: Move xe_gt_init_early() where it belongs Lucas De Marchi
2024-04-26 15:52   ` Belgaumkar, Vinay
2024-05-09  0:03   ` Michał Winiarski
2024-04-25 18:24 ` [PATCH 4/5] drm/xe: Move xe_force_wake_init_gt() inside gt initialization Lucas De Marchi
2024-04-29 20:25   ` Rodrigo Vivi [this message]
2024-05-09  0:04   ` Michał Winiarski
2024-04-25 18:24 ` [PATCH 5/5] drm/xe: Move sw-only pcode initialization Lucas De Marchi
2024-04-29 20:24   ` Rodrigo Vivi
2024-05-09  0:04   ` Michał Winiarski
2024-04-25 19:16 ` ✓ CI.Patch_applied: success for drm/xe: Fix early probe order Patchwork
2024-04-25 19:16 ` ✓ CI.checkpatch: " Patchwork
2024-04-25 19:17 ` ✓ CI.KUnit: " Patchwork
2024-04-25 19:29 ` ✓ CI.Build: " Patchwork
2024-04-25 19:31 ` ✗ CI.Hooks: failure " Patchwork
2024-04-25 19:37 ` ✗ CI.checksparse: warning " Patchwork
2024-04-25 20:36 ` ✗ CI.BAT: failure " Patchwork
2024-04-26 14:38 ` ✓ CI.Patch_applied: success for drm/xe: Fix early probe order (rev2) Patchwork
2024-04-26 14:39 ` ✓ CI.checkpatch: " Patchwork
2024-04-26 14:40 ` ✓ CI.KUnit: " Patchwork
2024-04-26 14:52 ` ✓ CI.Build: " Patchwork
2024-04-26 14:55 ` ✓ CI.Hooks: " Patchwork
2024-04-26 14:56 ` ✓ CI.checksparse: " Patchwork
2024-04-26 15:23 ` ✗ CI.BAT: failure " Patchwork
2024-04-26 19:50 ` ✗ CI.FULL: " Patchwork
2024-04-30 14:59 ` [PATCH 0/5] drm/xe: Fix early probe order Rodrigo Vivi
2024-05-09  3:54 ` ✗ CI.Patch_applied: failure for drm/xe: Fix early probe order (rev3) 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=ZjACK96eXXS_Uul-@intel.com \
    --to=rodrigo.vivi@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=matthew.brost@intel.com \
    --cc=michal.winiarski@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.