Skip to contentSkip to conversation

lib: move upper_32_bits() and lower_32_bits() to library

PATCH In review Daniel Mrzyglod 4 participants 5 messages Mar 5, 2020 – Mar 18, 2020 Library code

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 lib: move upper_32_bits() and lower_32_bits() to library

Move inline upper_32_bits() and lower_32_bits() function from tests to library. Functiom will be usefull for elsewhere use.

v2: fix function description

---
 lib/ioctl_wrappers.h        | 20 ++++++++++++++++++++
 tests/i915/gem_exec_fence.c | 10 ----------
 2 files changed, 20 insertions(+), 10 deletions(-)
lib/ioctl_wrappers.h +20 -0
index 7614e688c..9b29fce81 100644
@@ -244,4 +244,24 @@ static inline void *from_user_pointer(uint64_t u64)
 	return (void *)(uintptr_t)u64;
 }
 
+/**
+ * lower_32_bits:
+ *
+ * return bits 0-31 of a number.
+ */
+static inline uint32_t lower_32_bits(uint64_t x)
+{
+	return x & 0xffffffff;
+}
+
+/**
+ * upper_32_bits:
+ *
+ * return bits 32-63 of a number.
+ */
+static inline uint32_t upper_32_bits(uint64_t x)
+{
+	return x >> 32;
+}
+
 #endif /* IOCTL_WRAPPERS_H */
tests/i915/gem_exec_fence.c +0 -10
index 9b3735325..ebd0f931f 100644
@@ -590,16 +590,6 @@ static uint32_t batch_create(int fd)
 	return handle;
 }
 
-static inline uint32_t lower_32_bits(uint64_t x)
-{
-	return x & 0xffffffff;
-}
-
-static inline uint32_t upper_32_bits(uint64_t x)
-{
-	return x >> 32;
-}
-
 static void test_keep_in_fence(int fd, const struct intel_execution_engine2 *e)
 {
 	struct sigaction sa = { .sa_handler = alarm_handler };
Signature · 6 lines
2.21.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for lib: move upper_32_bits() and lower_32_bits() to library (rev2)

== Series Details ==

== Series Details ==

Series: lib: move upper_32_bits() and lower_32_bits() to library (rev2)
URL : https://patchwork.freedesktop.org/series/74199/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_8069 -> IGTPW_4265
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/index.html

Known issues
------------

Here are the changes found in IGTPW_4265 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_frontbuffer_tracking@basic:
- fi-hsw-peppy: [PASS][1] -> [DMESG-WARN][2] ([i915#44])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/fi-hsw-peppy/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/fi-hsw-peppy/igt@[email protected]

#### Possible fixes ####

* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][3] ([fdo#111096] / [i915#323]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/fi-kbl-7500u/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/fi-kbl-7500u/igt@[email protected]

[fdo#111096]: https://bugs.freedesktop.org/show_bug.cgi?id=111096
[i915#323]: https://gitlab.freedesktop.org/drm/intel/issues/323
[i915#44]: https://gitlab.freedesktop.org/drm/intel/issues/44

Participating hosts (48 -> 44)
------------------------------

Additional (3): fi-blb-e6850 fi-ivb-3770 fi-skl-6600u
Missing (7): fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-kbl-7560u fi-tgl-y fi-byt-clapper fi-bdw-samus

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_5494 -> IGTPW_4265

CI-20190529: 20190529
CI_DRM_8069: c8673f18b2ca3b343206c2ba65d6f1020a93614c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4265: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/index.html
IGT_5494: 48fa8e88bffa16b141d8c29a93638d795a2652c8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for lib: move upper_32_bits() and lower_32_bits() to library (rev2)

In reply to Daniel Mrzyglod
== Series Details ==

== Series Details ==

Series: lib: move upper_32_bits() and lower_32_bits() to library (rev2)
URL : https://patchwork.freedesktop.org/series/74199/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_8069_full -> IGTPW_4265_full
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/index.html

Known issues
------------

Here are the changes found in IGTPW_4265_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_ctx_persistence@close-replace-race:
- shard-apl: [PASS][1] -> [INCOMPLETE][2] ([fdo#103927])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-apl3/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-apl2/igt@[email protected]

* igt@gem_exec_parallel@vcs1-fds:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#112080]) +5 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb1/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb8/igt@[email protected]

* igt@gem_exec_schedule@implicit-both-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([i915#677]) +1 similar issue
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb7/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb4/igt@[email protected]

* igt@gem_exec_schedule@implicit-read-write-bsd2:
- shard-iclb: [PASS][7] -> [SKIP][8] ([fdo#109276] / [i915#677])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb5/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue-bsd1:
- shard-iclb: [PASS][9] -> [SKIP][10] ([fdo#109276]) +11 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb7/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue-chain-bsd:
- shard-iclb: [PASS][11] -> [SKIP][12] ([fdo#112146]) +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb5/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb2/igt@[email protected]

* igt@gem_exec_whisper@basic-queues-priority-all:
- shard-glk: [PASS][13] -> [DMESG-WARN][14] ([i915#118] / [i915#95])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-glk2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-glk3/igt@[email protected]

* igt@i915_pm_rpm@debugfs-forcewake-user:
- shard-hsw: [PASS][15] -> [SKIP][16] ([fdo#109271]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-hsw8/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-hsw8/igt@[email protected]
- shard-iclb: [PASS][17] -> [SKIP][18] ([i915#1316]) +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb4/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb4/igt@[email protected]
- shard-tglb: [PASS][19] -> [SKIP][20] ([i915#1316]) +1 similar issue
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-tglb8/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-tglb8/igt@[email protected]

* igt@i915_pm_rpm@gem-execbuf:
- shard-glk: [PASS][21] -> [SKIP][22] ([fdo#109271]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-glk9/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-glk6/igt@[email protected]

* igt@i915_pm_rps@waitboost:
- shard-iclb: [PASS][23] -> [FAIL][24] ([i915#413])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb3/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb8/igt@[email protected]

* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-apl: [PASS][25] -> [DMESG-WARN][26] ([i915#180])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-apl3/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-apl2/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-flip-vs-cursor-atomic:
- shard-glk: [PASS][27] -> [FAIL][28] ([i915#72])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-glk6/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-glk7/igt@[email protected]

* igt@kms_plane_lowres@pipe-a-tiling-x:
- shard-glk: [PASS][29] -> [FAIL][30] ([i915#899])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-glk3/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-glk8/igt@[email protected]

* igt@kms_psr@psr2_sprite_render:
- shard-iclb: [PASS][31] -> [SKIP][32] ([fdo#109441]) +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb2/igt@kms_psr@psr2_sprite_render.html
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb3/igt@kms_psr@psr2_sprite_render.html

#### Possible fixes ####

* igt@gem_ctx_isolation@vcs1-dirty-create:
- shard-iclb: [SKIP][33] ([fdo#112080]) -> [PASS][34] +4 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb3/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb4/igt@[email protected]

* igt@gem_exec_balancer@smoke:
- shard-iclb: [SKIP][35] ([fdo#110854]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb5/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb2/igt@[email protected]

* igt@gem_exec_schedule@implicit-read-write-bsd1:
- shard-iclb: [SKIP][37] ([fdo#109276] / [i915#677]) -> [PASS][38] +2 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb6/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb4/igt@[email protected]

* igt@gem_exec_schedule@in-order-bsd:
- shard-iclb: [SKIP][39] ([fdo#112146]) -> [PASS][40] +5 similar issues
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb3/igt@[email protected]

* igt@gen9_exec_parse@allowed-single:
- shard-glk: [DMESG-WARN][41] ([i915#716]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-glk4/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-glk8/igt@[email protected]

* igt@i915_pm_rpm@dpms-non-lpsp:
- shard-hsw: [SKIP][43] ([fdo#109271]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-hsw8/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-hsw6/igt@[email protected]

* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: [DMESG-WARN][45] ([i915#180]) -> [PASS][46] +1 similar issue
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-apl8/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-apl3/igt@[email protected]

* igt@kms_flip@nonexisting-fb:
- shard-apl: [DMESG-WARN][47] ([i915#1297]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-apl4/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-apl3/igt@[email protected]

* igt@kms_hdmi_inject@inject-audio:
- shard-tglb: [SKIP][49] ([i915#433]) -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-tglb5/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-tglb3/igt@[email protected]

* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-kbl: [DMESG-WARN][51] ([i915#180]) -> [PASS][52] +2 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-kbl6/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-kbl7/igt@[email protected]

* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [SKIP][53] ([fdo#109441]) -> [PASS][54] +1 similar issue
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb6/igt@kms_psr@psr2_sprite_mmap_gtt.html
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html

* igt@kms_vblank@pipe-c-ts-continuation-dpms-rpm:
- shard-glk: [SKIP][55] ([fdo#109271]) -> [PASS][56] +1 similar issue
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-glk4/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-glk9/igt@[email protected]
- shard-tglb: [SKIP][57] ([fdo#112015]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-tglb8/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-tglb3/igt@[email protected]

* igt@perf@short-reads:
- shard-apl: [FAIL][59] ([i915#51]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-apl6/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-apl7/igt@[email protected]

* igt@prime_busy@hang-bsd2:
- shard-iclb: [SKIP][61] ([fdo#109276]) -> [PASS][62] +17 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb3/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb4/igt@[email protected]

#### Warnings ####

* igt@gem_exec_schedule@pi-userfault-bsd2:
- shard-iclb: [SKIP][63] ([fdo#109276]) -> [INCOMPLETE][64] ([i915#1381])
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb5/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb2/igt@[email protected]

* igt@i915_pm_dc@dc6-psr:
- shard-tglb: [SKIP][65] ([i915#468]) -> [FAIL][66] ([i915#454])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-tglb2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-tglb3/igt@[email protected]

* igt@i915_pm_rpm@dpms-non-lpsp:
- shard-tglb: [SKIP][67] ([i915#1316]) -> [SKIP][68] ([fdo#111644])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-tglb8/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-tglb1/igt@[email protected]
- shard-iclb: [SKIP][69] ([i915#1316]) -> [SKIP][70] ([fdo#110892])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-iclb1/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-iclb2/igt@[email protected]

* igt@runner@aborted:
- shard-snb: ([FAIL][71], [FAIL][72], [FAIL][73], [FAIL][74], [FAIL][75], [FAIL][76], [FAIL][77]) ([fdo#111870] / [i915#1077] / [i915#698]) -> ([FAIL][78], [FAIL][79], [FAIL][80], [FAIL][81], [FAIL][82], [FAIL][83], [FAIL][84]) ([fdo#111870] / [i915#1077])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-snb5/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-snb4/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-snb4/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-snb2/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-snb4/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-snb5/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8069/shard-snb5/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-snb2/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-snb5/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-snb6/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-snb6/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-snb4/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-snb5/igt@[email protected]
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/shard-snb4/igt@[email protected]

[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110854]: https://bugs.freedesktop.org/show_bug.cgi?id=110854
[fdo#110892]: https://bugs.freedesktop.org/show_bug.cgi?id=110892
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111870]: https://bugs.freedesktop.org/show_bug.cgi?id=111870
[fdo#112015]: https://bugs.freedesktop.org/show_bug.cgi?id=112015
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[i915#1077]: https://gitlab.freedesktop.org/drm/intel/issues/1077
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1297]: https://gitlab.freedesktop.org/drm/intel/issues/1297
[i915#1316]: https://gitlab.freedesktop.org/drm/intel/issues/1316
[i915#1381]: https://gitlab.freedesktop.org/drm/intel/issues/1381
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#413]: https://gitlab.freedesktop.org/drm/intel/issues/413
[i915#433]: https://gitlab.freedesktop.org/drm/intel/issues/433
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#468]: https://gitlab.freedesktop.org/drm/intel/issues/468
[i915#51]: https://gitlab.freedesktop.org/drm/intel/issues/51
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#698]: https://gitlab.freedesktop.org/drm/intel/issues/698
[i915#716]: https://gitlab.freedesktop.org/drm/intel/issues/716
[i915#72]: https://gitlab.freedesktop.org/drm/intel/issues/72
[i915#899]: https://gitlab.freedesktop.org/drm/intel/issues/899
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95

Participating hosts (10 -> 8)
------------------------------

Missing (2): pig-skl-6260u pig-glk-j5005

Build changes
-------------

* CI: CI-20190529 -> None
* IGT: IGT_5494 -> IGTPW_4265
* Piglit: piglit_4509 -> None

CI-20190529: 20190529
CI_DRM_8069: c8673f18b2ca3b343206c2ba65d6f1020a93614c @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_4265: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/index.html
IGT_5494: 48fa8e88bffa16b141d8c29a93638d795a2652c8 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_4265/index.html
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by on v2 1/1
#3 lore raw
In reply to Daniel Mrzyglod
Quoted 7 lines · Daniel Mrzyglod

Move inline upper_32_bits() and lower_32_bits() function from tests to library. Functiom will be usefull for elsewhere use.

v2: fix function description

Quoted 62 lines
---
 lib/ioctl_wrappers.h        | 20 ++++++++++++++++++++
 tests/i915/gem_exec_fence.c | 10 ----------
 2 files changed, 20 insertions(+), 10 deletions(-)
lib/ioctl_wrappers.h +20 -0
index 7614e688c..9b29fce81 100644
@@ -244,4 +244,24 @@ static inline void *from_user_pointer(uint64_t u64)
 	return (void *)(uintptr_t)u64;
 }
 
+/**
+ * lower_32_bits:
+ *
+ * return bits 0-31 of a number.
+ */
+static inline uint32_t lower_32_bits(uint64_t x)
+{
+	return x & 0xffffffff;
+}
+
+/**
+ * upper_32_bits:
+ *
+ * return bits 32-63 of a number.
+ */
+static inline uint32_t upper_32_bits(uint64_t x)
+{
+	return x >> 32;
+}
+
 #endif /* IOCTL_WRAPPERS_H */
tests/i915/gem_exec_fence.c +0 -10
index 9b3735325..ebd0f931f 100644
@@ -590,16 +590,6 @@ static uint32_t batch_create(int fd)
 	return handle;
 }
 
-static inline uint32_t lower_32_bits(uint64_t x)
-{
-	return x & 0xffffffff;
-}
-
-static inline uint32_t upper_32_bits(uint64_t x)
-{
-	return x >> 32;
-}
-
 static void test_keep_in_fence(int fd, const struct intel_execution_engine2 *e)
 {
 	struct sigaction sa = { .sa_handler = alarm_handler };
Signature · 6 lines
2.21.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#4 lore raw
Quoted 10 lines · Petri Latvala
Quoted 7 lines · Daniel Mrzyglod

Move inline upper_32_bits() and lower_32_bits() function from tests to library. Functiom will be usefull for elsewhere use.

v2: fix function description

And merged :)
Kasia

Quoted 60 lines
Quoted 60 lines

---
 lib/ioctl_wrappers.h        | 20 ++++++++++++++++++++
 tests/i915/gem_exec_fence.c | 10 ----------
 2 files changed, 20 insertions(+), 10 deletions(-)
lib/ioctl_wrappers.h +20 -0
index 7614e688c..9b29fce81 100644
@@ -244,4 +244,24 @@ static inline void *from_user_pointer(uint64_t u64)
 	return (void *)(uintptr_t)u64;
 }
 
+/**
+ * lower_32_bits:
+ *
+ * return bits 0-31 of a number.
+ */
+static inline uint32_t lower_32_bits(uint64_t x)
+{
+	return x & 0xffffffff;
+}
+
+/**
+ * upper_32_bits:
+ *
+ * return bits 32-63 of a number.
+ */
+static inline uint32_t upper_32_bits(uint64_t x)
+{
+	return x >> 32;
+}
+
 #endif /* IOCTL_WRAPPERS_H */
tests/i915/gem_exec_fence.c +0 -10
index 9b3735325..ebd0f931f 100644
@@ -590,16 +590,6 @@ static uint32_t batch_create(int fd)
 	return handle;
 }
 
-static inline uint32_t lower_32_bits(uint64_t x)
-{
-	return x & 0xffffffff;
-}
-
-static inline uint32_t upper_32_bits(uint64_t x)
-{
-	return x >> 32;
-}
-
 static void test_keep_in_fence(int fd, const struct intel_execution_engine2 *e)
 {
 	struct sigaction sa = { .sa_handler = alarm_handler };
Signature · 1 line
2.21.1
Quoted 8 lines
Quoted 4 lines

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev