[PATCH 8/9] drm/xe: Rename update_device_info() after sriov

Cavitt, Jonathan jonathan.cavitt at intel.com
Fri Feb 14 22:20:09 UTC 2025


-----Original Message-----
From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Lucas De Marchi
Sent: Friday, February 14, 2025 1:23 PM
To: intel-xe at lists.freedesktop.org
Cc: De Marchi, Lucas <lucas.demarchi at intel.com>; Wajdeczko, Michal <Michal.Wajdeczko at intel.com>
Subject: [PATCH 8/9] drm/xe: Rename update_device_info() after sriov
> 
> This is only changing info flags for SR-IOV reasons. Rename it
> accordingly, because there are several other places in probe where the
> flags are updated, which is not inside this function.
> 
> Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>

LGTM.
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt

> ---
>  drivers/gpu/drm/xe/xe_device.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
> index 4af4b526a2801..3255c36700f60 100644
> --- a/drivers/gpu/drm/xe/xe_device.c
> +++ b/drivers/gpu/drm/xe/xe_device.c
> @@ -660,7 +660,7 @@ static int wait_for_lmem_ready(struct xe_device *xe)
>  }
>  ALLOW_ERROR_INJECTION(wait_for_lmem_ready, ERRNO); /* See xe_pci_probe() */
>  
> -static void update_device_info(struct xe_device *xe)
> +static void sriov_update_device_info(struct xe_device *xe)
>  {
>  	/* disable features that are not available/applicable to VFs */
>  	if (IS_SRIOV_VF(xe)) {
> @@ -691,7 +691,7 @@ int xe_device_probe_early(struct xe_device *xe)
>  
>  	xe_sriov_probe_early(xe);
>  
> -	update_device_info(xe);
> +	sriov_update_device_info(xe);
>  
>  	err = xe_pcode_probe_early(xe);
>  	if (err)
> -- 
> 2.48.1
> 
> 


More information about the Intel-xe mailing list