All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t v17 29/31] tests/api_intel_bb: Use allocator in delta-check test
Date: Fri, 15 Jan 2021 13:57:37 +0100	[thread overview]
Message-ID: <20210115125739.66577-30-zbigniew.kempczynski@intel.com> (raw)
In-Reply-To: <20210115125739.66577-1-zbigniew.kempczynski@intel.com>

To be squashed before merge.

We want to use address returned from emit_reloc() but do not call
kernel relocation path. Change intel-bb to use allocator to fully
control addresses passed in execbuf.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
 tests/i915/api_intel_bb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/i915/api_intel_bb.c b/tests/i915/api_intel_bb.c
index 76cffc771..a19d620e5 100644
--- a/tests/i915/api_intel_bb.c
+++ b/tests/i915/api_intel_bb.c
@@ -1109,7 +1109,7 @@ static void delta_check(struct buf_ops *bops)
 	uint64_t offset;
 	bool supports_48bit;
 
-	ibb = intel_bb_create(i915, PAGE_SIZE);
+	ibb = intel_bb_create_full(i915, 0, PAGE_SIZE, INTEL_ALLOCATOR_SIMPLE);
 	supports_48bit = ibb->supports_48b_address;
 	if (!supports_48bit)
 		intel_bb_destroy(ibb);
@@ -1121,7 +1121,7 @@ static void delta_check(struct buf_ops *bops)
 	buf = create_buf(bops, 0x1000, 0x10, COLOR_CC);
 	buf->addr.offset = 0xfffff000;
 	intel_bb_add_object(ibb, buf->handle, intel_buf_bo_size(buf),
-			    buf->addr.offset, false);
+			    buf->addr.offset, 0, false);
 
 	intel_bb_out(ibb, MI_STORE_DWORD_IMM);
 	intel_bb_emit_reloc(ibb, buf->handle,
-- 
2.26.0

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  parent reply	other threads:[~2021-01-15 12:58 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 12:57 [igt-dev] [PATCH i-g-t v17 00/31] Introduce IGT allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 01/31] lib/igt_list: igt_hlist implementation Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 02/31] lib/igt_map: Introduce igt_map Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 03/31] lib/igt_core: Track child process pid and tid Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 04/31] lib/intel_allocator_simple: Add simple allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 05/31] lib/intel_allocator_random: Add random allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 06/31] lib/intel_allocator: Add intel_allocator core Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 07/31] lib/intel_allocator: Try to stop smoothly instead of deinit Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 08/31] lib/intel_allocator_msgchannel: Scale to 4k of parallel clients Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 09/31] lib/intel_bufops: Removes handle from allocator, change size Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 10/31] lib/intel_bufops: Add init with handle and size function Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 11/31] lib/intel_batchbuffer: Integrate intel_bb with allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 12/31] lib/intel_batchbuffer: Add tracking intel_buf to intel_bb Zbigniew Kempczyński
2021-01-15 13:36   ` Chris Wilson
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 13/31] lib/intel_aux_pgtable: Get addresses for aux table from an allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 14/31] lib/igt_fb: Initialize intel_buf with same size as fb Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 15/31] tests/api_intel_bb: Modify test to verify intel_bb with allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 16/31] tests/api_intel_bb: Add compressed->compressed copy Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 17/31] tests/api_intel_allocator: Simple allocator test suite Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 18/31] tests/gem_softpin: Verify allocator and execbuf pair work together Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 19/31] tests/gem|kms: Remove intel_bb from fixture Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 20/31] tests/gem_mmap_offset: Use intel_buf wrapper code instead direct Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 21/31] tests/gem_ppgtt: Adopt test to use intel_bb with allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 22/31] tests/gem_render_copy_redux: Adopt to use with intel_bb and allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 23/31] tests/perf.c: Remove buffer from batch Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 24/31] tests/gem_linear_blits: Use intel allocator Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 25/31] lib/ioctl_wrappers: Add gem_has_relocations() check Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 26/31] lib/intel_batchbuffer: Use relocations in intel-bb up to gen12 Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 27/31] tests/api_intel_*: Adopt to use relocations as default " Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 28/31] tests/api_intel_bb: Remove check-canonical test Zbigniew Kempczyński
2021-01-15 12:57 ` Zbigniew Kempczyński [this message]
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 30/31] lib/intel_allocator: Separate allocator multiprocess start Zbigniew Kempczyński
2021-01-15 12:57 ` [igt-dev] [PATCH i-g-t v17 31/31] tests/api_intel_allocator: Prepare to run with sanitizer Zbigniew Kempczyński
2021-01-15 13:47 ` [igt-dev] ✗ Fi.CI.BAT: failure for Introduce IGT allocator (rev18) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210115125739.66577-30-zbigniew.kempczynski@intel.com \
    --to=zbigniew.kempczynski@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.