[PATCH 2/2] tests/intel/prime_mmap: use proper size for dma_buf_fd

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Apr 15 17:14:19 UTC 2025


Hi Pravalika,
On 2025-04-15 at 19:01:06 +0530, Pravalika Gurram wrote:
> From: Chris Wilson <chris.p.wilson at linux.intel.com>

imho in subject: Fix second buffer size

so it will be:

[PATCH 2/2] tests/intel/prime_mmap: Fix second buffer size

> 
> correct the size for dma_buf_fd.

Same here:

Correct the buffer size for dma_buf_fd2.

This can be done at merge time, no need for resend,
with above corrected:

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>


> 
> Signed-off-by: Chris Wilson <chris.p.wilson at linux.intel.com>
> Signed-off-by: Pravalika Gurram <pravalika.gurram at intel.com>
> ---
>  tests/intel/prime_mmap.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/intel/prime_mmap.c b/tests/intel/prime_mmap.c
> index e3a3a021b..ae0c74dfe 100644
> --- a/tests/intel/prime_mmap.c
> +++ b/tests/intel/prime_mmap.c
> @@ -502,7 +502,7 @@ test_aperture_limit(uint32_t region, uint64_t size)
>  	fill_bo_cpu(ptr1, size);
>  	igt_assert(memcmp(ptr1, pattern, sizeof(pattern)) == 0);
>  
> -	handle2 = gem_create(fd, size1);
> +	handle2 = gem_create(fd, size2);
>  	dma_buf_fd2 = prime_handle_to_fd_for_mmap(fd, handle2);
>  	igt_assert(errno == 0);
>  	ptr2 = mmap(NULL, size2, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf_fd2, 0);
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list