summaryrefslogtreecommitdiff
path: root/tests/i915/i915_pm_rpm.c
diff options
context:
space:
mode:
authorZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2021-09-28 19:23:17 +0200
committerZbigniew Kempczyński <zbigniew.kempczynski@intel.com>2021-10-15 05:54:36 +0200
commit629a9081f3f38b506d9346f4b0b060fa006e865d (patch)
treee15c590186d5ef5962043ba5011c77caa9d10951 /tests/i915/i915_pm_rpm.c
parent0608bb2476d71cf83e3630366a76fc1df560540a (diff)
tests/i915_pm_rpm: Fix invalid alignment
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@intel.com> Cc: Petri Latvala <petri.latvala@intel.com> Cc: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'tests/i915/i915_pm_rpm.c')
-rw-r--r--tests/i915/i915_pm_rpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/i915_pm_rpm.c b/tests/i915/i915_pm_rpm.c
index 732aea6e..648b0cff 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;
objs[1].handle = batch_handle;
objs[1].relocation_count = !ahnd ? 1 : 0;