Skip to content

Remove random allocator and improve reloc one

Zbigniew Kempczyński igt-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 6 repliesIn review
  2. v14 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib/intel_allocator: Remove RANDOM allocatorlib/intel_allocator.c lib/intel_allocator.h lib/intel_allocator_random.c +3 more+3 -2151 reply
2/5tests/api_intel_allocator: Remove duplicated reuse and reserve subteststests/i915/api_intel_allocator.c+0 -61 reply
3/5lib/intel_allocator_reloc: Introduce stateful allocations in reloclib/intel_allocator_reloc.c tests/i915/api_intel_allocator.c+111 -251 reply
4/5tests/gem_ctx_shared: Remove necessity of passing offset to function calltests/i915/gem_ctx_shared.c+19 -261 reply
5/5tests/gem_exec_parallel: Avoid acquiring offset for overlapping handletests/i915/gem_exec_parallel.c+14 -22 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchKamil Konieczny
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [igt-dev] [PATCH i-g-t v2 0/5] Remove random allocator and improve reloc one

During some debugging session with our hw team I just realized that reloc stateless is quite big problem when I would like to collect few blits in single batch provided by the library. Especially where are more more objects required to acquire the offsets and not to stall if more separate blits should be added.

I removed also RANDOM allocator, we're not using it and in softpin world it may potentially problematic as we don't control object overlapping.

For verification real world scenario where reloc stateful is required I changed one of subtest which previously required simple allocator and another which requires distinguish offset (previously stateless reloc hides this proposing new offset each alloc()).

Zbigniew Kempczyński (5):
lib/intel_allocator: Remove RANDOM allocator tests/api_intel_allocator: Remove duplicated reuse and reserve
subtests
lib/intel_allocator_reloc: Introduce stateful allocations in reloc tests/gem_ctx_shared: Remove necessity of passing offset to function
call
tests/gem_exec_parallel: Avoid acquiring offset for overlapping handle

 lib/intel_allocator.c            |   3 -
 lib/intel_allocator.h            |   3 +-
 lib/intel_allocator_random.c     | 191 -------------------------------
 lib/intel_allocator_reloc.c      | 115 ++++++++++++++++---
 lib/meson.build                  |   1 -
 tests/i915/api_intel_allocator.c |  35 +++---
 tests/i915/api_intel_bb.c        |  12 --
 tests/i915/gem_ctx_shared.c      |  45 +++-----
 tests/i915/gem_exec_parallel.c   |  16 ++-
 9 files changed, 147 insertions(+), 274 deletions(-)
 delete mode 100644 lib/intel_allocator_random.c
Signature · 1 line
2.34.1