NOMERGE: Import drm.h up to 54ecb8f7028c
PATCH v3 1/2 NOMERGE: Import drm.h up to 54ecb8f7028c
Depends on ummerged kernel code for getfb2
Rest of drm.h taken from:
commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
Author: Linus Torvalds <[email protected]> Date: Mon Sep 30 10:35:40 2019 -0700
Linux 5.4-rc1
--- include/drm-uapi/drm.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)
include/drm-uapi/drm.h +39 -0
@@ -643,6 +643,7 @@ struct drm_gem_open {#define DRM_CAP_PAGE_FLIP_TARGET 0x11#define DRM_CAP_CRTC_IN_VBLANK_EVENT 0x12#define DRM_CAP_SYNCOBJ 0x13 +#define DRM_CAP_SYNCOBJ_TIMELINE 0x14/** DRM_IOCTL_GET_CAP ioctl argument type */ struct drm_get_cap {
@@ -729,8 +730,18 @@ struct drm_syncobj_handle {__u32 pad; }; +struct drm_syncobj_transfer { +__u32 src_handle; +__u32 dst_handle; +__u64 src_point; +__u64 dst_point; +__u32 flags; +__u32 pad; +}; +#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL (1 << 0)#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT (1 << 1) +#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE (1 << 2)/* wait for time point to become available */ struct drm_syncobj_wait {__u64 handles;/* absolute timeout */
@@ -741,12 +752,33 @@ struct drm_syncobj_wait {__u32 pad; }; +struct drm_syncobj_timeline_wait { +__u64 handles; +/* wait on specific timeline point for every handles*/ +__u64 points; +/* absolute timeout */ +__s64 timeout_nsec; +__u32 count_handles; +__u32 flags; +__u32 first_signaled;/* only valid when not waiting all */ +__u32 pad; +}; + +struct drm_syncobj_array {__u64 handles;__u32 count_handles;__u32 pad; }; +struct drm_syncobj_timeline_array { +__u64 handles; +__u64 points; +__u32 count_handles; +__u32 pad; +}; + +/* Query current scanout sequence number */ struct drm_crtc_get_sequence {__u32 crtc_id;/* requested crtc_id */
@@ -903,6 +935,13 @@ extern "C" {#define DRM_IOCTL_MODE_GET_LEASE DRM_IOWR(0xC8, struct drm_mode_get_lease)#define DRM_IOCTL_MODE_REVOKE_LEASE DRM_IOWR(0xC9, struct drm_mode_revoke_lease) +#define DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT DRM_IOWR(0xCA, struct drm_syncobj_timeline_wait) +#define DRM_IOCTL_SYNCOBJ_QUERY DRM_IOWR(0xCB, struct drm_syncobj_timeline_array) +#define DRM_IOCTL_SYNCOBJ_TRANSFER DRM_IOWR(0xCC, struct drm_syncobj_transfer) +#define DRM_IOCTL_SYNCOBJ_TIMELINE_SIGNAL DRM_IOWR(0xCD, struct drm_syncobj_timeline_array) + +#define DRM_IOCTL_MODE_GETFB2 DRM_IOWR(0xCE, struct drm_mode_fb_cmd2) +/** * Device specific ioctls should only be in their respective headers * The device specific ioctl range is from 0x40 to 0x9f.
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v3 2/2 tests/kms_getfb: Add getfb2 tests
From: Daniel Stone <[email protected]>
Mirroring addfb2, add tests for the new ioctl which will return us information about framebuffers containing multiple buffers, as well as modifiers.
Changes since v1:
- Add test that uses getfb2 output to call addfb2 as suggested by Ville
--- tests/kms_getfb.c | 103 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+)
tests/kms_getfb.c +103 -0
@@ -228,6 +228,106 @@ static void test_duplicate_handles(int fd) } } +static void test_getfb2 (int fd) +{ +struct drm_mode_fb_cmd2 add_basic = {}; + + igt_fixture { +struct drm_mode_fb_cmd2 get = {}; + + add_basic.width =1024 ; + add_basic.height =1024 ; + add_basic.pixel_format =DRM_FORMAT_XRGB8888 ; + add_basic.pitches[0 ] =1024 *4 ; + add_basic.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , +DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +igt_assert (add_basic.handles[0 ]); +do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add_basic); + + get.fb_id = add_basic.fb_id; +do_ioctl (fd,DRM_IOCTL_MODE_GETFB2 , &get); +igt_assert_neq_u32 (get.handles[0 ],0 ); +gem_close (fd, get.handles[0 ]); + } + + igt_subtest("getfb2-handle-zero") { +struct drm_mode_fb_cmd2 get = {}; +do_ioctl_err (fd,DRM_IOCTL_MODE_GETFB2 , &get,ENOENT ); + } + + igt_subtest("getfb2-handle-closed") { +struct drm_mode_fb_cmd2 add = add_basic; +struct drm_mode_fb_cmd2 get = { }; + + add.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , +DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +igt_assert (add.handles[0 ]); +do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add); +do_ioctl (fd,DRM_IOCTL_MODE_RMFB , &add.fb_id); + + get.fb_id = add.fb_id; +do_ioctl_err (fd,DRM_IOCTL_MODE_GETFB2 , &get,ENOENT ); +gem_close (fd, add.handles[0 ]); + } + + igt_subtest("getfb2-handle-not-fb") { +struct drm_mode_fb_cmd get = { .fb_id =get_any_prop_id (fd) }; +igt_require (get.fb_id >0 ); +do_ioctl_err (fd,DRM_IOCTL_MODE_GETFB , &get,ENOENT ); + } + + igt_subtest("getfb2-accept-ccs") { +struct drm_mode_fb_cmd2 add_ccs = { }; +struct drm_mode_fb_cmd2 get = { }; +int i; + +get_ccs_fb (fd, &add_ccs); +igt_require (add_ccs.fb_id !=0 ); + get.fb_id = add_ccs.fb_id; +do_ioctl (fd,DRM_IOCTL_MODE_GETFB2 , &get); + +igt_assert_eq_u32 (get.width, add_ccs.width); +igt_assert_eq_u32 (get.height, add_ccs.height); +igt_assert (get.flags &DRM_MODE_FB_MODIFIERS ); + +for (i =0 ; i <ARRAY_SIZE (get.handles); i++) { +igt_assert_eq_u32 (get.pitches[i], add_ccs.pitches[i]); +igt_assert_eq_u32 (get.offsets[i], add_ccs.offsets[i]); +if (add_ccs.handles[i] !=0 ) { +igt_assert_neq_u32 (get.handles[i],0 ); +igt_assert_neq_u32 (get.handles[i], + add_ccs.handles[i]); +igt_assert_eq_u64 (get.modifier[i], + add_ccs.modifier[i]); + }else { +igt_assert_eq_u32 (get.handles[i],0 ); +igt_assert_eq_u64 (get.modifier[i],0 ); + } + } +igt_assert_eq_u32 (get.handles[0 ], get.handles[1 ]); + +do_ioctl (fd,DRM_IOCTL_MODE_RMFB , &get.fb_id); +gem_close (fd, add_ccs.handles[0 ]); +gem_close (fd, get.handles[0 ]); + } + + igt_subtest("getfb2-into-addfb2") { +struct drm_mode_fb_cmd2 cmd = { }; + + cmd.fb_id = add_basic.fb_id; +do_ioctl (fd,DRM_IOCTL_MODE_GETFB2 , &cmd); +do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &cmd); + +do_ioctl (fd,DRM_IOCTL_MODE_RMFB , &cmd.fb_id); +gem_close (fd, cmd.handles[0 ]); + } + + igt_fixture { +do_ioctl (fd,DRM_IOCTL_MODE_RMFB , &add_basic.fb_id); +gem_close (fd, add_basic.handles[0 ]); + } +} + igt_main {int fd;
@@ -243,6 +343,9 @@ igt_mainigt_subtest_group test_duplicate_handles (fd ); +igt_subtest_group +test_getfb2 (fd ); +igt_fixture close (fd ); }
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[igt-dev] ✗ GitLab.Pipeline: warning for series starting with [i-g-t,1/2,v3] NOMERGE: Import drm.h up to 54ecb8f7028c
In reply to Juston Li== Series Details ==
== Series Details ==
Series: series starting with [i-g-t,1/2,v3] NOMERGE: Import drm.h up to 54ecb8f7028c
URL : https://patchwork.freedesktop.org/series/68061/
State : warning
== Summary ==
ERROR! This series introduces new undocumented tests:
kms_getfb@getfb2-accept-ccs
kms_getfb@getfb2-handle-closed
kms_getfb@getfb2-handle-not-fb
kms_getfb@getfb2-handle-zero
kms_getfb@getfb2-into-addfb2
Can you document them as per the requirement in the [CONTRIBUTING.md]?
[Documentation] has more details on how to do this.
Here are few examples:
https://gitlab.freedesktop.org/drm/igt-gpu-tools/commit/0316695d03aa46108296b27f3982ec93200c7a6e
https://gitlab.freedesktop.org/drm/igt-gpu-tools/commit/443cc658e1e6b492ee17bf4f4d891029eb7a205d
Thanks in advance!
[CONTRIBUTING.md]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/blob/master/CONTRIBUTING.md#L19
[Documentation]: https://drm.pages.freedesktop.org/igt-gpu-tools/igt-gpu-tools-Core.html#igt-describe
Other than that, pipeline status: SUCCESS.
see https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/70797 for more details
== Logs ==
For more details see: https://gitlab.freedesktop.org/gfx-ci/igt-ci-tags/pipelines/70797
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Patchwork
CI[igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2,v3] NOMERGE: Import drm.h up to 54ecb8f7028c
In reply to Juston Li== Series Details ==
== Series Details ==
Series: series starting with [i-g-t,1/2,v3] NOMERGE: Import drm.h up to 54ecb8f7028c
URL : https://patchwork.freedesktop.org/series/68061/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7099 -> IGTPW_3574
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_3574 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_3574, 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_3574/index.html
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_3574:
### IGT changes ###
#### Possible regressions ####
* igt@gem_render_linear_blits@basic:
- fi-cml-u: [PASS][1] -> [CRASH][2] +1 similar issue
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-cml-u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-cml-u/igt@[email protected]
* igt@kms_frontbuffer_tracking@basic:
- fi-cml-u: [PASS][3] -> [FAIL][4] +5 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-cml-u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-cml-u/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* igt@gem_render_linear_blits@basic:
- {fi-tgl-u}: NOTRUN -> [CRASH][5] +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-tgl-u/igt@[email protected]
* igt@gem_render_tiled_blits@basic:
- {fi-tgl-u2}: [PASS][6] -> [CRASH][7] +1 similar issue
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-tgl-u2/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-tgl-u2/igt@[email protected]
* igt@gem_tiled_blits@basic:
- {fi-tgl-u2}: [PASS][8] -> [FAIL][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-tgl-u2/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-tgl-u2/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- {fi-icl-u4}: [PASS][10] -> [DMESG-WARN][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-icl-u4/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-icl-u4/igt@[email protected]
* igt@kms_psr@primary_mmap_gtt:
- {fi-tgl-u}: NOTRUN -> [FAIL][12] +5 similar issues
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-tgl-u/igt@kms_psr@primary_mmap_gtt.html
* igt@kms_psr@primary_page_flip:
- {fi-tgl-u2}: NOTRUN -> [FAIL][13] +4 similar issues
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-tgl-u2/igt@kms_psr@primary_page_flip.html
Known issues
------------
Here are the changes found in IGTPW_3574 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_switch@legacy-render:
- fi-cml-u2: [PASS][14] -> [INCOMPLETE][15] ([fdo#110566] / [fdo#111381])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-cml-u2/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-cml-u2/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- fi-skl-6600u: [PASS][16] -> [INCOMPLETE][17] ([fdo#107807])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-skl-6600u/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-skl-6600u/igt@[email protected]
* igt@prime_vgem@basic-read:
- fi-icl-u3: [PASS][18] -> [DMESG-WARN][19] ([fdo#107724]) +2 similar issues
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-icl-u3/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-icl-u3/igt@[email protected]
#### Possible fixes ####
* igt@debugfs_test@read_all_entries:
- {fi-tgl-u}: [INCOMPLETE][20] -> [PASS][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-tgl-u/igt@debugfs_test@read_all_entries.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-tgl-u/igt@debugfs_test@read_all_entries.html
* igt@gem_basic@bad-close:
- fi-skl-6770hq: [DMESG-WARN][22] ([fdo#105541]) -> [PASS][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-skl-6770hq/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-skl-6770hq/igt@[email protected]
* igt@gem_ringfill@basic-default-fd:
- fi-icl-u3: [DMESG-WARN][24] ([fdo#107724]) -> [PASS][25] +1 similar issue
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-icl-u3/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-icl-u3/igt@[email protected]
* igt@gem_wait@basic-busy-all:
- {fi-tgl-u2}: [INCOMPLETE][26] -> [PASS][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-tgl-u2/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-tgl-u2/igt@[email protected]
* igt@i915_selftest@live_gem_contexts:
- {fi-icl-dsi}: [DMESG-FAIL][28] -> [PASS][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-icl-dsi/igt@i915_selftest@live_gem_contexts.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-icl-dsi/igt@i915_selftest@live_gem_contexts.html
* igt@kms_busy@basic-flip-a:
- fi-icl-u2: [TIMEOUT][30] ([fdo#111800]) -> [PASS][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-icl-u2/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-icl-u2/igt@[email protected]
* igt@prime_self_import@basic-llseek-bad:
- {fi-icl-dsi}: [DMESG-WARN][32] ([fdo#106107]) -> [PASS][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7099/fi-icl-dsi/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/fi-icl-dsi/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102505]: https://bugs.freedesktop.org/show_bug.cgi?id=102505
[fdo#105541]: https://bugs.freedesktop.org/show_bug.cgi?id=105541
[fdo#106107]: https://bugs.freedesktop.org/show_bug.cgi?id=106107
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#110566]: https://bugs.freedesktop.org/show_bug.cgi?id=110566
[fdo#111155]: https://bugs.freedesktop.org/show_bug.cgi?id=111155
[fdo#111381]: https://bugs.freedesktop.org/show_bug.cgi?id=111381
[fdo#111800]: https://bugs.freedesktop.org/show_bug.cgi?id=111800
Participating hosts (52 -> 46)
------------------------------
Additional (1): fi-hsw-peppy
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-icl-y fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_5231 -> IGTPW_3574
CI-20190529: 20190529
CI_DRM_7099: fccd0abc9c05536751c60aabe5710c173fb8ffa6 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_3574: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/index.html
IGT_5231: e293051f8f99c72cb01d21e4b73a5928ea351eb3 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
== Testlist changes ==
+igt@kms_getfb@getfb2-accept-ccs
+igt@kms_getfb@getfb2-handle-closed
+igt@kms_getfb@getfb2-handle-not-fb
+igt@kms_getfb@getfb2-handle-zero
+igt@kms_getfb@getfb2-into-addfb2
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_3574/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev