tests/xe/xe_query: Add subtest query-invalid-extension
PATCH 1/1 tests/xe/xe_query: Add subtest query-invalid-extension
From: Janga Rahul Kumar <[email protected]>
Check query with invalid extension returns expected error code.
--- tests/xe/xe_query.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
tests/xe/xe_query.c +20 -0
@@ -435,6 +435,23 @@ test_query_invalid_size(int fd)igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),-1 ); } +/** +* SUBTEST: query-invalid-extension +* Description: Check query with invalid extension returns expected error code. +*/ +static void +test_query_invalid_extension (int fd) +{ +struct drm_xe_device_query query = { + .extensions =-1 , + .query =DRM_XE_DEVICE_QUERY_CONFIG , + .size =0 , + .data =0 , + }; + +igt_assert_eq (igt_ioctl (fd,DRM_IOCTL_XE_DEVICE_QUERY , &query),-1 ); +} + igt_main {int xe;
@@ -468,6 +485,9 @@ igt_main igt_subtest("query-invalid-size")test_query_invalid_size (xe); + igt_subtest("query-invalid-extension") +test_query_invalid_extension (xe); + igt_fixture {xe_device_put (xe);close (xe);
Signature · 1 line
2.25.1
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for tests/xe/xe_query: Add subtest query-invalid-extension (rev2)
== Series Details ==
== Series Details ==
Series: tests/xe/xe_query: Add subtest query-invalid-extension (rev2)
URL : https://patchwork.freedesktop.org/series/116941/
State : failure
== Summary ==
CI Bug Log - changes from IGT_7271 -> IGTPW_8860
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_8860 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_8860, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/index.html
Participating hosts (39 -> 38)
------------------------------
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_8860:
### IGT changes ###
#### Possible regressions ####
* igt@gem_exec_suspend@basic-s3@smem:
- bat-rpls-1: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7271/bat-rpls-1/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/bat-rpls-1/igt@gem_exec_suspend@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@i915_selftest@live@hugepages:
- {bat-mtlp-8}: NOTRUN -> [FAIL][3] +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/bat-mtlp-8/igt@i915_selftest@[email protected]
Known issues
------------
Here are the changes found in IGTPW_8860 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rps@basic-api:
- bat-dg2-11: [PASS][4] -> [FAIL][5] ([i915#8308])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7271/bat-dg2-11/igt@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/bat-dg2-11/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@requests:
- {bat-mtlp-8}: [ABORT][6] -> [PASS][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7271/bat-mtlp-8/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/bat-mtlp-8/igt@i915_selftest@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-d-dp-1:
- bat-dg2-8: [FAIL][8] ([i915#7932]) -> [PASS][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7271/bat-dg2-8/igt@kms_pipe_crc_basic@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/bat-dg2-8/igt@kms_pipe_crc_basic@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7932]: https://gitlab.freedesktop.org/drm/intel/issues/7932
[i915#8308]: https://gitlab.freedesktop.org/drm/intel/issues/8308
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7271 -> IGTPW_8860
CI-20190529: 20190529
CI_DRM_13062: 5a0333cf630a335d7e8f60fd2b8526ed0895900c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8860: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/index.html
IGT_7271: d12d7eb92226e14745a80e6bdd95384913a43548 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Testlist changes
----------------
+igt@xe_query@query-invalid-extension
-igt@i915_pm_freq_api@freq-basic-api
-igt@i915_pm_freq_api@freq-reset
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8860/index.html
Quoted 51 lines
-----Original Message-----
From: igt-dev <[email protected]> On Behalf Of [email protected]
Sent: 26 April 2023 12:12 AM
To: [email protected]; Gandi, Ramadevi <[email protected]>; Kumar, Janga Rahul <[email protected]>
Subject: [igt-dev] [PATCH i-g-t] tests/xe/xe_query: Add subtest query-invalid- extensionFrom: Janga Rahul Kumar <[email protected]>
Check query with invalid extension returns expected error code.
Signed-off-by Janga Rahul Kumar <[email protected]>--- tests/xe/xe_query.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)tests/xe/xe_query.c index renamed from tests/xe/xe_query.c +0
-0
3f038225..6c35730c100644tests/xe/xe_query.c +3
-1@@ -435,6 +435,23 @@ test_query_invalid_size(int fd) igt_assert_eq(igt_ioctl(fd, DRM_IOCTL_XE_DEVICE_QUERY, &query), -1 ); } +/** +* SUBTEST: query-invalid-extension +* Description: Check query with invalid extension returns expected error code.
+ */tests/xe/xe_query.c +12
-1+static void +test_query_invalid_extension (int fd) +{ +struct drm_xe_device_query query = { + .extensions =-1 , + .query =DRM_XE_DEVICE_QUERY_CONFIG , + .size =0 , + .data =0 , + }; + + igt_assert_eq(igt_ioctl(fd, DRM_IOCTL_XE_DEVICE_QUERY, &query), -1); } + igt_main { int xe;
tests/xe/xe_query.c igt_main · line 490
Quoted 6 lines
tests/xe/xe_query.c +3
-0@@ -468,6 +485,9 @@ igt_main igt_subtest("query-invalid-size")test_query_invalid_size (xe); + igt_subtest("query-invalid-extension") +test_query_invalid_extension (xe); +
LGTM
Quoted 5 lines
tests/xe/xe_query.c +0
-1igt_fixture {xe_device_put (xe);close (xe); --2.25.1