[PATCH 3/3] drm/xe/pf: Always use Multi-Level LMTT for newer platforms

Rodrigo Vivi rodrigo.vivi at intel.com
Tue Feb 13 22:30:56 UTC 2024


On Tue, Feb 13, 2024 at 10:24:18PM +0100, Michal Wajdeczko wrote:
> Change function logic to prefer Multi-Level LMTT variant on all
> new platforms.
> 
> Bspec: 52404, 67468
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
> Cc: Michał Winiarski <michal.winiarski at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_lmtt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_lmtt.c b/drivers/gpu/drm/xe/xe_lmtt.c
> index dfb0e1887615..ac77e9507f07 100644
> --- a/drivers/gpu/drm/xe/xe_lmtt.c
> +++ b/drivers/gpu/drm/xe/xe_lmtt.c
> @@ -35,7 +35,7 @@
>  
>  static bool xe_has_multi_level_lmtt(struct xe_device *xe)
>  {
> -	return xe->info.platform == XE_PVC;
> +	return xe->info.platform >= XE_PVC;

We should use GRAPHICS_VER(xe) for greater-then checks and
limit the platform only for specific cases (== only).

>  }
>  
>  static struct xe_tile *lmtt_to_tile(struct xe_lmtt *lmtt)
> -- 
> 2.43.0
> 


More information about the Intel-xe mailing list