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

Matthew Brost matthew.brost at intel.com
Thu Jan 23 17:47:44 UTC 2025


On Wed, Jan 22, 2025 at 10:49:55PM +0100, Michal Wajdeczko wrote:
> We believe that we stopped allocating memory during resume or
> restart steps thus we can say that SRIOV is now reclaim safe.
> 

I'd mention we have lockdep annotations to prove SRIOV is reclaim safe.

With that:
Reviewed-by: Matthew Brost <matthew.brost at intel.com>

> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
> ---
>  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