* [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite
@ 2023-11-02 11:06 Jesse Zhang
2023-11-02 12:04 ` [igt-dev] ✗ Fi.CI.BUILD: failure for " Patchwork
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Jesse Zhang @ 2023-11-02 11:06 UTC (permalink / raw)
To: igt-dev; +Cc: Tim Huang, Luben Tuikov, Alex Deucher, Christian Koenig
Add some amdgpu test suite to tester.
Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
Cc: Luben Tuikov <luben.tuikov@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Tim Huang <tim.huang@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
---
tests/meson.build | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/tests/meson.build b/tests/meson.build
index 62721157d..9d9f302de 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -83,6 +83,28 @@ test_progs = [
'vgem_slow',
]
+amd_gpu_progs = [
+ 'amd_module_load',
+ 'amd_basic',
+ 'amd_pstate',
+ 'amd_dispatch',
+ 'amd_bo',
+ 'amd_cs_nop',
+ 'amd_deadlock',
+ 'amd_mem_leak',
+ 'amd_security',
+ 'amd_syncobj',
+ 'amd_uvd_dec',
+ 'amd_uvd_enc',
+ 'amd_vce_dec',
+ 'amd_vcn',
+ 'amd_vm',
+ 'amd_hotplug',
+ 'amd_info',
+ 'amd_pci_unplug',
+ 'amd_ras',
+]
+
intel_i915_xe_progs = [
'api_intel_allocator',
'intel_hwmon',
@@ -398,6 +420,25 @@ foreach prog : test_progs
endif
endforeach
+foreach prog : amd_gpu_progs
+ testexe = executable(prog,
+ [join_paths('amdgpu', prog + '.c')] + extra_sources.get(prog, []),
+ dependencies : test_deps + extra_dependencies.get(prog, []),
+ install_dir : libexecdir,
+ install_rpath : libexecdir_rpathdir,
+ install : true)
+ test_executables += testexe
+ test_list += prog
+ name = prog.split('/').get(-1)
+ if not meson.is_cross_build()
+ testlist_files += custom_target(name + '.testlist',
+ build_by_default : true,
+ command : [testexe, '--show-testlist'],
+ capture : true,
+ output : name + '.testlist')
+ endif
+endforeach
+
intel_progs = intel_i915_xe_progs
intel_progs += intel_i915_progs + intel_kms_progs
if build_xe
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [igt-dev] ✗ Fi.CI.BUILD: failure for tests/amdgpu: add amdgpu test suite
2023-11-02 11:06 [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite Jesse Zhang
@ 2023-11-02 12:04 ` Patchwork
2023-11-02 12:08 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-11-02 12:04 UTC (permalink / raw)
To: Jesse Zhang; +Cc: igt-dev
== Series Details ==
Series: tests/amdgpu: add amdgpu test suite
URL : https://patchwork.freedesktop.org/series/125892/
State : failure
== Summary ==
IGT patchset build failed on latest successful build
9e3c3791e7e0297f277211b19a3388a1ee87f3d0 scripts/test_list.py: fix subtest regex match
Tail of build.log:
[410/1711] Compiling C object 'tests/59830eb@@kms_universal_plane@exe/kms_universal_plane.c.o'.
[411/1711] Compiling C object 'tests/59830eb@@gem_ctx_bad_destroy@exe/intel_gem_ctx_bad_destroy.c.o'.
[412/1711] Compiling C object 'tests/59830eb@@sw_sync@exe/sw_sync.c.o'.
[413/1711] Compiling C object 'tests/59830eb@@gem_basic@exe/intel_gem_basic.c.o'.
[414/1711] Compiling C object 'tests/59830eb@@kms_setmode@exe/kms_setmode.c.o'.
[415/1711] Compiling C object 'tests/59830eb@@gem_bad_reloc@exe/intel_gem_bad_reloc.c.o'.
[416/1711] Compiling C object 'tests/59830eb@@gem_compute@exe/intel_gem_compute.c.o'.
[417/1711] Compiling C object 'tests/59830eb@@amd_uvd_enc@exe/amdgpu_amd_uvd_enc.c.o'.
[418/1711] Compiling C object 'tests/59830eb@@testdisplay@exe/testdisplay.c.o'.
[419/1711] Compiling C object 'tests/59830eb@@vgem_basic@exe/vgem_basic.c.o'.
[420/1711] Compiling C object 'tests/59830eb@@kms_rotation_crc@exe/kms_rotation_crc.c.o'.
[421/1711] Compiling C object 'tests/59830eb@@gem_close@exe/intel_gem_close.c.o'.
[422/1711] Compiling C object 'tests/59830eb@@amd_basic@exe/amdgpu_amd_basic.c.o'.
[423/1711] Compiling C object 'tests/59830eb@@amd_uvd_dec@exe/amdgpu_amd_uvd_dec.c.o'.
[424/1711] Compiling C object 'tests/59830eb@@syncobj_wait@exe/syncobj_wait.c.o'.
[425/1711] Compiling C object 'tests/59830eb@@gem_cs_tlb@exe/intel_gem_cs_tlb.c.o'.
[426/1711] Compiling C object 'tests/59830eb@@gem_caching@exe/intel_gem_caching.c.o'.
[427/1711] Compiling C object 'assembler/1ca89e8@@brw@sta/brw_disasm.c.o'.
[428/1711] Compiling C object 'tests/59830eb@@gem_close_race@exe/intel_gem_close_race.c.o'.
[429/1711] Compiling C object 'lib/76b5a35@@igt-igt_core_c@sta/igt_core.c.o'.
[430/1711] Generating i915-perf-registers-acmgt3 with a custom command.
[431/1711] Compiling C object 'tests/59830eb@@gem_ctx_freq@exe/intel_gem_ctx_freq.c.o'.
[432/1711] Compiling C object 'lib/76b5a35@@igt-intel_batchbuffer_c@sta/intel_batchbuffer.c.o'.
[433/1711] Compiling C object 'tests/59830eb@@kms_atomic@exe/kms_atomic.c.o'.
[434/1711] Compiling C object 'tests/59830eb@@gem_create@exe/intel_gem_create.c.o'.
[435/1711] Compiling C object 'tests/59830eb@@amd_vce_dec@exe/amdgpu_amd_vce_dec.c.o'.
[436/1711] Compiling C object 'tests/59830eb@@gem_ccs@exe/intel_gem_ccs.c.o'.
[437/1711] Generating i915-perf-metrics-acmgt3 with a custom command.
[438/1711] Compiling C object 'tests/59830eb@@kms_cursor_legacy@exe/kms_cursor_legacy.c.o'.
[439/1711] Compiling C object 'tests/59830eb@@gem_ctx_engines@exe/intel_gem_ctx_engines.c.o'.
[440/1711] Compiling C object 'tests/59830eb@@api_intel_allocator@exe/intel_api_intel_allocator.c.o'.
[441/1711] Compiling C object 'lib/76b5a35@@igt-rendercopy_gen8_c@sta/rendercopy_gen8.c.o'.
[442/1711] Compiling C object 'lib/76b5a35@@igt-igt_chamelium_c@sta/igt_chamelium.c.o'.
[443/1711] Compiling C object 'tests/59830eb@@prime_vgem@exe/prime_vgem.c.o'.
[444/1711] Compiling C object 'tests/59830eb@@gem_ctx_create@exe/intel_gem_ctx_create.c.o'.
[445/1711] Compiling C object 'tests/59830eb@@drm_fdinfo@exe/intel_drm_fdinfo.c.o'.
[446/1711] Compiling C object 'tests/59830eb@@gem_blits@exe/intel_gem_blits.c.o'.
[447/1711] Compiling C object 'lib/76b5a35@@igt-rendercopy_gen9_c@sta/rendercopy_gen9.c.o'.
[448/1711] Compiling C object 'tests/59830eb@@gem_busy@exe/intel_gem_busy.c.o'.
[449/1711] Compiling C object 'tests/59830eb@@syncobj_timeline@exe/syncobj_timeline.c.o'.
[450/1711] Compiling C object 'tests/59830eb@@amd_vcn@exe/amdgpu_amd_vcn.c.o'.
[451/1711] Compiling C object 'lib/76b5a35@@igt-i915_intel_decode_c@sta/i915_intel_decode.c.o'.
[452/1711] Compiling C object 'tests/59830eb@@api_intel_bb@exe/intel_api_intel_bb.c.o'.
[453/1711] Compiling C object 'lib/76b5a35@@igt-igt_fb_c@sta/igt_fb.c.o'.
[454/1711] Compiling C object 'tests/59830eb@@gem_concurrent_blit@exe/intel_gem_concurrent_blit.c.o'.
[455/1711] Compiling C object 'assembler/1ca89e8@@brw@sta/brw_eu_emit.c.o'.
[456/1711] Compiling C object 'lib/76b5a35@@igt-igt_kms_c@sta/igt_kms.c.o'.
[457/1711] Generating i915-perf-equations with a custom command.
[458/1711] Compiling C object 'runner/527aa9f@@runner_test@exe/runner_tests.c.o'.
ninja: build stopped: subcommand failed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✗ GitLab.Pipeline: warning for tests/amdgpu: add amdgpu test suite
2023-11-02 11:06 [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite Jesse Zhang
2023-11-02 12:04 ` [igt-dev] ✗ Fi.CI.BUILD: failure for " Patchwork
@ 2023-11-02 12:08 ` Patchwork
2023-11-03 2:11 ` [igt-dev] [PATCH i-g-t] " Zhang, Jesse(Jie)
2023-11-03 3:00 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/amdgpu: add amdgpu test suite (rev2) Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-11-02 12:08 UTC (permalink / raw)
To: Jesse Zhang; +Cc: igt-dev
== Series Details ==
Series: tests/amdgpu: add amdgpu test suite
URL : https://patchwork.freedesktop.org/series/125892/
State : warning
== Summary ==
Pipeline status: FAILED.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1024769 for the overview.
build:tests-debian-meson has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/51092504):
[5/975] Generating core_hotunplug.testlist with a meson_exe.py custom command.
[6/975] Generating nouveau_crc.testlist with a meson_exe.py custom command.
[7/975] Generating amd_basic.testlist with a meson_exe.py custom command.
[8/975] Compiling C object 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o
cc -Itests/59830eb@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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-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 -pthread -MD -MQ 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
r = amdgpu_cs_ctx_stable_pstate(context_handle,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926773:step_script
section_start:1698926773:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926774: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/51092507):
[2/720] Linking target lib/libi915_perf.so.1.5.
[3/720] Generating symbol file 'lib/76b5a35@@i915_perf@sha/libi915_perf.so.1.5.symbols'.
[4/720] Linking target tests/core_hotunplug.
[5/720] Compiling C object 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o
/usr/bin/aarch64-linux-gnu-gcc -Itests/59830eb@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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-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 -pthread -MD -MQ 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
r = amdgpu_cs_ctx_stable_pstate(context_handle,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926803:step_script
section_start:1698926803:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926803: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/51092506):
[3/719] Generating symbol file 'lib/76b5a35@@i915_perf@sha/libi915_perf.so.1.5.symbols'.
[4/719] Linking target tests/core_hotunplug.
[5/719] Linking target tests/prime_nv_pcopy.
[6/719] Compiling C object 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o
/usr/bin/arm-linux-gnueabihf-gcc -Itests/59830eb@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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/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-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 -pthread -MD -MQ 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
r = amdgpu_cs_ctx_stable_pstate(context_handle,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926801:step_script
section_start:1698926801:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926802: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/51092508):
[3/722] Generating symbol file 'lib/76b5a35@@i915_perf@sha/libi915_perf.so.1.5.symbols'.
[4/722] Linking target tests/core_hotunplug.
[5/722] Linking target tests/nouveau_crc.
[6/722] Compiling C object 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o
/usr/bin/mips-linux-gnu-gcc -Itests/59830eb@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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/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-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 -pthread -MD -MQ 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
r = amdgpu_cs_ctx_stable_pstate(context_handle,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926813:step_script
section_start:1698926813:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926814:cleanup_file_variables
ERROR: Job failed: exit code 1
build:tests-fedora has failed (https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/jobs/51092499):
[4/983] Linking target tests/core_hotunplug.
[5/983] Generating core_hotunplug.testlist with a meson_exe.py custom command.
[6/983] Generating amd_basic.testlist with a meson_exe.py custom command.
[7/983] Compiling C object 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o
cc -Itests/59830eb@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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-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 -pthread -MD -MQ 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
22 | r = amdgpu_cs_ctx_stable_pstate(context_handle,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926755:step_script
section_start:1698926755:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926756: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/51092503):
igt_assert_eq(new_pstate, AMDGPU_CTX_STABLE_PSTATE_NONE);
^~~~~~~~~~
../lib/igt_core.h:827:49: note: expanded from macro 'igt_assert_eq'
#define igt_assert_eq(n1, n2) igt_assert_cmpint(n1, ==, !=, n2)
^~
../lib/igt_core.h:737:15: note: expanded from macro 'igt_assert_cmpint'
int __n1 = (n1), __n2 = (n2); \
^~
../tests/amdgpu/amd_pstate.c:17:37: note: initialize the variable 'new_pstate' to silence this warning
uint32_t current_pstate, new_pstate;
^
= 0
1 warning and 1 error generated.
ninja: build stopped: subcommand failed.
section_end:1698926791:step_script
section_start:1698926791:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926791: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/51092502):
[6/879] Generating vgem_basic.testlist with a meson_exe.py custom command.
[7/879] Generating vgem_slow.testlist with a meson_exe.py custom command.
[8/879] Generating amd_module_load.testlist with a meson_exe.py custom command.
[9/879] Compiling C object 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o
cc -Itests/59830eb@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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-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 -pthread -MD -MQ 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
22 | r = amdgpu_cs_ctx_stable_pstate(context_handle,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926763:step_script
section_start:1698926763:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926763: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/51092500):
[5/985] Generating core_hotunplug.testlist with a meson_exe.py custom command.
[6/985] Generating prime_nv_pcopy.testlist with a meson_exe.py custom command.
[7/985] Generating amd_module_load.testlist with a meson_exe.py custom command.
[8/985] Compiling C object 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o
cc -Itests/59830eb@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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-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 -pthread -MD -MQ 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/59830eb@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
22 | r = amdgpu_cs_ctx_stable_pstate(context_handle,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926764:step_script
section_start:1698926764:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926765: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/51092501):
[5/987] Generating core_hotunplug.testlist with a meson_exe.py custom command.
[6/987] Generating prime_nv_pcopy.testlist with a meson_exe.py custom command.
[7/987] Generating nouveau_crc.testlist with a meson_exe.py custom command.
[8/987] Compiling C object 'tests/tests@@amd_pstate@exe/amdgpu_amd_pstate.c.o'.
FAILED: tests/tests@@amd_pstate@exe/amdgpu_amd_pstate.c.o
cc -Itests/tests@@amd_pstate@exe -Itests -I../tests -I../include -I../include/drm-uapi -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-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 -pthread -MD -MQ 'tests/tests@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -MF 'tests/tests@@amd_pstate@exe/amdgpu_amd_pstate.c.o.d' -o 'tests/tests@@amd_pstate@exe/amdgpu_amd_pstate.c.o' -c ../tests/amdgpu/amd_pstate.c
../tests/amdgpu/amd_pstate.c: In function ‘amdgpu_stable_pstate_test’:
../tests/amdgpu/amd_pstate.c:22:6: error: implicit declaration of function ‘amdgpu_cs_ctx_stable_pstate’; did you mean ‘amdgpu_cs_ctx_create’? [-Werror=implicit-function-declaration]
22 | r = amdgpu_cs_ctx_stable_pstate(context_handle,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| amdgpu_cs_ctx_create
../tests/amdgpu/amd_pstate.c:22:6: warning: nested extern declaration of ‘amdgpu_cs_ctx_stable_pstate’ [-Wnested-externs]
cc1: some warnings being treated as errors
ninja: build stopped: subcommand failed.
section_end:1698926767:step_script
section_start:1698926767:cleanup_file_variables
Cleaning up project directory and file based variables
section_end:1698926768:cleanup_file_variables
ERROR: Job failed: exit code 1
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/-/pipelines/1024769
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite
2023-11-02 11:06 [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite Jesse Zhang
2023-11-02 12:04 ` [igt-dev] ✗ Fi.CI.BUILD: failure for " Patchwork
2023-11-02 12:08 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork
@ 2023-11-03 2:11 ` Zhang, Jesse(Jie)
2023-11-03 3:00 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/amdgpu: add amdgpu test suite (rev2) Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Zhang, Jesse(Jie) @ 2023-11-03 2:11 UTC (permalink / raw)
To: Zhang, Jesse(Jie), igt-dev@lists.freedesktop.org
Cc: Huang, Tim, Tuikov, Luben, Deucher, Alexander, Koenig, Christian
[AMD Official Use Only - General]
Please ignore this patch.
-----Original Message-----
From: Jesse Zhang <jesse.zhang@amd.com>
Sent: Thursday, November 2, 2023 7:07 PM
To: igt-dev@lists.freedesktop.org
Cc: Prosyak, Vitaly <Vitaly.Prosyak@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com>; Tuikov, Luben <Luben.Tuikov@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>; Zhang, Jesse(Jie) <Jesse.Zhang@amd.com>; Kamil Konieczny <kamil.konieczny@linux.intel.com>; Huang, Tim <Tim.Huang@amd.com>; Zhang, Jesse(Jie) <Jesse.Zhang@amd.com>
Subject: [PATCH i-g-t] tests/amdgpu: add amdgpu test suite
Add some amdgpu test suite to tester.
Cc: Vitaly Prosyak <vitaly.prosyak@amd.com>
Cc: Luben Tuikov <luben.tuikov@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Tim Huang <tim.huang@amd.com>
Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
---
tests/meson.build | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/tests/meson.build b/tests/meson.build index 62721157d..9d9f302de 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -83,6 +83,28 @@ test_progs = [
'vgem_slow',
]
+amd_gpu_progs = [
+ 'amd_module_load',
+ 'amd_basic',
+ 'amd_pstate',
+ 'amd_dispatch',
+ 'amd_bo',
+ 'amd_cs_nop',
+ 'amd_deadlock',
+ 'amd_mem_leak',
+ 'amd_security',
+ 'amd_syncobj',
+ 'amd_uvd_dec',
+ 'amd_uvd_enc',
+ 'amd_vce_dec',
+ 'amd_vcn',
+ 'amd_vm',
+ 'amd_hotplug',
+ 'amd_info',
+ 'amd_pci_unplug',
+ 'amd_ras',
+]
+
intel_i915_xe_progs = [
'api_intel_allocator',
'intel_hwmon',
@@ -398,6 +420,25 @@ foreach prog : test_progs
endif
endforeach
+foreach prog : amd_gpu_progs
+ testexe = executable(prog,
+ [join_paths('amdgpu', prog + '.c')] + extra_sources.get(prog, []),
+ dependencies : test_deps + extra_dependencies.get(prog, []),
+ install_dir : libexecdir,
+ install_rpath : libexecdir_rpathdir,
+ install : true)
+ test_executables += testexe
+ test_list += prog
+ name = prog.split('/').get(-1)
+ if not meson.is_cross_build()
+ testlist_files += custom_target(name + '.testlist',
+ build_by_default : true,
+ command : [testexe, '--show-testlist'],
+ capture : true,
+ output : name + '.testlist')
+ endif
+endforeach
+
intel_progs = intel_i915_xe_progs
intel_progs += intel_i915_progs + intel_kms_progs if build_xe
--
2.25.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✗ Fi.CI.BUILD: failure for tests/amdgpu: add amdgpu test suite (rev2)
2023-11-02 11:06 [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite Jesse Zhang
` (2 preceding siblings ...)
2023-11-03 2:11 ` [igt-dev] [PATCH i-g-t] " Zhang, Jesse(Jie)
@ 2023-11-03 3:00 ` Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2023-11-03 3:00 UTC (permalink / raw)
To: Zhang, Jesse(Jie); +Cc: igt-dev
== Series Details ==
Series: tests/amdgpu: add amdgpu test suite (rev2)
URL : https://patchwork.freedesktop.org/series/125892/
State : failure
== Summary ==
Applying: tests/amdgpu: add amdgpu test suite
Patch failed at 0001 tests/amdgpu: add amdgpu test suite
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-11-03 3:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-02 11:06 [igt-dev] [PATCH i-g-t] tests/amdgpu: add amdgpu test suite Jesse Zhang
2023-11-02 12:04 ` [igt-dev] ✗ Fi.CI.BUILD: failure for " Patchwork
2023-11-02 12:08 ` [igt-dev] ✗ GitLab.Pipeline: warning " Patchwork
2023-11-03 2:11 ` [igt-dev] [PATCH i-g-t] " Zhang, Jesse(Jie)
2023-11-03 3:00 ` [igt-dev] ✗ Fi.CI.BUILD: failure for tests/amdgpu: add amdgpu test suite (rev2) Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox