tests/xe: Add system_allocator test
PATCH 1/1 tests/xe: Add system_allocator test
Test various uses of system allocator in single thread, multiple threads, and multiple processes.
Features tested:
- Malloc with various size
- Mmap with various sizes and flags including file backed mappings
- Mixing BO allocations with system allocator
- Various page sizes
- Dynamically freeing / unmapping memory
- Sharing VM across threads
- Faults racing on different hardware engines / GTs / Tiles
- GPU faults and CPU faults racing
- CPU faults on multiple threads racing
- CPU faults on multiple process racing
- GPU faults of memory not faulted in by CPU
- Partial unmap of allocations
- Attempting to unmap system allocations when GPU has mappings
- Eviction of both system allocations and BOs
- Forking child processes and reading data from VRAM
- mremap data in VRAM
- Protection changes
- Multiple faults per execbuf
Running on LNL, BMG, PVC 1 tile, and PVC 2 tile.
--- include/drm-uapi/xe_drm.h | 1 + lib/xe/xe_ioctl.c | 12 + lib/xe/xe_ioctl.h | 1 + tests/intel/xe_exec_system_allocator.c | 1772 ++++++++++++++++++++++++ tests/meson.build | 1 + 5 files changed, 1787 insertions(+) create mode 100644 tests/intel/xe_exec_system_allocator.c
include/drm-uapi/xe_drm.h +1 -0
@@ -994,6 +994,7 @@ struct drm_xe_vm_bind_op {#define DRM_XE_VM_BIND_FLAG_IMMEDIATE (1 << 1)#define DRM_XE_VM_BIND_FLAG_NULL (1 << 2)#define DRM_XE_VM_BIND_FLAG_DUMPABLE (1 << 3) +#define DRM_XE_VM_BIND_FLAG_SYSTEM_ALLOCATOR (1 << 4)/** @flags: Bind flags */ __u32 flags;
lib/xe/xe_ioctl.c +12 -0
@@ -436,6 +436,18 @@ void *xe_bo_map(int fd, uint32_t bo, size_t size)return __xe_bo_map (fd, bo, size,PROT_WRITE ); } +void *xe_bo_map_fixed (int fd,uint32_t bo,size_t size,uint64_t addr) +{ +uint64_t mmo; +void *map; + + mmo =xe_bo_mmap_offset (fd, bo); + map =mmap ((void *)addr, size,PROT_WRITE ,MAP_SHARED |MAP_FIXED , fd, mmo); +igt_assert (map !=MAP_FAILED ); + +return map; +} +void *xe_bo_mmap_ext (int fd,uint32_t bo,size_t size,int prot) {return __xe_bo_map (fd, bo, size, prot);
lib/xe/xe_ioctl.h +1 -0
@@ -86,6 +86,7 @@ uint32_t xe_exec_queue_create_class(int fd, uint32_t vm, uint16_t class);void xe_exec_queue_destroy (int fd,uint32_t exec_queue);uint64_t xe_bo_mmap_offset (int fd,uint32_t bo);void *xe_bo_map (int fd,uint32_t bo,size_t size); +void *xe_bo_map_fixed (int fd,uint32_t bo,size_t size,long unsigned int addr);void *xe_bo_mmap_ext (int fd,uint32_t bo,size_t size,int prot);int __xe_exec (int fd,struct drm_xe_exec *exec);void xe_exec (int fd,struct drm_xe_exec *exec);
tests/intel/xe_exec_system_allocator.c new file +1772 -0
1,772 lines not on this page · raw message
tests/meson.build +1 -0
@@ -292,6 +292,7 @@ intel_xe_progs = [ 'xe_exec_reset', 'xe_exec_sip', 'xe_exec_store', + 'xe_exec_system_allocator', 'xe_exec_threads', 'xe_exercise_blt', 'xe_fault_injection',
Signature · 1 line
2.34.1
Patchwork
CI✗ GitLab.Pipeline: warning for tests/xe: Add system_allocator test (rev3)
== Series Details ==
== Series Details ==
Series: tests/xe: Add system_allocator test (rev3)
URL : https://patchwork.freedesktop.org/series/137545/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1290998 for the overview.
build:tests-debian-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130862):
[1/1131] Generating version.h with a custom command.
[2/526] Linking target tests/xe_exec_reset.
[3/526] Generating xe_exec_queue_property.testlist with a meson_exe.py custom command.
[4/526] Generating xe_exec_reset.testlist with a meson_exe.py custom command.
[5/526] Compiling C object 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o'.
FAILED: tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o
cc -Itests/59830eb@@xe_exec_system_allocator@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/x86_64-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -I/usr/include -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -pthread -MD -MQ 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -MF 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o.d' -o 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -c ../tests/intel/xe_exec_system_allocator.c ../tests/intel/xe_exec_system_allocator.c: In function ‘test_exec’:
../tests/intel/xe_exec_system_allocator.c:1146:21: error: ‘MREMAP_DONTUNMAP’ undeclared (first use in this function); did you mean ‘DONTUNMAP’?
remap_flags |= MREMAP_DONTUNMAP;
^~~~~~~~~~~~~~~~
DONTUNMAP ../tests/intel/xe_exec_system_allocator.c:1146:21: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1729049704:step_script
section_start:1729049704:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1729049705:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-arm64 has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130865):
ninja: Entering directory `build'
[1/753] Generating version.h with a custom command.
[2/431] Linking target tests/xe_exec_reset.
[3/431] Linking target tests/xe_exec_sip.
[4/431] Compiling C object 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o'.
FAILED: tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o
/usr/bin/aarch64-linux-gnu-gcc -Itests/59830eb@@xe_exec_system_allocator@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/aarch64-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -pthread -MD -MQ 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -MF 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o.d' -o 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -c ../tests/intel/xe_exec_system_allocator.c ../tests/intel/xe_exec_system_allocator.c: In function ‘test_exec’:
../tests/intel/xe_exec_system_allocator.c:1146:21: error: ‘MREMAP_DONTUNMAP’ undeclared (first use in this function); did you mean ‘DONTUNMAP’?
remap_flags |= MREMAP_DONTUNMAP;
^~~~~~~~~~~~~~~~
DONTUNMAP ../tests/intel/xe_exec_system_allocator.c:1146:21: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1729049676:step_script
section_start:1729049676:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1729049677:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-armhf has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130864):
/usr/bin/arm-linux-gnueabihf-gcc -Ilib/76b5a35@@igt-xe_xe_ioctl_c@sta -Ilib -I../lib -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/arm-linux-gnueabihf -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="xe/xe_ioctl"' -MD -MQ 'lib/76b5a35@@igt-xe_xe_ioctl_c@sta/xe_xe_ioctl.c.o' -MF 'lib/76b5a35@@igt-xe_xe_ioctl_c@sta/xe_xe_ioctl.c.o.d' -o 'lib/76b5a35@@igt-xe_xe_ioctl_c@sta/xe_xe_ioctl.c.o' -c ../lib/xe/xe_ioctl.c ../lib/xe/xe_ioctl.c:439:7: error: conflicting types for ‘xe_bo_map_fixed’
void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, uint64_t addr)
^~~~~~~~~~~~~~~
In file included from ../lib/xe/xe_ioctl.c:46:
../lib/xe/xe_ioctl.h:89:7: note: previous declaration of ‘xe_bo_map_fixed’ was here
void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, long unsigned int addr);
^~~~~~~~~~~~~~~
../lib/xe/xe_ioctl.c: In function ‘xe_bo_map_fixed’:
../lib/xe/xe_ioctl.c:445:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
map = mmap((void *)addr, size, PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, mmo);
^ cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed. section_end:1729049656:step_script section_start:1729049656:cleanup_file_variables Cleaning up project directory and file based variables section_end:1729049657:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-debian-meson-mips has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130866):
/usr/bin/mips-linux-gnu-gcc -Ilib/76b5a35@@igt-xe_xe_ioctl_c@sta -Ilib -I../lib -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/mips-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/mips-linux-gnu -I/usr/include/valgrind -I/usr/include/alsa -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -fPIC -pthread '-DIGT_DATADIR="/usr/local/share/igt-gpu-tools"' '-DIGT_SRCDIR="/builds/gfx-ci/igt-ci-tags/tests"' '-DIGT_LOG_DOMAIN="xe/xe_ioctl"' -MD -MQ 'lib/76b5a35@@igt-xe_xe_ioctl_c@sta/xe_xe_ioctl.c.o' -MF 'lib/76b5a35@@igt-xe_xe_ioctl_c@sta/xe_xe_ioctl.c.o.d' -o 'lib/76b5a35@@igt-xe_xe_ioctl_c@sta/xe_xe_ioctl.c.o' -c ../lib/xe/xe_ioctl.c ../lib/xe/xe_ioctl.c:439:7: error: conflicting types for ‘xe_bo_map_fixed’
void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, uint64_t addr)
^~~~~~~~~~~~~~~
In file included from ../lib/xe/xe_ioctl.c:46:
../lib/xe/xe_ioctl.h:89:7: note: previous declaration of ‘xe_bo_map_fixed’ was here
void *xe_bo_map_fixed(int fd, uint32_t bo, size_t size, long unsigned int addr);
^~~~~~~~~~~~~~~
../lib/xe/xe_ioctl.c: In function ‘xe_bo_map_fixed’:
../lib/xe/xe_ioctl.c:445:13: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
map = mmap((void *)addr, size, PROT_WRITE, MAP_SHARED | MAP_FIXED, fd, mmo);
^ cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed. section_end:1729049653:step_script section_start:1729049653:cleanup_file_variables Cleaning up project directory and file based variables section_end:1729049654:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130857):
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/1134] Generating version.h with a custom command.
[2/528] Linking target tests/xe_exec_reset.
[3/528] Generating xe_exec_reset.testlist with a meson_exe.py custom command.
[4/528] Compiling C object 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o'.
FAILED: tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o
cc -Itests/59830eb@@xe_exec_system_allocator@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -pthread -MD -MQ 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -MF 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o.d' -o 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -c ../tests/intel/xe_exec_system_allocator.c ../tests/intel/xe_exec_system_allocator.c: In function ‘test_exec’:
../tests/intel/xe_exec_system_allocator.c:1146:21: error: ‘MREMAP_DONTUNMAP’ undeclared (first use in this function)
1146 | remap_flags |= MREMAP_DONTUNMAP;
| ^~~~~~~~~~~~~~~~ ../tests/intel/xe_exec_system_allocator.c:1146:21: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1729049666:step_script
section_start:1729049666:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1729049666:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-clang has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130861):
[2/526] Generating xe_exec_queue_property.testlist with a meson_exe.py custom command.
[3/526] Linking target tests/xe_exec_reset.
[4/526] Generating xe_exec_reset.testlist with a meson_exe.py custom command.
[5/526] Compiling C object 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o'.
FAILED: tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o
clang -Itests/59830eb@@xe_exec_system_allocator@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/valgrind -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -pthread -MD -MQ 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -MF 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o.d' -o 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -c ../tests/intel/xe_exec_system_allocator.c ../tests/intel/xe_exec_system_allocator.c:1146:21: error: use of undeclared identifier 'MREMAP_DONTUNMAP'
remap_flags |= MREMAP_DONTUNMAP;
^
../tests/intel/xe_exec_system_allocator.c:1427:11: warning: implicit conversion from 'double' to 'unsigned int' changes value from 0.01 to 0 [-Wliteral-conversion]
sleep(.01);
~~~~~ ^~~ 1 warning and 1 error generated.
ninja: build stopped: subcommand failed. section_end:1729049683:step_script section_start:1729049683:cleanup_file_variables Cleaning up project directory and file based variables section_end:1729049684:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libdrm-nouveau has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130860):
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/1004] Generating version.h with a custom command.
[2/405] Linking target tests/xe_exec_reset.
[3/405] Generating xe_exec_reset.testlist with a meson_exe.py custom command.
[4/405] Compiling C object 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o'.
FAILED: tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o
cc -Itests/59830eb@@xe_exec_system_allocator@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -pthread -MD -MQ 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -MF 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o.d' -o 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -c ../tests/intel/xe_exec_system_allocator.c ../tests/intel/xe_exec_system_allocator.c: In function ‘test_exec’:
../tests/intel/xe_exec_system_allocator.c:1146:21: error: ‘MREMAP_DONTUNMAP’ undeclared (first use in this function)
1146 | remap_flags |= MREMAP_DONTUNMAP;
| ^~~~~~~~~~~~~~~~ ../tests/intel/xe_exec_system_allocator.c:1146:21: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1729049703:step_script
section_start:1729049703:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1729049703:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-no-libunwind has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130858):
ninja: Entering directory `build'
[1/1135] Generating version.h with a custom command.
[2/530] Linking target tests/xe_exec_reset.
[3/530] Generating xe_exec_queue_property.testlist with a meson_exe.py custom command.
[4/530] Generating xe_exec_reset.testlist with a meson_exe.py custom command.
[5/530] Compiling C object 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o'.
FAILED: tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o
cc -Itests/59830eb@@xe_exec_system_allocator@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I../lib/stubs/libunwind -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -pthread -MD -MQ 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -MF 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o.d' -o 'tests/59830eb@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -c ../tests/intel/xe_exec_system_allocator.c ../tests/intel/xe_exec_system_allocator.c: In function ‘test_exec’:
../tests/intel/xe_exec_system_allocator.c:1146:21: error: ‘MREMAP_DONTUNMAP’ undeclared (first use in this function)
1146 | remap_flags |= MREMAP_DONTUNMAP;
| ^~~~~~~~~~~~~~~~ ../tests/intel/xe_exec_system_allocator.c:1146:21: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1729049666:step_script
section_start:1729049666:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1729049667:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora-oldest-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/65130859):
ninja: build stopped: subcommand failed.
ninja: Entering directory `build'
[1/1134] Generating version.h with a custom command.
[2/528] Linking target tests/xe_exec_reset.
[3/528] Generating xe_exec_reset.testlist with a meson_exe.py custom command.
[4/528] Compiling C object 'tests/tests@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o'.
FAILED: tests/tests@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o
cc -Itests/tests@@xe_exec_system_allocator@exe -Itests -I../tests -I../include -I../include/drm-uapi -I../include/drm-uapi-experimental -I../include/linux-uapi -Ilib -I../lib -I../lib/stubs/syscalls -I. -I../ -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/libdrm/nouveau -I/usr/include/valgrind -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O2 -g -D_GNU_SOURCE -include config.h -D_FORTIFY_SOURCE=2 -Wbad-function-cast -Wdeclaration-after-statement -Wformat=2 -Wimplicit-fallthrough=0 -Wlogical-op -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wuninitialized -Wunused -Wno-clobbered -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pointer-arith -Wno-address-of-packed-member -Wno-sign-compare -Wno-type-limits -Wno-unused-parameter -Wno-unused-result -Werror=address -Werror=array-bounds -Werror=implicit -Werror=init-self -Werror=int-conversion -Werror=int-to-pointer-cast -Werror=main -Werror=missing-braces -Werror=nonnull -Werror=pointer-to-int-cast -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=write-strings -fno-builtin-malloc -fno-builtin-calloc -D_LARGEFILE64_SOURCE=1 -pthread -MD -MQ 'tests/tests@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -MF 'tests/tests@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o.d' -o 'tests/tests@@xe_exec_system_allocator@exe/intel_xe_exec_system_allocator.c.o' -c ../tests/intel/xe_exec_system_allocator.c ../tests/intel/xe_exec_system_allocator.c: In function ‘test_exec’:
../tests/intel/xe_exec_system_allocator.c:1146:21: error: ‘MREMAP_DONTUNMAP’ undeclared (first use in this function)
1146 | remap_flags |= MREMAP_DONTUNMAP;
| ^~~~~~~~~~~~~~~~ ../tests/intel/xe_exec_system_allocator.c:1146:21: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.
section_end:1729049685:step_script
section_start:1729049685:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1729049685:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1290998