Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 021F96E2A3 for ; Fri, 8 Oct 2021 06:54:55 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= Date: Fri, 8 Oct 2021 08:54:30 +0200 Message-Id: <20211008065432.15482-6-zbigniew.kempczynski@intel.com> In-Reply-To: <20211008065432.15482-1-zbigniew.kempczynski@intel.com> References: <20211008065432.15482-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t 5/7] tests/i915_pm_rpm: Fix invalid alignment List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= , Petri Latvala , Ashutosh Dixit List-ID: 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 Cc: Petri Latvala Cc: Ashutosh Dixit --- 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; objs[1].handle = batch_handle; objs[1].relocation_count = !ahnd ? 1 : 0; -- 2.26.0