lib/intel_batchbuffer: Prepare batch to use in allocator infrastructure
PATCH 1/2 lib/intel_batchbuffer: Prepare batch to use in allocator infrastructure
With upcoming of allocator code we need to ensure batch will execute with appropriate context. If not mismatch between allocator data and batch could lead to strange or wrong results. All functions which could change context in execbuf called from intel_bb were removed.
As an allocator requires size (which was not previously required in intel_bb) adding object to intel_bb is now mandatory.
--- lib/intel_batchbuffer.c | 205 ++++++++++++++++++++-------------------- lib/intel_batchbuffer.h | 18 ++-- 2 files changed, 110 insertions(+), 113 deletions(-)
lib/intel_batchbuffer.c +104 -101
@@ -1220,7 +1220,10 @@ static uint64_t gen8_canonical_addr(uint64_t address)return (int64_t )(address << shift) >> shift; } -static inline uint64_t __intel_bb_propose_offset (struct intel_bb *ibb) +static inline uint64_t __intel_bb_get_offset (struct intel_bb *ibb, +uint32_t handle, +uint32_t size, +uint32_t alignment) {uint64_t offset;
@@ -1247,7 +1250,7 @@ static inline uint64_t __intel_bb_propose_offset(struct intel_bb *ibb)* Pointer the intel_bb, asserts on failure. */ static struct intel_bb * -__intel_bb_create (int i915,uint32_t size,bool do_relocs) +__intel_bb_create (int i915,uint32_t ctx,uint32_t size,bool do_relocs) {struct intel_bb *ibb =calloc (1 ,sizeof (*ibb));uint64_t gtt_size;
@@ -1261,6 +1264,7 @@ __intel_bb_create(int i915, uint32_t size, bool do_relocs) ibb->handle =gem_create (i915, size); ibb->size = size; ibb->alignment =4096 ; + ibb->ctx = ctx; ibb->batch =calloc (1 , size);igt_assert (ibb->batch); ibb->ptr = ibb->batch;
@@ -1287,8 +1291,12 @@ __intel_bb_create(int i915, uint32_t size, bool do_relocs) } ibb->gtt_size = gtt_size; - ibb->batch_offset =__intel_bb_propose_offset (ibb); -intel_bb_add_object (ibb, ibb->handle, ibb->batch_offset, false); + ibb->batch_offset =__intel_bb_get_offset (ibb, + ibb->handle, + ibb->size, + ibb->alignment); +intel_bb_add_object (ibb, ibb->handle, ibb->size, + ibb->batch_offset, false); ibb->refcount =1 ;
@@ -1300,13 +1308,33 @@ __intel_bb_create(int i915, uint32_t size, bool do_relocs)* @i915: drm fd * @size: size of the batchbuffer * +* Creates bb with default context. +* * Returns: * * Pointer the intel_bb, asserts on failure. */ struct intel_bb *intel_bb_create (int i915,uint32_t size) { -return __intel_bb_create (i915, size, false); +return __intel_bb_create (i915,0 , size, false); +} + +/** +* intel_bb_create_with_context: +* @i915: drm fd +* @ctx: context +* @size: size of the batchbuffer +* +* Creates bb with context passed in @ctx. +* +* Returns: +* +* Pointer the intel_bb, asserts on failure. +*/ +struct intel_bb * +intel_bb_create_with_context (int i915,uint32_t ctx,uint32_t size) +{ +return __intel_bb_create (i915, ctx, size, false); }/**
@@ -1314,8 +1342,8 @@ struct intel_bb *intel_bb_create(int i915, uint32_t size)* @i915: drm fd * @size: size of the batchbuffer * -* Disable passing or randomizing addresses. This will lead to relocations -* when objects are not previously pinned. +* Creates bb which will disable passing addresses. +* This will lead to relocations when objects are not previously pinned. * * Returns: *
@@ -1323,7 +1351,26 @@ struct intel_bb *intel_bb_create(int i915, uint32_t size)*/ struct intel_bb *intel_bb_create_with_relocs (int i915,uint32_t size) { -return __intel_bb_create (i915, size, true); +return __intel_bb_create (i915,0 , size, true); +} + +/** +* intel_bb_create_with_relocs_and_context: +* @i915: drm fd +* @ctx: context +* @size: size of the batchbuffer +* +* Creates bb with default context which will disable passing addresses. +* This will lead to relocations when objects are not previously pinned. +* +* Returns: +* +* Pointer the intel_bb, asserts on failure. +*/ +struct intel_bb * +intel_bb_create_with_relocs_and_context (int i915,uint32_t ctx,uint32_t size) +{ +return __intel_bb_create (i915, ctx, size, true); }static void __intel_bb_destroy_relocations (struct intel_bb *ibb)
@@ -1418,19 +1465,26 @@ void intel_bb_reset(struct intel_bb *ibb, bool purge_objects_cache)if (purge_objects_cache) {__intel_bb_destroy_cache (ibb); - ibb->batch_offset =__intel_bb_propose_offset (ibb); + ibb->batch_offset =__intel_bb_get_offset (ibb, + ibb->handle, + ibb->size, + ibb->alignment); }else {struct drm_i915_gem_exec_object2 *object; object =intel_bb_find_object (ibb, ibb->handle); ibb->batch_offset = object ? object->offset : -__intel_bb_propose_offset (ibb); +__intel_bb_get_offset (ibb, + ibb->handle, + ibb->size, + ibb->alignment); }gem_close (ibb->i915, ibb->handle); ibb->handle =gem_create (ibb->i915, ibb->size); -intel_bb_add_object (ibb, ibb->handle, ibb->batch_offset, false); +intel_bb_add_object (ibb, ibb->handle, ibb->size, + ibb->batch_offset, false); ibb->ptr = ibb->batch;memset (ibb->batch,0 , ibb->size); }
@@ -1580,6 +1634,7 @@ static void __add_to_objects(struct intel_bb *ibb,* intel_bb_add_object: * @ibb: pointer to intel_bb * @handle: which handle to add to objects array +* @size: object size * @offset: presumed offset of the object when no relocation is enforced * @write: does a handle is a render target *
@@ -1588,7 +1643,7 @@ static void __add_to_objects(struct intel_bb *ibb,* be marked with EXEC_OBJECT_WRITE flag. */ struct drm_i915_gem_exec_object2 * -intel_bb_add_object (struct intel_bb *ibb,uint32_t handle, +intel_bb_add_object (struct intel_bb *ibb,uint32_t handle,uint32_t size,uint64_t offset,bool write) {struct drm_i915_gem_exec_object2 *object;
@@ -1602,7 +1657,9 @@ intel_bb_add_object(struct intel_bb *ibb, uint32_t handle, object->offset =gen8_canonical_addr (offset & (ibb->gtt_size -1 ));if (object->offset ==INTEL_BUF_INVALID_ADDRESS ) - object->offset =__intel_bb_propose_offset (ibb); + object->offset =__intel_bb_get_offset (ibb, + handle, size, + object->alignment);if (write) object->flags |=EXEC_OBJECT_WRITE ;
@@ -1618,7 +1675,9 @@ intel_bb_add_intel_buf(struct intel_bb *ibb, struct intel_buf *buf, bool write) {struct drm_i915_gem_exec_object2 *obj; - obj =intel_bb_add_object (ibb, buf->handle, buf->addr.offset, write); + obj =intel_bb_add_object (ibb, buf->handle, +intel_buf_bo_size (buf), + buf->addr.offset, write);/* For compressed surfaces ensure address is aligned to 64KB */ if (ibb->gen >=12 && buf->compression) {
@@ -1720,7 +1779,13 @@ static uint64_t intel_bb_add_reloc(struct intel_bb *ibb,struct drm_i915_gem_exec_object2 *object, *to_object;uint32_t i; - object =intel_bb_add_object (ibb, handle, presumed_offset, false); +if (ibb->enforce_relocs) { + object =intel_bb_add_object (ibb, handle,0 , + presumed_offset, false); + }else { + object =intel_bb_find_object (ibb, handle); +igt_assert (object); + }/* For ibb we have relocs allocated in chunks */ if (to_handle == ibb->handle) {
@@ -2030,7 +2095,6 @@ static void update_offsets(struct intel_bb *ibb,* @ibb: pointer to intel_bb * @end_offset: offset of the last instruction in the bb * @flags: flags passed directly to execbuf -* @ctx: context * @sync: if true wait for execbuf completion, otherwise caller is responsible * to wait for completion *
@@ -2039,8 +2103,8 @@ static void update_offsets(struct intel_bb *ibb,* Note: In this step execobj for bb is allocated and inserted to the objects * array. */ -int __intel_bb_exec (struct intel_bb *ibb,uint32_t end_offset, -uint32_t ctx,uint64_t flags,bool sync) +static int __intel_bb_exec (struct intel_bb *ibb,uint32_t end_offset, +uint64_t flags,bool sync) {struct drm_i915_gem_execbuffer2 execbuf;struct drm_i915_gem_exec_object2 *objects;
@@ -2057,7 +2121,7 @@ int __intel_bb_exec(struct intel_bb *ibb, uint32_t end_offset, execbuf.buffers_ptr = (uintptr_t ) objects; execbuf.buffer_count = ibb->num_objects; execbuf.batch_len = end_offset; - execbuf.rsvd1 = ibb->ctx = ctx; + execbuf.rsvd1 = ibb->ctx; execbuf.flags = flags |I915_EXEC_BATCH_FIRST |I915_EXEC_FENCE_OUT ;if (ibb->enforce_relocs) execbuf.flags &= ~I915_EXEC_NO_RELOC ;
@@ -2112,29 +2176,12 @@ int __intel_bb_exec(struct intel_bb *ibb, uint32_t end_offset,* @sync: if true wait for execbuf completion, otherwise caller is responsible * to wait for completion * -* Do execbuf with default context. Asserts on failure. +* Do execbuf on context selected during bb creation. Asserts on failure. */ void intel_bb_exec (struct intel_bb *ibb,uint32_t end_offset,uint64_t flags,bool sync) { -igt_assert_eq (__intel_bb_exec (ibb, end_offset,0 , flags, sync),0 ); -} - -/* -* intel_bb_exec_with_context: -* @ibb: pointer to intel_bb -* @end_offset: offset of the last instruction in the bb -* @flags: flags passed directly to execbuf -* @ctx: context -* @sync: if true wait for execbuf completion, otherwise caller is responsible -* to wait for completion -* -* Do execbuf with context @context. -*/ -void intel_bb_exec_with_context (struct intel_bb *ibb,uint32_t end_offset, -uint32_t ctx,uint64_t flags,bool sync) -{ -igt_assert_eq (__intel_bb_exec (ibb, end_offset, ctx, flags, sync),0 ); +igt_assert_eq (__intel_bb_exec (ibb, end_offset, flags, sync),0 ); }/**
@@ -2185,7 +2232,7 @@ bool intel_bb_object_offset_to_buf(struct intel_bb *ibb, struct intel_buf *buf) found =tfind ((void *)&object, &ibb->root, __compare_objects);if (!found) { buf->addr.offset =0 ; - buf->addr.ctx =0 ; + buf->addr.ctx = ibb->ctx;return false; }
@@ -2242,41 +2289,27 @@ uint32_t intel_bb_emit_flush_common(struct intel_bb *ibb)return intel_bb_offset (ibb); } -static void intel_bb_exec_with_context_ring (struct intel_bb *ibb, -uint32_t ctx,uint32_t ring) +static void intel_bb_exec_with_ring (struct intel_bb *ibb,uint32_t ring) { -intel_bb_exec_with_context (ibb,intel_bb_offset (ibb), ctx, - ring |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb,intel_bb_offset (ibb), + ring |I915_EXEC_NO_RELOC , false);intel_bb_reset (ibb, false); }/* * intel_bb_flush: * @ibb: batchbuffer -* @ctx: context * @ring: ring * -* If batch is not empty emit batch buffer end, execute on specified -* context, ring then reset the batch. +* If batch is not empty emit batch buffer end, execute on ring, +* then reset the batch. */ -void intel_bb_flush (struct intel_bb *ibb,uint32_t ctx,uint32_t ring) +void intel_bb_flush (struct intel_bb *ibb,uint32_t ring) {if (intel_bb_emit_flush_common (ibb) ==0 )return ; -intel_bb_exec_with_context_ring (ibb, ctx, ring); -} - -static void __intel_bb_flush_render_with_context (struct intel_bb *ibb, -uint32_t ctx) -{ -uint32_t ring =I915_EXEC_RENDER ; - -if (intel_bb_emit_flush_common (ibb) ==0 ) -return ; - -intel_bb_exec_with_context_ring (ibb, ctx, ring); +intel_bb_exec_with_ring (ibb, ring); }/*
@@ -2284,39 +2317,14 @@ static void __intel_bb_flush_render_with_context(struct intel_bb *ibb,* @ibb: batchbuffer * * If batch is not empty emit batch buffer end, execute on render ring -* and reset the batch. -* Context used to execute is previous batch context. +* and reset the batch. Context used to execute is batch context. */ void intel_bb_flush_render (struct intel_bb *ibb) { -__intel_bb_flush_render_with_context (ibb, ibb->ctx); -} - -/* -* intel_bb_flush_render_with_context: -* @ibb: batchbuffer -* @ctx: context -* -* If batch is not empty emit batch buffer end, execute on render ring with @ctx -* and reset the batch. -*/ -void intel_bb_flush_render_with_context (struct intel_bb *ibb,uint32_t ctx) -{ -__intel_bb_flush_render_with_context (ibb, ctx); -} - -static void __intel_bb_flush_blit_with_context (struct intel_bb *ibb, -uint32_t ctx) -{ -uint32_t ring =I915_EXEC_DEFAULT ; -if (intel_bb_emit_flush_common (ibb) ==0 )return ; -if (HAS_BLT_RING (ibb->devid)) - ring =I915_EXEC_BLT ; - -intel_bb_exec_with_context_ring (ibb, ctx, ring); +intel_bb_exec_with_ring (ibb,I915_EXEC_RENDER ); }/*
@@ -2325,24 +2333,19 @@ static void __intel_bb_flush_blit_with_context(struct intel_bb *ibb,* * If batch is not empty emit batch buffer end, execute on default/blit ring * (depends on gen) and reset the batch. -* Context used to execute is previous batch context. +* Context used to execute is batch context. */ void intel_bb_flush_blit (struct intel_bb *ibb) { -__intel_bb_flush_blit_with_context (ibb, ibb->ctx); -} +uint32_t ring =I915_EXEC_DEFAULT ; -/* -* intel_bb_flush_blit_with_context: -* @ibb: batchbuffer -* @ctx: context -* -* If batch is not empty emit batch buffer end, execute on default/blit ring -* (depends on gen) with @ctx and reset the batch. -*/ -void intel_bb_flush_blit_with_context (struct intel_bb *ibb,uint32_t ctx) -{ -__intel_bb_flush_blit_with_context (ibb, ctx); +if (intel_bb_emit_flush_common (ibb) ==0 ) +return ; + +if (HAS_BLT_RING (ibb->devid)) + ring =I915_EXEC_BLT ; + +intel_bb_exec_with_ring (ibb, ring); }/*
lib/intel_batchbuffer.h +6 -12
@@ -341,7 +341,6 @@ struct intel_bb;struct intel_buf ; typedef void (*igt_render_copyfunc_t)(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,
@@ -478,7 +477,11 @@ struct intel_bb { };struct intel_bb *intel_bb_create (int i915,uint32_t size); +struct intel_bb * +intel_bb_create_with_context (int i915,uint32_t ctx,uint32_t size);struct intel_bb *intel_bb_create_with_relocs (int i915,uint32_t size); +struct intel_bb * +intel_bb_create_with_relocs_and_context (int i915,uint32_t ctx,uint32_t size);void intel_bb_destroy (struct intel_bb *ibb);static inline void intel_bb_ref (struct intel_bb *ibb)
@@ -562,9 +565,8 @@ static inline void intel_bb_out(struct intel_bb *ibb, uint32_t dword)igt_assert (intel_bb_offset (ibb) <= ibb->size); } -struct drm_i915_gem_exec_object2 * -intel_bb_add_object (struct intel_bb *ibb,uint32_t handle, +intel_bb_add_object (struct intel_bb *ibb,uint32_t handle,uint32_t size,uint64_t offset,bool write);struct drm_i915_gem_exec_object2 *intel_bb_add_intel_buf (struct intel_bb *ibb,struct intel_buf *buf,bool write);
@@ -615,25 +617,17 @@ uint64_t intel_bb_offset_reloc_to_object(struct intel_bb *ibb,uint32_t offset, uint64_t presumed_offset); -int __intel_bb_exec (struct intel_bb *ibb,uint32_t end_offset, -uint32_t ctx,uint64_t flags,bool sync); -void intel_bb_exec (struct intel_bb *ibb,uint32_t end_offset,uint64_t flags,bool sync); -void intel_bb_exec_with_context (struct intel_bb *ibb,uint32_t end_offset, -uint32_t ctx,uint64_t flags,bool sync); -uint64_t intel_bb_get_object_offset (struct intel_bb *ibb,uint32_t handle);bool intel_bb_object_offset_to_buf (struct intel_bb *ibb,struct intel_buf *buf);uint32_t intel_bb_emit_bbe (struct intel_bb *ibb);uint32_t intel_bb_emit_flush_common (struct intel_bb *ibb); -void intel_bb_flush (struct intel_bb *ibb,uint32_t ctx,uint32_t ring); +void intel_bb_flush (struct intel_bb *ibb,uint32_t ring);void intel_bb_flush_render (struct intel_bb *ibb); -void intel_bb_flush_render_with_context (struct intel_bb *ibb,uint32_t ctx);void intel_bb_flush_blit (struct intel_bb *ibb); -void intel_bb_flush_blit_with_context (struct intel_bb *ibb,uint32_t ctx); uint32_t intel_bb_copy_data(struct intel_bb *ibb, const void *data, unsigned int bytes,
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
PATCH 2/2 lib + tests: Remove possibility to use other than intel_bb context
To avoid problems with addresses acquired from allocator in the future we need to use intel_bb context. That's why all exec calls which could pass different context id were removed. Update libraries and tests to not to use that API anymore.
Depends on changes in intel_bb so must be merged together.
--- lib/gpgpu_fill.c | 6 +-- lib/igt_draw.c | 5 +- lib/igt_fb.c | 2 +- lib/media_fill.c | 17 ++++--- lib/media_spin.c | 4 +- lib/rendercopy.h | 9 ---- lib/rendercopy_gen4.c | 8 ++-- lib/rendercopy_gen6.c | 8 ++-- lib/rendercopy_gen7.c | 8 ++-- lib/rendercopy_gen8.c | 8 ++-- lib/rendercopy_gen9.c | 17 +++---- lib/rendercopy_i830.c | 3 +- lib/rendercopy_i915.c | 3 +- lib/veboxcopy_gen12.c | 7 ++- tests/i915/api_intel_bb.c | 55 +++++++++++++++------- tests/i915/gem_concurrent_all.c | 2 +- tests/i915/gem_mmap_offset.c | 4 +- tests/i915/gem_ppgtt.c | 9 ++-- tests/i915/gem_read_read_speed.c | 2 +- tests/i915/gem_render_copy.c | 14 +++--- tests/i915/gem_render_copy_redux.c | 8 ++-- tests/i915/gem_render_linear_blits.c | 6 +-- tests/i915/gem_render_tiled_blits.c | 8 ++-- tests/i915/gem_stress.c | 2 +- tests/i915/perf.c | 69 ++++++++++++---------------- tests/kms_big_fb.c | 2 +- tests/kms_psr.c | 2 +- 27 files changed, 137 insertions(+), 151 deletions(-)
lib/gpgpu_fill.c +3 -3
@@ -140,7 +140,7 @@ gen7_gpgpu_fillfunc(int i915,uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
@@ -190,7 +190,7 @@ gen8_gpgpu_fillfunc(int i915,uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
@@ -239,7 +239,7 @@ __gen9_gpgpu_fillfunc(int i915,uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
lib/igt_draw.c +2 -3
@@ -601,10 +601,9 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data, src =create_buf (fd, cmd_data->bops, &tmp,I915_TILING_NONE ); dst =create_buf (fd, cmd_data->bops, buf, tiling); - ibb =intel_bb_create (fd,PAGE_SIZE ); + ibb =intel_bb_create_with_context (fd, cmd_data->ctx,PAGE_SIZE ); -rendercopy (ibb, cmd_data->ctx, src,0 ,0 , rect->w, - rect->h, dst, rect->x, rect->y); +rendercopy (ibb, src,0 ,0 , rect->w, rect->h, dst, rect->x, rect->y);intel_bb_destroy (ibb);intel_buf_destroy (src);
lib/igt_fb.c +1 -1
@@ -2267,7 +2267,7 @@ static void copy_with_engine(struct fb_blit_upload *blit, dst_fb->plane_width[0 ], dst_fb->plane_height[0 ], dst); else - render_copy(blit->ibb, 0, + render_copy(blit->ibb, src, 0, 0, dst_fb->plane_width[0], dst_fb->plane_height[0],
lib/media_fill.c +8 -9
@@ -155,7 +155,7 @@ gen7_media_fillfunc(int i915,uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
@@ -198,7 +198,7 @@ gen8_media_fillfunc(int i915,uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
@@ -242,7 +242,7 @@ __gen9_media_fillfunc(int i915,uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);/* setup states */ intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
@@ -310,9 +310,9 @@ __gen11_media_vme_func(int i915,struct intel_bb *ibb;uint32_t curbe_buffer, interface_descriptor; - ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, dst->handle,0 , true); -intel_bb_add_object (ibb, src->handle,0 , false); + ibb =intel_bb_create_with_context (i915, ctx,PAGE_SIZE ); +intel_bb_add_intel_buf (ibb, dst, true); +intel_bb_add_intel_buf (ibb, src, false);/* setup states */ intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
@@ -351,9 +351,8 @@ __gen11_media_vme_func(int i915,intel_bb_out (ibb,MI_BATCH_BUFFER_END );intel_bb_ptr_align (ibb,32 ); -intel_bb_exec_with_context (ibb,intel_bb_offset (ibb), ctx, -I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb,intel_bb_offset (ibb), +I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , false);intel_bb_destroy (ibb); }
lib/media_spin.c +2 -2
@@ -102,7 +102,7 @@ gen8_media_spinfunc(int i915, struct intel_buf *buf, uint32_t spins)uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);/* setup states */ intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
@@ -143,7 +143,7 @@ gen9_media_spinfunc(int i915, struct intel_buf *buf, uint32_t spins)uint32_t curbe_buffer, interface_descriptor; ibb =intel_bb_create (i915,PAGE_SIZE ); -intel_bb_add_object (ibb, buf->handle,0 , true); +intel_bb_add_intel_buf (ibb, buf, true);/* setup states */ intel_bb_ptr_set (ibb,BATCH_STATE_SPLIT );
lib/rendercopy.h +0 -9
@@ -24,47 +24,38 @@ static inline void emit_vertex_normalized(struct intel_bb *ibb, }void gen12_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen11_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen9_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen8_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen7_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen6_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen4_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen3_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);void gen2_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,uint32_t src_x,uint32_t src_y,uint32_t width,uint32_t height,struct intel_buf *dst,uint32_t dst_x,uint32_t dst_y);
lib/rendercopy_gen4.c +3 -5
@@ -626,7 +626,6 @@ static uint32_t gen4_emit_primitive(struct intel_bb *ibb) } void gen4_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,
@@ -641,7 +640,7 @@ void gen4_render_copyfunc(struct intel_bb *ibb,igt_assert (src->bpp == dst->bpp); -intel_bb_flush_render_with_context (ibb, ctx); +intel_bb_flush_render (ibb);intel_bb_add_intel_buf (ibb, dst, true);intel_bb_add_intel_buf (ibb, src, false);
@@ -699,8 +698,7 @@ void gen4_render_copyfunc(struct intel_bb *ibb,/* Position to valid batch end position for batch reuse */ intel_bb_ptr_set (ibb, batch_end); -intel_bb_exec_with_context (ibb, batch_end, ctx, -I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb, batch_end, +I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , false);intel_bb_reset (ibb, false); }
lib/rendercopy_gen6.c +3 -5
@@ -510,7 +510,6 @@ static uint32_t gen6_emit_primitive(struct intel_bb *ibb) } void gen6_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,
@@ -523,7 +522,7 @@ void gen6_render_copyfunc(struct intel_bb *ibb,igt_assert (src->bpp == dst->bpp); -intel_bb_flush_render_with_context (ibb, ctx); +intel_bb_flush_render (ibb);intel_bb_add_intel_buf (ibb, dst, true);intel_bb_add_intel_buf (ibb, src, false);
@@ -585,8 +584,7 @@ void gen6_render_copyfunc(struct intel_bb *ibb,/* Position to valid batch end position for batch reuse */ intel_bb_ptr_set (ibb, batch_end); -intel_bb_exec_with_context (ibb, batch_end, ctx, -I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb, batch_end, +I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , false);intel_bb_reset (ibb, false); }
lib/rendercopy_gen7.c +3 -5
@@ -507,7 +507,6 @@ gen7_emit_null_depth_buffer(struct intel_bb *ibb)#define BATCH_STATE_SPLIT 2048 void gen7_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,
@@ -520,7 +519,7 @@ void gen7_render_copyfunc(struct intel_bb *ibb,igt_assert (src->bpp == dst->bpp); -intel_bb_flush_render_with_context (ibb, ctx); +intel_bb_flush_render (ibb);intel_bb_add_intel_buf (ibb, dst, true);intel_bb_add_intel_buf (ibb, src, false);
@@ -575,9 +574,8 @@ void gen7_render_copyfunc(struct intel_bb *ibb,intel_bb_out (ibb,0 );/* index buffer offset, ignored */ intel_bb_emit_bbe (ibb); -intel_bb_exec_with_context (ibb,intel_bb_offset (ibb), ctx, -I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb,intel_bb_offset (ibb), +I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , false);dump_batch (ibb);intel_bb_reset (ibb, false); }
lib/rendercopy_gen8.c +3 -5
@@ -780,7 +780,6 @@ static void gen8_emit_primitive(struct intel_bb *ibb, uint32_t offset)#define BATCH_STATE_SPLIT 2048 void gen8_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, unsigned int src_x, unsigned int src_y, unsigned int width, unsigned int height,
@@ -793,7 +792,7 @@ void gen8_render_copyfunc(struct intel_bb *ibb,igt_assert (src->bpp == dst->bpp); -intel_bb_flush_render_with_context (ibb, ctx); +intel_bb_flush_render (ibb);intel_bb_add_intel_buf (ibb, dst, true);intel_bb_add_intel_buf (ibb, src, false);
@@ -874,9 +873,8 @@ void gen8_render_copyfunc(struct intel_bb *ibb,gen8_emit_primitive (ibb, vertex_buffer);intel_bb_emit_bbe (ibb); -intel_bb_exec_with_context (ibb,intel_bb_offset (ibb), ctx, -I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb,intel_bb_offset (ibb), +I915_EXEC_DEFAULT |I915_EXEC_NO_RELOC , false);dump_batch (ibb);intel_bb_reset (ibb, false); }
lib/rendercopy_gen9.c +6 -11
@@ -877,7 +877,6 @@ static void gen8_emit_primitive(struct intel_bb *ibb, uint32_t offset) static void _gen9_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, unsigned int src_x, unsigned int src_y, unsigned int width, unsigned int height,
@@ -894,7 +893,7 @@ void _gen9_render_copyfunc(struct intel_bb *ibb,igt_assert (src->bpp == dst->bpp); -intel_bb_flush_render_with_context (ibb, ctx); +intel_bb_flush_render (ibb);intel_bb_add_intel_buf (ibb, dst, true);intel_bb_add_intel_buf (ibb, src, false);
@@ -978,15 +977,13 @@ void _gen9_render_copyfunc(struct intel_bb *ibb,gen8_emit_primitive (ibb, vertex_buffer);intel_bb_emit_bbe (ibb); -intel_bb_exec_with_context (ibb,intel_bb_offset (ibb), ctx, -I915_EXEC_RENDER |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb,intel_bb_offset (ibb), +I915_EXEC_RENDER |I915_EXEC_NO_RELOC , false);dump_batch (ibb);intel_bb_reset (ibb, false); } void gen9_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, unsigned int src_x, unsigned int src_y, unsigned int width, unsigned int height,
@@ -994,26 +991,24 @@ void gen9_render_copyfunc(struct intel_bb *ibb, unsigned int dst_x, unsigned int dst_y) { -_gen9_render_copyfunc (ibb ,ctx ,src ,src_x ,src_y , +_gen9_render_copyfunc (ibb ,src ,src_x ,src_y ,width ,height ,dst ,dst_x ,dst_y ,NULL , ps_kernel_gen9, sizeof(ps_kernel_gen9)); }void gen11_render_copyfunc (struct intel_bb *ibb, -uint32_t ctx,struct intel_buf *src,unsigned int src_x,unsigned int src_y,unsigned int width,unsigned int height,struct intel_buf *dst,unsigned int dst_x,unsigned int dst_y) { -_gen9_render_copyfunc (ibb, ctx, src, src_x, src_y, +_gen9_render_copyfunc (ibb, src, src_x, src_y, width, height, dst, dst_x, dst_y,NULL , ps_kernel_gen11,sizeof (ps_kernel_gen11)); } void gen12_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, unsigned int src_x, unsigned int src_y, unsigned int width, unsigned int height,
@@ -1024,7 +1019,7 @@ void gen12_render_copyfunc(struct intel_bb *ibb,gen12_aux_pgtable_init (&pgtable_info, ibb, src, dst); - _gen9_render_copyfunc(ibb, ctx, src, src_x, src_y, + _gen9_render_copyfunc(ibb, src, src_x, src_y, width, height, dst, dst_x, dst_y, pgtable_info.pgtable_buf, gen12_render_copy,
lib/rendercopy_i830.c +1 -2
@@ -235,7 +235,6 @@ static void gen2_emit_copy_pipeline(struct intel_bb *ibb) } void gen2_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,
@@ -277,5 +276,5 @@ void gen2_render_copyfunc(struct intel_bb *ibb,emit_vertex_normalized (ibb, src_x,intel_buf_width (src));emit_vertex_normalized (ibb, src_y,intel_buf_height (src)); -intel_bb_flush_blit_with_context (ibb, ctx); +intel_bb_flush_blit (ibb); }
lib/rendercopy_i915.c +1 -2
@@ -20,7 +20,6 @@#include "rendercopy.h" void gen3_render_copyfunc(struct intel_bb *ibb, - uint32_t ctx, struct intel_buf *src, uint32_t src_x, uint32_t src_y, uint32_t width, uint32_t height,
@@ -229,5 +228,5 @@ void gen3_render_copyfunc(struct intel_bb *ibb,emit_vertex (ibb, src_x);emit_vertex (ibb, src_y); -intel_bb_flush_blit_with_context (ibb, ctx); +intel_bb_flush_blit (ibb); }
lib/veboxcopy_gen12.c +3 -4
@@ -248,7 +248,7 @@ void gen12_vebox_copyfunc(struct intel_bb *ibb,igt_assert (src->bpp == dst->bpp); -intel_bb_flush (ibb, ibb->ctx,I915_EXEC_VEBOX ); +intel_bb_flush (ibb,I915_EXEC_VEBOX );intel_bb_add_intel_buf (ibb, dst, true);intel_bb_add_intel_buf (ibb, src, false);
@@ -304,9 +304,8 @@ void gen12_vebox_copyfunc(struct intel_bb *ibb,intel_bb_out (ibb,MI_BATCH_BUFFER_END );intel_bb_ptr_align (ibb,8 ); -intel_bb_exec_with_context (ibb,intel_bb_offset (ibb),0 , -I915_EXEC_VEBOX |I915_EXEC_NO_RELOC , - false); +intel_bb_exec (ibb,intel_bb_offset (ibb), +I915_EXEC_VEBOX |I915_EXEC_NO_RELOC , false);intel_bb_reset (ibb, false);
tests/i915/api_intel_bb.c +38 -17
113 lines not on this page · raw message
tests/i915/gem_concurrent_all.c +1 -1
@@ -874,7 +874,7 @@ typedef igt_hang_t (*do_hang)(void);static void render_copy_bo (struct buffers *b,struct intel_buf *dst,struct intel_buf *src) { -rendercopy (b->ibb,0 , +rendercopy (b->ibb, src,0 ,0 , b->width, b->height, dst,0 ,0 );
tests/i915/gem_mmap_offset.c +2 -2
@@ -614,8 +614,8 @@ static void blt_coherency(int i915) dst =create_bo (bops,1 , width, height); size = src->surface[0 ].size; -intel_bb_add_object (ibb, src->handle, src->addr.offset, false); -intel_bb_add_object (ibb, dst->handle, dst->addr.offset, true); +intel_bb_add_object (ibb, src->handle, size, src->addr.offset, false); +intel_bb_add_object (ibb, dst->handle, size, dst->addr.offset, true); intel_bb_blt_copy(ibb, src, 0, 0, src->surface[0].stride,
tests/i915/gem_ppgtt.c +5 -4
@@ -110,16 +110,17 @@ static void fork_rcs_copy(int timeout, uint32_t final,struct intel_buf *src;unsigned long i; - ibb =intel_bb_create (buf_ops_get_fd (dst[child]->bops),4096 ); -if (flags &CREATE_CONTEXT ) ctx =gem_context_create (buf_ops_get_fd (dst[child]->bops)); + ibb =intel_bb_create_with_context (buf_ops_get_fd (dst[child]->bops), + ctx,4096 ); + i =0 ;igt_until_timeout (timeout) { src =create_bo (dst[child]->bops, i++ | child <<16 ); -render_copy (ibb, ctx, +render_copy (ibb, src,0 ,0 ,WIDTH ,HEIGHT , dst[child],0 ,0 );
@@ -129,7 +130,7 @@ static void fork_rcs_copy(int timeout, uint32_t final, src =create_bo (dst[child]->bops, final | child <<16 ); -render_copy (ibb, ctx, +render_copy (ibb, src,0 ,0 ,WIDTH ,HEIGHT , dst[child],0 ,0 );
tests/i915/gem_read_read_speed.c +1 -1
@@ -66,7 +66,7 @@ static struct intel_bb *rcs_copy_bo(struct intel_buf *dst,/* enforce batch won't be recreated after execution */ intel_bb_ref (ibb); -rendercopy (ibb,0 , +rendercopy (ibb, src,0 ,0 , width, height, dst,0 ,0 );
tests/i915/gem_render_copy.c +7 -7
@@ -456,12 +456,12 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling,*/ if (src_mixed_tiled) {if (dst_compressed) - data->render_copy (data->ibb,0 , + data->render_copy (data->ibb, &dst,0 ,0 ,WIDTH ,HEIGHT , &dst_ccs,0 ,0 );for (int i =0 ; i < num_src; i++) { - data->render_copy(data->ibb, 0, + data->render_copy(data->ibb, &src[i].buf, WIDTH/4, HEIGHT/4, WIDTH/2-2, HEIGHT/2-2, dst_compressed ? &dst_ccs : &dst,
@@ -469,13 +469,13 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling, }if (dst_compressed) - data->render_copy (data->ibb,0 , + data->render_copy (data->ibb, &dst_ccs,0 ,0 ,WIDTH ,HEIGHT , &dst,0 ,0 ); }else {if (src_compression ==I915_COMPRESSION_RENDER ) { - data->render_copy (data->ibb,0 , + data->render_copy (data->ibb, &src_tiled,0 ,0 ,WIDTH ,HEIGHT , &src_ccs,0 ,0 );
@@ -498,13 +498,13 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling, }if (dst_compression ==I915_COMPRESSION_RENDER ) { - data->render_copy (data->ibb,0 , + data->render_copy (data->ibb, src_compressed ? &src_ccs : &src_tiled,0 ,0 ,WIDTH ,HEIGHT , &dst_ccs,0 ,0 ); - data->render_copy(data->ibb, 0, + data->render_copy(data->ibb, &dst_ccs, 0, 0, WIDTH, HEIGHT, &dst,
@@ -525,7 +525,7 @@ static void test(data_t *data, uint32_t src_tiling, uint32_t dst_tiling,WIDTH ,HEIGHT , &dst); }else { - data->render_copy(data->ibb, 0, + data->render_copy(data->ibb, src_compressed ? &src_ccs : &src_tiled, 0, 0, WIDTH, HEIGHT, &dst,
tests/i915/gem_render_copy_redux.c +4 -4
@@ -134,7 +134,7 @@ static void copy(data_t *data)scratch_buf_check (data, &src,WIDTH /2 ,HEIGHT /2 ,SRC_COLOR );scratch_buf_check (data, &dst,WIDTH /2 ,HEIGHT /2 ,DST_COLOR ); - data->render_copy (data->ibb,0 , + data->render_copy (data->ibb, &src,0 ,0 ,WIDTH ,HEIGHT , &dst,WIDTH /2 ,HEIGHT /2 );
@@ -158,14 +158,14 @@ static void copy_flink(data_t *data)scratch_buf_init (data, &src,WIDTH ,HEIGHT ,STRIDE ,0 );scratch_buf_init (data, &dst,WIDTH ,HEIGHT ,STRIDE ,DST_COLOR ); - data->render_copy (data->ibb,0 , + data->render_copy (data->ibb, &src,0 ,0 ,WIDTH ,HEIGHT , &dst,WIDTH ,HEIGHT );scratch_buf_init (&local, &local_src,WIDTH ,HEIGHT ,STRIDE ,0 );scratch_buf_init (&local, &local_dst,WIDTH ,HEIGHT ,STRIDE ,SRC_COLOR ); - local.render_copy (local.ibb,0 , + local.render_copy (local.ibb, &local_src,0 ,0 ,WIDTH ,HEIGHT , &local_dst,WIDTH ,HEIGHT );
@@ -173,7 +173,7 @@ static void copy_flink(data_t *data) flink = local_dst; flink.handle =gem_open (data->fd, name); - data->render_copy (data->ibb,0 , + data->render_copy (data->ibb, &flink,0 ,0 ,WIDTH ,HEIGHT , &dst,WIDTH /2 ,HEIGHT /2 );
tests/i915/gem_render_linear_blits.c +3 -3
@@ -111,7 +111,7 @@ static void run_test (int fd, int count) src = &bufs[i % count]; dst = &bufs[(i +1 ) % count]; -render_copy (ibb,0 , src,0 ,0 ,WIDTH ,HEIGHT , dst,0 ,0 ); +render_copy (ibb, src,0 ,0 ,WIDTH ,HEIGHT , dst,0 ,0 ); start_val[(i +1 ) % count] = start_val[i % count]; }
@@ -128,7 +128,7 @@ static void run_test (int fd, int count) src = &bufs[(i +1 ) % count]; dst = &bufs[i % count]; -render_copy (ibb,0 , src,0 ,0 ,WIDTH ,HEIGHT , dst,0 ,0 ); +render_copy (ibb, src,0 ,0 ,WIDTH ,HEIGHT , dst,0 ,0 ); start_val[i % count] = start_val[(i +1 ) % count]; }for (i =0 ; i < count; i++)
@@ -146,7 +146,7 @@ static void run_test (int fd, int count) src = &bufs[s]; dst = &bufs[d]; -render_copy (ibb,0 , src,0 ,0 ,WIDTH ,HEIGHT , dst,0 ,0 ); +render_copy (ibb, src,0 ,0 ,WIDTH ,HEIGHT , dst,0 ,0 ); start_val[d] = start_val[s]; }for (i =0 ; i < count; i++)
tests/i915/gem_render_tiled_blits.c +4 -4
@@ -66,7 +66,7 @@ check_buf(struct intel_bb *ibb, struct intel_buf *buf, uint32_t val)uint32_t *ptr;int i; -render_copy (ibb,0 , buf,0 ,0 ,WIDTH ,HEIGHT , &linear,0 ,0 ); +render_copy (ibb, buf,0 ,0 ,WIDTH ,HEIGHT , &linear,0 ,0 );if (snoop) { ptr = gem_mmap__cpu_coherent(i915, linear.handle, 0,
@@ -148,7 +148,7 @@ static void run_test (int fd, int count)int src = i % count;int dst = (i +1 ) % count; -render_copy (ibb,0 , &bufs[src],0 ,0 ,WIDTH ,HEIGHT , +render_copy (ibb, &bufs[src],0 ,0 ,WIDTH ,HEIGHT , &bufs[dst],0 ,0 ); start_val[dst] = start_val[src]; }
@@ -161,7 +161,7 @@ static void run_test (int fd, int count)int src = (i +1 ) % count;int dst = i % count; -render_copy (ibb,0 , &bufs[src],0 ,0 ,WIDTH ,HEIGHT , +render_copy (ibb, &bufs[src],0 ,0 ,WIDTH ,HEIGHT , &bufs[dst],0 ,0 ); start_val[dst] = start_val[src]; }
@@ -176,7 +176,7 @@ static void run_test (int fd, int count)if (src == dst)continue ; -render_copy (ibb,0 , &bufs[src],0 ,0 ,WIDTH ,HEIGHT , +render_copy (ibb, &bufs[src],0 ,0 ,WIDTH ,HEIGHT , &bufs[dst],0 ,0 ); start_val[dst] = start_val[src]; }
tests/i915/gem_stress.c +1 -1
@@ -377,7 +377,7 @@ static void render_copyfunc(struct intel_buf *src, unsigned src_x, unsigned src_*/ intel_bb_flush_blit (ibb); -rendercopy (ibb,0 , src, src_x, src_y, +rendercopy (ibb, src, src_x, src_y, options.tile_size, options.tile_size, dst, dst_x, dst_y); }else
tests/i915/perf.c +30 -39
254 lines not on this page · raw message
tests/kms_big_fb.c +1 -1
@@ -102,7 +102,7 @@ static void copy_pattern(data_t *data,* rendered with the blitter/render engine. */ if (data->render_copy) { - data->render_copy (data->ibb,0 , src, sx, sy, w, h, dst, dx, dy); + data->render_copy (data->ibb, src, sx, sy, w, h, dst, dx, dy); }else { w =min (w, src_fb->width - sx); w =min (w, dst_fb->width - dx);
tests/kms_psr.c +1 -1
@@ -203,7 +203,7 @@ static void fill_render(data_t *data, const struct igt_fb *fb, 0, tiling, 0);gem_write (data->drm_fd, src->handle,0 , buf,4 ); -rendercopy (ibb,0 , +rendercopy (ibb, src,0 ,0 ,0xff ,0xff , dst,0 ,0 );
Signature · 6 lines
2.26.0 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] lib/intel_batchbuffer: Prepare batch to use in allocator infrastructure
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: series starting with [i-g-t,1/2] lib/intel_batchbuffer: Prepare batch to use in allocator infrastructure
URL : https://patchwork.freedesktop.org/series/82251/
State : failure
== Summary ==
CI Bug Log - changes from IGT_5794 -> IGTPW_5029
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_5029 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_5029, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_5029:
### IGT changes ###
#### Possible regressions ####
* igt@runner@aborted:
- fi-skl-6600u: NOTRUN -> [FAIL][1]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-skl-6600u/igt@[email protected]
Known issues
------------
Here are the changes found in IGTPW_5029 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_module_load@reload:
- fi-byt-j1900: [PASS][2] -> [DMESG-WARN][3] ([i915#1982])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-byt-j1900/igt@[email protected]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-byt-j1900/igt@[email protected]
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-bsw-kefka: [PASS][4] -> [DMESG-WARN][5] ([i915#1982])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-bsw-kefka/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-bsw-kefka/igt@[email protected]
* igt@i915_selftest@live@gt_lrc:
- fi-bsw-n3050: [PASS][6] -> [INCOMPLETE][7] ([i915#1436])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-bsw-n3050/igt@i915_selftest@live@gt_lrc.html
* igt@kms_busy@basic@flip:
- fi-kbl-x1275: [PASS][8] -> [DMESG-WARN][9] ([i915#62] / [i915#92] / [i915#95])
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-kbl-x1275/igt@kms_busy@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-kbl-x1275/igt@kms_busy@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- fi-icl-u2: [PASS][10] -> [DMESG-WARN][11] ([i915#1982]) +2 similar issues
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-icl-u2/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@i915_pm_rpm@basic-pci-d3-state:
- fi-byt-j1900: [DMESG-WARN][12] ([i915#1982]) -> [PASS][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-byt-j1900/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-byt-j1900/igt@[email protected]
* igt@kms_chamelium@dp-crc-fast:
- fi-kbl-7500u: [FAIL][14] ([i915#1161] / [i915#262]) -> [PASS][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-kbl-7500u/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-kbl-7500u/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- {fi-kbl-7560u}: [DMESG-WARN][16] ([i915#1982]) -> [PASS][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-kbl-7560u/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-kbl-7560u/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
- fi-icl-u2: [DMESG-WARN][18] ([i915#1982]) -> [PASS][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-icl-u2/igt@kms_flip@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-icl-u2/igt@kms_flip@[email protected]
#### Warnings ####
* igt@i915_pm_rpm@module-reload:
- fi-kbl-x1275: [DMESG-FAIL][20] ([i915#62]) -> [DMESG-FAIL][21] ([i915#62] / [i915#95])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-kbl-x1275/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-kbl-x1275/igt@[email protected]
* igt@kms_force_connector_basic@force-edid:
- fi-kbl-x1275: [DMESG-WARN][22] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][23] ([i915#62] / [i915#92]) +3 similar issues
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-kbl-x1275/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-kbl-x1275/igt@[email protected]
* igt@kms_pipe_crc_basic@compare-crc-sanitycheck-pipe-c:
- fi-kbl-x1275: [DMESG-WARN][24] ([i915#62] / [i915#92]) -> [DMESG-WARN][25] ([i915#62] / [i915#92] / [i915#95]) +8 similar issues
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5794/fi-kbl-x1275/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/fi-kbl-x1275/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1161]: https://gitlab.freedesktop.org/drm/intel/issues/1161
[i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#262]: https://gitlab.freedesktop.org/drm/intel/issues/262
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (45 -> 38)
------------------------------
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5794 -> IGTPW_5029
CI-20190529: 20190529
CI_DRM_9077: ae1f3f7de609df105aeceed2655656ffc838d720 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_5029: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/index.html
IGT_5794: eeccb2a17453f90ad92d1ab6f81ad7d344119d72 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_5029/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev