Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 241B210E128 for ; Thu, 29 Sep 2022 17:00:43 +0000 (UTC) From: Nirmoy Das To: igt-dev@lists.freedesktop.org Date: Thu, 29 Sep 2022 19:00:34 +0200 Message-Id: <20220929170034.14043-1-nirmoy.das@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] i915/gem_ringfill: Add 48b address flag in store-dword List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add EXEC_OBJECT_SUPPORTS_48B_ADDRESS to handle > 32b offset. Signed-off-by: Nirmoy Das --- tests/i915/gem_ringfill.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/i915/gem_ringfill.c b/tests/i915/gem_ringfill.c index b68c5ae615..8ab00525ff 100644 --- a/tests/i915/gem_ringfill.c +++ b/tests/i915/gem_ringfill.c @@ -114,7 +114,7 @@ static void setup_execbuf(int fd, const intel_ctx_t *ctx, memset(reloc, 0, NUMSTORES * sizeof(*reloc)); execbuf->buffers_ptr = to_user_pointer(obj); - execbuf->flags = ring | (1 << 11) | (1 << 12); + execbuf->flags = ring | I915_EXEC_NO_RELOC | I915_EXEC_HANDLE_LUT; if (gen > 3 && gen < 6) execbuf->flags |= I915_EXEC_SECURE; @@ -124,7 +124,7 @@ static void setup_execbuf(int fd, const intel_ctx_t *ctx, obj[0].handle = gem_create(fd, 4096); if (ahnd) { obj[0].offset = get_offset(ahnd, obj[0].handle, 4096, 0); - obj[0].flags |= EXEC_OBJECT_PINNED; + obj[0].flags |= EXEC_OBJECT_PINNED | EXEC_OBJECT_SUPPORTS_48B_ADDRESS; } gem_write(fd, obj[0].handle, 0, &bbe, sizeof(bbe)); @@ -139,7 +139,7 @@ static void setup_execbuf(int fd, const intel_ctx_t *ctx, if (ahnd) { obj[1].offset = get_offset(ahnd, obj[1].handle, NUMSTORES * 16 + 4096, 0); - obj[1].flags |= EXEC_OBJECT_PINNED; + obj[1].flags |= EXEC_OBJECT_PINNED | EXEC_OBJECT_SUPPORTS_48B_ADDRESS; } batch = gem_mmap__cpu(fd, obj[1].handle, 0, NUMSTORES * 16 + 4096, -- 2.37.3