[PATCH 3/3] drm/xe: Don't treat SR-IOV platforms as reclaim unsafe

Cavitt, Jonathan jonathan.cavitt at intel.com
Wed Jan 22 22:31:44 UTC 2025


-----Original Message-----
From: Intel-xe <intel-xe-bounces at lists.freedesktop.org> On Behalf Of Michal Wajdeczko
Sent: Wednesday, January 22, 2025 1:50 PM
To: intel-xe at lists.freedesktop.org
Cc: Wajdeczko, Michal <Michal.Wajdeczko at intel.com>; Thomas Hellström <thomas.hellstrom at linux.intel.com>
Subject: [PATCH 3/3] drm/xe: Don't treat SR-IOV platforms as reclaim unsafe
> 
> We believe that we stopped allocating memory during resume or
> restart steps thus we can say that SRIOV is now reclaim safe.
> 
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>

Assuming this works correctly and the belief holds true:
Reviewed-by: Jonathan Cavitt <jonathan.cavitt at intel.com>
-Jonathan Cavitt

> ---
>  drivers/gpu/drm/xe/xe_pm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
> index c9cc0c091dfd..1c42c47a3005 100644
> --- a/drivers/gpu/drm/xe/xe_pm.c
> +++ b/drivers/gpu/drm/xe/xe_pm.c
> @@ -90,7 +90,7 @@ static struct lockdep_map xe_pm_runtime_nod3cold_map = {
>   */
>  bool xe_rpm_reclaim_safe(const struct xe_device *xe)
>  {
> -	return !xe->d3cold.capable && !xe->info.has_sriov;
> +	return !xe->d3cold.capable;
>  }
>  
>  static void xe_rpm_lockmap_acquire(const struct xe_device *xe)
> -- 
> 2.47.1
> 
> 


More information about the Intel-xe mailing list