[igt-dev] [PATCH i-g-t] lib/intel_allocator: Fix missing alignment bug

Kamil Konieczny kamil.konieczny at linux.intel.com
Wed Jun 7 08:00:50 UTC 2023


On 2023-06-06 at 20:48:47 +0200, Zbigniew Kempczyński wrote:
> For helpers which don't pass alignment we must establish any positive
> value to move forward in RELOC allocator.
> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>

lgtm,

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

> ---
>  lib/intel_allocator.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/lib/intel_allocator.c b/lib/intel_allocator.c
> index 45c1168ab5..8161221dbf 100644
> --- a/lib/intel_allocator.c
> +++ b/lib/intel_allocator.c
> @@ -935,6 +935,9 @@ static uint64_t __intel_allocator_open_full(int fd, uint32_t ctx,
>  
>  		igt_assert(xe_dev);
>  
> +		if (!default_alignment)
> +			req.open.default_alignment = xe_get_default_alignment(fd);
> +
>  		if (!end)
>  			req.open.end = 1ull << xe_dev->va_bits;
>  	}
> -- 
> 2.34.1
> 


More information about the igt-dev mailing list