[PATCH i-g-t v5 3/7] tests/intel/xe_pat: extend for xe3

Cavitt, Jonathan jonathan.cavitt at intel.com
Wed Dec 18 22:04:24 UTC 2024


-----Original Message-----
From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Clint Taylor
Sent: Wednesday, December 18, 2024 1:37 PM
To: igt-dev at lists.freedesktop.org
Subject: [PATCH i-g-t v5 3/7] tests/intel/xe_pat: extend for xe3
> 
> From: Matthew Auld <matthew.auld at intel.com>
> 
> Same pat_index modes should apply as for xe2. Matches the kernel.
> 
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Signed-off-by: Clint Taylor <Clinton.A.Taylor at intel.com>
> Reviewed-by: Sai Teja Pottumuttu <sai.teja.pottumuttu at intel.com>

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

> ---
>  tests/intel/xe_pat.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/intel/xe_pat.c b/tests/intel/xe_pat.c
> index b0b3ad8a7..1322df349 100644
> --- a/tests/intel/xe_pat.c
> +++ b/tests/intel/xe_pat.c
> @@ -110,7 +110,7 @@ static void pat_index_all(int fd)
>  
>  	for (pat_index = 0; pat_index <= intel_get_max_pat_index(fd);
>  	     pat_index++) {
> -		if (intel_get_device_info(dev_id)->graphics_ver == 20 &&
> +		if (intel_get_device_info(dev_id)->graphics_ver >= 20 &&
>  		    pat_index >= 16 && pat_index <= 19) { /* hw reserved */
>  			igt_assert_eq(__xe_vm_bind(fd, vm, 0, bo, 0, 0x40000,
>  						   size, DRM_XE_VM_BIND_OP_MAP, 0, NULL, 0, 0,
> @@ -854,7 +854,7 @@ static uint8_t get_pat_idx_wt(int fd, bool *compressed)
>  	uint16_t dev_id = intel_get_drm_devid(fd);
>  
>  	if (compressed)
> -		*compressed = intel_get_device_info(dev_id)->graphics_ver == 20;
> +		*compressed = intel_get_device_info(dev_id)->graphics_ver >= 20;
>  
>  	return intel_get_pat_idx_wt(fd);
>  }
> -- 
> 2.25.1
> 
> 


More information about the igt-dev mailing list