[igt-dev] [PATCH i-g-t 5/7] tests/i915_pm_rpm: Fix invalid alignment

Dixit, Ashutosh ashutosh.dixit at intel.com
Thu Oct 14 04:18:07 UTC 2021


On Thu, 07 Oct 2021 23:54:30 -0700, Zbigniew Kempczyński wrote:
>
> In theory kernel requires vma to be power of two aligned, but in
> practice inserting vma requires alignment to be at least GTT min
> alignment - which is page size atm. Change this alignment from 64->0
> to allow test to run on gens where alignment must be zero in execbuf
> as it will be page size aligned anyway.
>
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Petri Latvala <petri.latvala at intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
> ---
>  tests/i915/i915_pm_rpm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
> index 62720d02b..576b4b466 100644
> --- a/tests/i915/i915_pm_rpm.c
> +++ b/tests/i915/i915_pm_rpm.c
> @@ -1234,7 +1234,7 @@ static void submit_blt_cmd(uint32_t dst_handle, int dst_size,
>	relocs[0].write_domain = I915_GEM_DOMAIN_RENDER;
>
>	objs[0].handle = dst_handle;
> -	objs[0].alignment = 64;
> +	objs[0].alignment = 0;

Yes I agree alignment is probably useless in this test:

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>


More information about the igt-dev mailing list