[Intel-xe] [PATCH i-g-t] tests/xe: Boost command streamer prefetch size

Matthew Brost matthew.brost at intel.com
Fri Jul 21 18:41:46 UTC 2023


On Fri, Jul 21, 2023 at 11:09:13AM -0700, Matt Roper wrote:
> The actual prefetch size variest by platform and by engine.  MTL's RCS
> engine currently has the highest prefetch size of 2KB.
> 
> Bspec: 45718
> Signed-off-by: Matt Roper <matthew.d.roper at intel.com>

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

We also need to update Xe too, in particular this function:

 17 static int bb_prefetch(struct xe_gt *gt)
 18 {
 19         struct xe_device *xe = gt_to_xe(gt);
 20
 21         if (GRAPHICS_VERx100(xe) >= 1250 && !xe_gt_is_media_type(gt))
 22                 /*
 23                  * RCS and CCS require 1K, although other engines would be
 24                  * okay with 512.
 25                  */
 26                 return SZ_1K;
 27         else
 28                 return SZ_512;
 29 }

I'll post a patch and CC you.

Matt

> ---
>  lib/xe/xe_ioctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/xe/xe_ioctl.c b/lib/xe/xe_ioctl.c
> index 0b5c7a4fc..1f9240cd9 100644
> --- a/lib/xe/xe_ioctl.c
> +++ b/lib/xe/xe_ioctl.c
> @@ -47,7 +47,7 @@
>  
>  uint32_t xe_cs_prefetch_size(int fd)
>  {
> -	return 512;
> +	return 2048;
>  }
>  
>  uint32_t xe_vm_create(int fd, uint32_t flags, uint64_t ext)
> -- 
> 2.41.0
> 


More information about the Intel-xe mailing list