Skip to content

benchmarks/gem_wsim: support gens without relocations and mmap fix

Marcin Bernatowicz igt-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 6 repliesSuperseded
  3. v11 patch 4 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2benchmarks/gem_wsim: Support gens without relocationsbenchmarks/gem_wsim.c+72 -260 replies
2/2benchmarks/gem_wsim: Fix mmap for discrete graphics cardsbenchmarks/gem_wsim.c+11 -20 replies

Reviews trailers per patch

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

PatchKamil Konieczny
1/2R-b
2/2R-b

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

Read the v3 thread

Cover letter [PATCH v3 i-g-t 0/2] benchmarks/gem_wsim: support gens without relocations and mmap fix

This patch series introduces two key enhancements to the gem_wsim benchmark tool.

The first commit improves support for generations that do not use relocations. It adopts the approach used in 'lib/igt_dummyload', leveraging the 'intel_allocator' to compute offsets for these generations. This change also introduces a shared 'struct vm' for both i915 and Xe, which includes a 'vm_id' used by the 'intel_allocator' for address assignment. This enhances the compatibility of 'gem_wsim' with newer platforms running i915.

The second commit addresses an issue with the 'gem_mmap__wc' function, which was found to be incompatible with discrete graphics cards. The mapping approach from 'lib/igt_dummyload' has been adopted.

v2: Split mmap change to separate patch (Tvrtko)
v3: Correct brace balance, indentation (Kamil)
Remove redundant 'ptr' variable

Marcin Bernatowicz (2):
benchmarks/gem_wsim: Support gens without relocations benchmarks/gem_wsim: Fix mmap for discrete graphics cards

 benchmarks/gem_wsim.c | 111 +++++++++++++++++++++++++++++++-----------
 1 file changed, 83 insertions(+), 28 deletions(-)
Signature · 1 line
2.31.1