Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2 0/3] Introduce memory mapping tests
@ 2024-08-21 13:59 Krzysztof Niemiec
  2024-08-21 13:59 ` [PATCH i-g-t v2 1/3] tests/intel/gem_mmap_offset: Partial mmap and munmap Krzysztof Niemiec
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Krzysztof Niemiec @ 2024-08-21 13:59 UTC (permalink / raw)
  To: igt-dev, Kamil Konieczny
  Cc: Chris Wilson, Andi Shyti, Nirmoy Das, Lionel Landwerlin,
	Jann Horn, Krzysztof Niemiec

Hi,

This series introduces various tests related to memory mapping.

partial-remap (patch 1), mmap-boundaries (patch 2) and mmap-unmap (patch
3) tests were developed based on test cases made by Jann Horn.

partial-mmap and partial-unmap (both in patch 1) were developed to
replicate Mesa usage, as suggested by Lionel Landwerlin.

This series has been used to test these patches:

1ac5167b3a90 ("drm/i915/gem: Adjust vma offset for framebuffer mmap offset")
8bdd9ef7e9b1 ("drm/i915/gem: Fix Virtual Memory mapping boundaries calculation")

and

https://patchwork.freedesktop.org/series/136981/

Changelog:

v2:
 - Wrap uint64_t to pointer casts in from_user_pointer() so that the
   tests compile on 32-bit machines,
 - Fix duplicate handle assignment in mmap-unmap,
 - Prevent the tests from failing, if a map call fails - it might
   succeed on another offset type,
 - Swap mmap fail check and memory access in mmap-unmap to prevent a
   segfault,
 - Use gem_close() at the end of tests.

Thanks
Krzysztof

Chris Wilson (1):
  tests/intel/gem_mmap_offset: Partial mmap and munmap

Krzysztof Niemiec (2):
  tests/intel/gem_mmap_offset: Introduce mmap-boundaries test
  tests/intel/gem_mmap_offset: Introduce mmap-unmap test

 tests/intel/gem_mmap_offset.c | 285 ++++++++++++++++++++++++++++++++++
 1 file changed, 285 insertions(+)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-08-22  5:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-21 13:59 [PATCH i-g-t v2 0/3] Introduce memory mapping tests Krzysztof Niemiec
2024-08-21 13:59 ` [PATCH i-g-t v2 1/3] tests/intel/gem_mmap_offset: Partial mmap and munmap Krzysztof Niemiec
2024-08-21 14:17   ` Andi Shyti
2024-08-21 13:59 ` [PATCH i-g-t v2 2/3] tests/intel/gem_mmap_offset: Introduce mmap-boundaries test Krzysztof Niemiec
2024-08-21 14:22   ` Andi Shyti
2024-08-21 13:59 ` [PATCH i-g-t v2 3/3] tests/intel/gem_mmap_offset: Introduce mmap-unmap test Krzysztof Niemiec
2024-08-21 14:29   ` Andi Shyti
2024-08-21 19:31 ` ✓ Fi.CI.BAT: success for Introduce memory mapping tests (rev2) Patchwork
2024-08-21 19:44 ` ✓ CI.xeBAT: " Patchwork
2024-08-22  3:33 ` ✗ CI.xeFULL: failure " Patchwork
2024-08-22  5:05 ` ✗ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox