drm/xe: Rename xe_uc_init_hw to xe_uc_load_hw

It feels to me like load is closer to the intention than init_hw.

It makes the init calls slightly less confusing to me. :)

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250619104858.418440-24-dev@lankhorst.se
Signed-off-by: Maarten Lankhorst <dev@lankhorst.se>
This commit is contained in:
Maarten Lankhorst 2025-06-19 12:49:10 +02:00
parent a42939ee86
commit 18635b6328
3 changed files with 7 additions and 7 deletions

View File

@ -573,7 +573,7 @@ static int gt_init_with_all_forcewake(struct xe_gt *gt)
}
}
err = xe_uc_init_hw(&gt->uc);
err = xe_uc_load_hw(&gt->uc);
if (err)
goto err_force_wake;
@ -738,7 +738,7 @@ static int vf_gt_restart(struct xe_gt *gt)
if (err)
return err;
err = xe_uc_init_hw(&gt->uc);
err = xe_uc_load_hw(&gt->uc);
if (err)
return err;
@ -776,7 +776,7 @@ static int do_gt_restart(struct xe_gt *gt)
if (err)
return err;
err = xe_uc_init_hw(&gt->uc);
err = xe_uc_load_hw(&gt->uc);
if (err)
return err;

View File

@ -144,7 +144,7 @@ int xe_uc_sanitize_reset(struct xe_uc *uc)
return uc_reset(uc);
}
static int vf_uc_init_hw(struct xe_uc *uc)
static int vf_uc_load_hw(struct xe_uc *uc)
{
int err;
@ -173,7 +173,7 @@ static int vf_uc_init_hw(struct xe_uc *uc)
* Should be called during driver load, after every GT reset, and after every
* suspend to reload / auth the firmwares.
*/
int xe_uc_init_hw(struct xe_uc *uc)
int xe_uc_load_hw(struct xe_uc *uc)
{
int ret;
@ -182,7 +182,7 @@ int xe_uc_init_hw(struct xe_uc *uc)
return 0;
if (IS_SRIOV_VF(uc_to_xe(uc)))
return vf_uc_init_hw(uc);
return vf_uc_load_hw(uc);
ret = xe_huc_upload(&uc->huc);
if (ret)

View File

@ -11,7 +11,7 @@ struct xe_uc;
int xe_uc_init_noalloc(struct xe_uc *uc);
int xe_uc_init(struct xe_uc *uc);
int xe_uc_init_post_hwconfig(struct xe_uc *uc);
int xe_uc_init_hw(struct xe_uc *uc);
int xe_uc_load_hw(struct xe_uc *uc);
void xe_uc_gucrc_disable(struct xe_uc *uc);
int xe_uc_reset_prepare(struct xe_uc *uc);
void xe_uc_stop_prepare(struct xe_uc *uc);