[PATCH 5/5] drm/xe: Move sw-only pcode initialization

Michał Winiarski michal.winiarski at intel.com
Thu May 9 00:04:49 UTC 2024


On Thu, Apr 25, 2024 at 11:24:10AM -0700, Lucas De Marchi wrote:
> Move it to xe_gt_init_early() that initializes the sw-only part for each
> gt.
> 
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>

Reviewed-by: Michał Winiarski <michal.winiarski at intel.com>

-Michał

> ---
>  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 d090c4e7d57a..c0f2cf0dc006 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -596,9 +596,6 @@ int xe_device_probe(struct xe_device *xe)
>  	if (err)
>  		return err;
>  
> -	for_each_gt(gt, xe, id)
> -		xe_pcode_init(gt);
> -
>  	err = xe_display_init_noirq(xe);
>  	if (err)
>  		return err;
> diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c
> index 2e8efce2799a..b6ab3e0cfb64 100644
> --- a/drivers/gpu/drm/xe/xe_gt.c
> +++ b/drivers/gpu/drm/xe/xe_gt.c
> @@ -44,6 +44,7 @@
>  #include "xe_migrate.h"
>  #include "xe_mmio.h"
>  #include "xe_pat.h"
> +#include "xe_pcode.h"
>  #include "xe_pm.h"
>  #include "xe_mocs.h"
>  #include "xe_reg_sr.h"
> @@ -329,6 +330,7 @@ int xe_gt_init_early(struct xe_gt *gt)
>  	xe_tuning_process_gt(gt);
>  
>  	xe_force_wake_init_gt(gt, gt_to_fw(gt));
> +	xe_pcode_init(gt);
>  
>  	return 0;
>  }
> -- 
> 2.43.0
> 


More information about the Intel-xe mailing list