* [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable
@ 2023-04-18 14:54 Kamil Konieczny
2023-04-18 15:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Kamil Konieczny @ 2023-04-18 14:54 UTC (permalink / raw)
To: igt-dev; +Cc: Petri Latvala, Chris Wilson
From: Petri Latvala <petri.latvala@intel.com>
From: Petri Latvala <petri.latvala@intel.com>
If pthread_create with SCHED_FIFO fails, try creating the thread
without a policy before bailing out.
Cc: Petri Latvala <adrinael@adrinael.net>
Suggested-by: Chris Wilson <chris.p.wilson@intel.com>
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
---
lib/igt_dummyload.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index b3dc18ee7..740a58f3d 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -528,6 +528,7 @@ void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns)
struct itimerspec its;
pthread_attr_t attr;
int timerfd;
+ int err;
if (!spin)
return;
@@ -547,8 +548,13 @@ void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns)
pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
pthread_attr_setschedparam(&attr, ¶m);
- igt_assert(pthread_create(&spin->timer_thread, &attr,
- timer_thread, spin) == 0);
+ err = pthread_create(&spin->timer_thread, &attr, timer_thread, spin);
+ if (err) {
+ igt_debug("Cannot create thread with SCHED_FIFO (%s), trying without scheduling policy...\n",
+ strerror(err));
+ igt_assert_eq(pthread_create(&spin->timer_thread, NULL,
+ timer_thread, spin), 0);
+ }
pthread_attr_destroy(&attr);
memset(&its, 0, sizeof(its));
--
2.37.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable 2023-04-18 14:54 [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable Kamil Konieczny @ 2023-04-18 15:27 ` Patchwork 2023-04-18 16:36 ` [igt-dev] [PATCH i-g-t] " Petri Latvala ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2023-04-18 15:27 UTC (permalink / raw) To: Kamil Konieczny; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 5157 bytes --] == Series Details == Series: lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable URL : https://patchwork.freedesktop.org/series/116649/ State : success == Summary == CI Bug Log - changes from CI_DRM_13026 -> IGTPW_8814 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/index.html Participating hosts (38 -> 36) ------------------------------ Missing (2): bat-dg2-9 fi-snb-2520m Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_8814: ### IGT changes ### #### Suppressed #### The following results come from untrusted machines, tests, or statuses. They do not affect the overall result. * igt@gem_exec_parallel@engines@basic: - {bat-mtlp-8}: [PASS][1] -> [FAIL][2] [1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/bat-mtlp-8/igt@gem_exec_parallel@engines@basic.html [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-mtlp-8/igt@gem_exec_parallel@engines@basic.html * igt@kms_busy@basic@flip: - {bat-mtlp-8}: [DMESG-WARN][3] ([i915#2017]) -> [DMESG-WARN][4] [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/bat-mtlp-8/igt@kms_busy@basic@flip.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-mtlp-8/igt@kms_busy@basic@flip.html Known issues ------------ Here are the changes found in IGTPW_8814 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_exec_suspend@basic-s3@smem: - bat-rpls-1: [PASS][5] -> [ABORT][6] ([i915#6687] / [i915#7978]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/bat-rpls-1/igt@gem_exec_suspend@basic-s3@smem.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-rpls-1/igt@gem_exec_suspend@basic-s3@smem.html * igt@i915_selftest@live@gt_lrc: - bat-dg2-11: [PASS][7] -> [INCOMPLETE][8] ([i915#7609] / [i915#7913]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/bat-dg2-11/igt@i915_selftest@live@gt_lrc.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-dg2-11/igt@i915_selftest@live@gt_lrc.html * igt@i915_selftest@live@mman: - bat-rpls-2: [PASS][9] -> [TIMEOUT][10] ([i915#6794]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/bat-rpls-2/igt@i915_selftest@live@mman.html [10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-rpls-2/igt@i915_selftest@live@mman.html * igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-c-dp-1: - bat-dg2-8: [PASS][11] -> [FAIL][12] ([i915#7932]) +1 similar issue [11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/bat-dg2-8/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-c-dp-1.html [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-dg2-8/igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence@pipe-c-dp-1.html * igt@kms_pipe_crc_basic@read-crc: - bat-dg2-11: NOTRUN -> [SKIP][13] ([i915#5354]) [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-dg2-11/igt@kms_pipe_crc_basic@read-crc.html #### Warnings #### * igt@i915_selftest@live@slpc: - bat-rpls-1: [DMESG-FAIL][14] ([i915#6367] / [i915#6997]) -> [DMESG-FAIL][15] ([i915#6367] / [i915#7996]) [14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/bat-rpls-1/igt@i915_selftest@live@slpc.html [15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/bat-rpls-1/igt@i915_selftest@live@slpc.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [i915#2017]: https://gitlab.freedesktop.org/drm/intel/issues/2017 [i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708 [i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077 [i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354 [i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367 [i915#6687]: https://gitlab.freedesktop.org/drm/intel/issues/6687 [i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794 [i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997 [i915#7609]: https://gitlab.freedesktop.org/drm/intel/issues/7609 [i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913 [i915#7932]: https://gitlab.freedesktop.org/drm/intel/issues/7932 [i915#7978]: https://gitlab.freedesktop.org/drm/intel/issues/7978 [i915#7996]: https://gitlab.freedesktop.org/drm/intel/issues/7996 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7259 -> IGTPW_8814 CI-20190529: 20190529 CI_DRM_13026: 45bed7de41ad8bd909a82382a8fc4cb65e04ad56 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_8814: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/index.html IGT_7259: 3d3a7f1c041d3f8d84d7457abf96adef0ea071cb @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/index.html [-- Attachment #2: Type: text/html, Size: 5877 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable 2023-04-18 14:54 [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable Kamil Konieczny 2023-04-18 15:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork @ 2023-04-18 16:36 ` Petri Latvala 2023-04-18 17:49 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork 2023-04-19 16:07 ` [igt-dev] [PATCH i-g-t] " Zbigniew Kempczyński 3 siblings, 0 replies; 5+ messages in thread From: Petri Latvala @ 2023-04-18 16:36 UTC (permalink / raw) To: Kamil Konieczny; +Cc: igt-dev, Chris Wilson On Tue, Apr 18, 2023 at 04:54:08PM +0200, Kamil Konieczny wrote: > From: Petri Latvala <petri.latvala@intel.com> > > From: Petri Latvala <petri.latvala@intel.com> > > If pthread_create with SCHED_FIFO fails, try creating the thread > without a policy before bailing out. > > Cc: Petri Latvala <adrinael@adrinael.net> > Suggested-by: Chris Wilson <chris.p.wilson@intel.com> > Signed-off-by: Petri Latvala <petri.latvala@intel.com> > Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> Still seems relevant, no objections to this going upstream. -- Petri Latvala > --- > lib/igt_dummyload.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c > index b3dc18ee7..740a58f3d 100644 > --- a/lib/igt_dummyload.c > +++ b/lib/igt_dummyload.c > @@ -528,6 +528,7 @@ void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns) > struct itimerspec its; > pthread_attr_t attr; > int timerfd; > + int err; > > if (!spin) > return; > @@ -547,8 +548,13 @@ void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns) > pthread_attr_setschedpolicy(&attr, SCHED_FIFO); > pthread_attr_setschedparam(&attr, ¶m); > > - igt_assert(pthread_create(&spin->timer_thread, &attr, > - timer_thread, spin) == 0); > + err = pthread_create(&spin->timer_thread, &attr, timer_thread, spin); > + if (err) { > + igt_debug("Cannot create thread with SCHED_FIFO (%s), trying without scheduling policy...\n", > + strerror(err)); > + igt_assert_eq(pthread_create(&spin->timer_thread, NULL, > + timer_thread, spin), 0); > + } > pthread_attr_destroy(&attr); > > memset(&its, 0, sizeof(its)); > -- > 2.37.2 > ^ permalink raw reply [flat|nested] 5+ messages in thread
* [igt-dev] ✓ Fi.CI.IGT: success for lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable 2023-04-18 14:54 [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable Kamil Konieczny 2023-04-18 15:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2023-04-18 16:36 ` [igt-dev] [PATCH i-g-t] " Petri Latvala @ 2023-04-18 17:49 ` Patchwork 2023-04-19 16:07 ` [igt-dev] [PATCH i-g-t] " Zbigniew Kempczyński 3 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2023-04-18 17:49 UTC (permalink / raw) To: Kamil Konieczny; +Cc: igt-dev [-- Attachment #1: Type: text/plain, Size: 17175 bytes --] == Series Details == Series: lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable URL : https://patchwork.freedesktop.org/series/116649/ State : success == Summary == CI Bug Log - changes from CI_DRM_13026_full -> IGTPW_8814_full ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/index.html Participating hosts (7 -> 7) ------------------------------ No changes in participating hosts Possible new issues ------------------- Here are the unknown changes that may have been introduced in IGTPW_8814_full: ### IGT changes ### #### Suppressed #### The following results come from untrusted machines, tests, or statuses. They do not affect the overall result. * igt@kms_vblank@pipe-g-query-busy: - {shard-tglu}: NOTRUN -> [SKIP][1] +8 similar issues [1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-tglu-3/igt@kms_vblank@pipe-g-query-busy.html * igt@kms_vblank@pipe-g-query-idle: - {shard-dg1}: NOTRUN -> [SKIP][2] +57 similar issues [2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-dg1-15/igt@kms_vblank@pipe-g-query-idle.html Known issues ------------ Here are the changes found in IGTPW_8814_full that come from known issues: ### IGT changes ### #### Issues hit #### * igt@gem_barrier_race@remote-request@rcs0: - shard-glk: [PASS][3] -> [ABORT][4] ([i915#8211]) [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-glk7/igt@gem_barrier_race@remote-request@rcs0.html [4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-glk1/igt@gem_barrier_race@remote-request@rcs0.html * igt@gem_mmap_gtt@fault-concurrent-y: - shard-snb: [PASS][5] -> [ABORT][6] ([i915#5161]) [5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-snb5/igt@gem_mmap_gtt@fault-concurrent-y.html [6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-snb2/igt@gem_mmap_gtt@fault-concurrent-y.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size: - shard-apl: [PASS][7] -> [FAIL][8] ([i915#2346]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-apl4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html [8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-apl7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html * igt@kms_fbcon_fbt@fbc-suspend: - shard-glk: NOTRUN -> [FAIL][9] ([i915#4767]) [9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-glk2/igt@kms_fbcon_fbt@fbc-suspend.html * igt@kms_flip@2x-wf_vblank-ts-check-interruptible@ab-hdmi-a1-hdmi-a2: - shard-glk: [PASS][10] -> [FAIL][11] ([i915#2122]) [10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-glk4/igt@kms_flip@2x-wf_vblank-ts-check-interruptible@ab-hdmi-a1-hdmi-a2.html [11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-glk4/igt@kms_flip@2x-wf_vblank-ts-check-interruptible@ab-hdmi-a1-hdmi-a2.html * igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling@pipe-a-valid-mode: - shard-apl: NOTRUN -> [SKIP][12] ([fdo#109271]) +4 similar issues [12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-apl7/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-64bpp-ytile-downscaling@pipe-a-valid-mode.html * igt@kms_plane_scaling@planes-downscale-factor-0-5-unity-scaling@pipe-b-vga-1: - shard-snb: NOTRUN -> [SKIP][13] ([fdo#109271]) +30 similar issues [13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-snb2/igt@kms_plane_scaling@planes-downscale-factor-0-5-unity-scaling@pipe-b-vga-1.html * igt@kms_vblank@pipe-g-query-forked: - shard-glk: NOTRUN -> [SKIP][14] ([fdo#109271]) +8 similar issues [14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-glk9/igt@kms_vblank@pipe-g-query-forked.html #### Possible fixes #### * igt@drm_fdinfo@most-busy-check-all@rcs0: - {shard-rkl}: [FAIL][15] ([i915#7742]) -> [PASS][16] [15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-rkl-1/igt@drm_fdinfo@most-busy-check-all@rcs0.html [16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-rkl-4/igt@drm_fdinfo@most-busy-check-all@rcs0.html * igt@gem_barrier_race@remote-request@rcs0: - {shard-tglu}: [ABORT][17] ([i915#8211]) -> [PASS][18] [17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-tglu-9/igt@gem_barrier_race@remote-request@rcs0.html [18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-tglu-6/igt@gem_barrier_race@remote-request@rcs0.html * igt@gem_ctx_exec@basic-nohangcheck: - {shard-rkl}: [FAIL][19] ([i915#6268]) -> [PASS][20] [19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-rkl-4/igt@gem_ctx_exec@basic-nohangcheck.html [20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-rkl-2/igt@gem_ctx_exec@basic-nohangcheck.html * igt@gem_exec_fair@basic-pace-share@rcs0: - {shard-tglu}: [FAIL][21] ([i915#2842]) -> [PASS][22] [21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-tglu-10/igt@gem_exec_fair@basic-pace-share@rcs0.html [22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-tglu-7/igt@gem_exec_fair@basic-pace-share@rcs0.html * igt@gem_exec_fair@basic-pace@vcs0: - shard-glk: [FAIL][23] ([i915#2842]) -> [PASS][24] +2 similar issues [23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-glk5/igt@gem_exec_fair@basic-pace@vcs0.html [24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-glk2/igt@gem_exec_fair@basic-pace@vcs0.html * igt@gem_exec_suspend@basic-s4-devices@lmem0: - {shard-dg1}: [ABORT][25] ([i915#7975]) -> [PASS][26] [25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-dg1-14/igt@gem_exec_suspend@basic-s4-devices@lmem0.html [26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-dg1-17/igt@gem_exec_suspend@basic-s4-devices@lmem0.html * igt@i915_pm_rpm@dpms-mode-unset-non-lpsp: - {shard-rkl}: [SKIP][27] ([i915#1397]) -> [PASS][28] +1 similar issue [27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-rkl-7/igt@i915_pm_rpm@dpms-mode-unset-non-lpsp.html [28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-rkl-1/igt@i915_pm_rpm@dpms-mode-unset-non-lpsp.html * igt@i915_pm_rpm@modeset-lpsp-stress: - {shard-dg1}: [SKIP][29] ([i915#1397]) -> [PASS][30] [29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-dg1-16/igt@i915_pm_rpm@modeset-lpsp-stress.html [30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-dg1-14/igt@i915_pm_rpm@modeset-lpsp-stress.html * igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions: - shard-glk: [FAIL][31] ([i915#2346]) -> [PASS][32] +1 similar issue [31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-glk1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html [32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-glk7/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html - shard-apl: [FAIL][33] ([i915#2346]) -> [PASS][34] [33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-apl1/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html [34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-apl2/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions.html * igt@kms_cursor_legacy@forked-bo@pipe-b: - {shard-rkl}: [INCOMPLETE][35] ([i915#8011]) -> [PASS][36] [35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-rkl-7/igt@kms_cursor_legacy@forked-bo@pipe-b.html [36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-rkl-1/igt@kms_cursor_legacy@forked-bo@pipe-b.html * igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a2: - shard-glk: [FAIL][37] ([i915#79]) -> [PASS][38] [37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13026/shard-glk2/igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a2.html [38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/shard-glk4/igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a2.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274 [fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280 [fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285 [fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289 [fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291 [fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309 [fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313 [fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315 [fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506 [fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189 [fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723 [fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068 [fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614 [fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615 [fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825 [fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827 [i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072 [i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397 [i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825 [i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839 [i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122 [i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346 [i915#2433]: https://gitlab.freedesktop.org/drm/intel/issues/2433 [i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434 [i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527 [i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575 [i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587 [i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672 [i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681 [i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705 [i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842 [i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856 [i915#3023]: https://gitlab.freedesktop.org/drm/intel/issues/3023 [i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116 [i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315 [i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281 [i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282 [i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297 [i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299 [i915#3323]: https://gitlab.freedesktop.org/drm/intel/issues/3323 [i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359 [i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458 [i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469 [i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539 [i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555 [i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591 [i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637 [i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638 [i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689 [i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708 [i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734 [i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742 [i915#3743]: https://gitlab.freedesktop.org/drm/intel/issues/3743 [i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840 [i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886 [i915#3952]: https://gitlab.freedesktop.org/drm/intel/issues/3952 [i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955 [i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070 [i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077 [i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078 [i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079 [i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083 [i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103 [i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212 [i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213 [i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270 [i915#4391]: https://gitlab.freedesktop.org/drm/intel/issues/4391 [i915#4525]: https://gitlab.freedesktop.org/drm/intel/issues/4525 [i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538 [i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565 [i915#4579]: https://gitlab.freedesktop.org/drm/intel/issues/4579 [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613 [i915#4767]: https://gitlab.freedesktop.org/drm/intel/issues/4767 [i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771 [i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812 [i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833 [i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852 [i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860 [i915#4881]: https://gitlab.freedesktop.org/drm/intel/issues/4881 [i915#4884]: https://gitlab.freedesktop.org/drm/intel/issues/4884 [i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983 [i915#5161]: https://gitlab.freedesktop.org/drm/intel/issues/5161 [i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176 [i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235 [i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286 [i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289 [i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533 [i915#5354]: https://gitlab.freedesktop.org/drm/intel/issues/5354 [i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439 [i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461 [i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563 [i915#5723]: https://gitlab.freedesktop.org/drm/intel/issues/5723 [i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784 [i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095 [i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268 [i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301 [i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335 [i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433 [i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524 [i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658 [i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590 [i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768 [i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953 [i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116 [i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118 [i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561 [i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697 [i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701 [i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711 [i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742 [i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828 [i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79 [i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975 [i915#8011]: https://gitlab.freedesktop.org/drm/intel/issues/8011 [i915#8211]: https://gitlab.freedesktop.org/drm/intel/issues/8211 [i915#8292]: https://gitlab.freedesktop.org/drm/intel/issues/8292 [i915#8308]: https://gitlab.freedesktop.org/drm/intel/issues/8308 Build changes ------------- * CI: CI-20190529 -> None * IGT: IGT_7259 -> IGTPW_8814 * Piglit: piglit_4509 -> None CI-20190529: 20190529 CI_DRM_13026: 45bed7de41ad8bd909a82382a8fc4cb65e04ad56 @ git://anongit.freedesktop.org/gfx-ci/linux IGTPW_8814: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/index.html IGT_7259: 3d3a7f1c041d3f8d84d7457abf96adef0ea071cb @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8814/index.html [-- Attachment #2: Type: text/html, Size: 11694 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable 2023-04-18 14:54 [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable Kamil Konieczny ` (2 preceding siblings ...) 2023-04-18 17:49 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork @ 2023-04-19 16:07 ` Zbigniew Kempczyński 3 siblings, 0 replies; 5+ messages in thread From: Zbigniew Kempczyński @ 2023-04-19 16:07 UTC (permalink / raw) To: Kamil Konieczny; +Cc: igt-dev, Petri Latvala, Chris Wilson On Tue, Apr 18, 2023 at 04:54:08PM +0200, Kamil Konieczny wrote: > From: Petri Latvala <petri.latvala@intel.com> > Remove duplicate, then Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> -- Zbigniew > From: Petri Latvala <petri.latvala@intel.com> > > If pthread_create with SCHED_FIFO fails, try creating the thread > without a policy before bailing out. > > Cc: Petri Latvala <adrinael@adrinael.net> > Suggested-by: Chris Wilson <chris.p.wilson@intel.com> > Signed-off-by: Petri Latvala <petri.latvala@intel.com> > Signed-off-by: Kamil Konieczny <kamil.konieczny@linux.intel.com> > --- > lib/igt_dummyload.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c > index b3dc18ee7..740a58f3d 100644 > --- a/lib/igt_dummyload.c > +++ b/lib/igt_dummyload.c > @@ -528,6 +528,7 @@ void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns) > struct itimerspec its; > pthread_attr_t attr; > int timerfd; > + int err; > > if (!spin) > return; > @@ -547,8 +548,13 @@ void igt_spin_set_timeout(igt_spin_t *spin, int64_t ns) > pthread_attr_setschedpolicy(&attr, SCHED_FIFO); > pthread_attr_setschedparam(&attr, ¶m); > > - igt_assert(pthread_create(&spin->timer_thread, &attr, > - timer_thread, spin) == 0); > + err = pthread_create(&spin->timer_thread, &attr, timer_thread, spin); > + if (err) { > + igt_debug("Cannot create thread with SCHED_FIFO (%s), trying without scheduling policy...\n", > + strerror(err)); > + igt_assert_eq(pthread_create(&spin->timer_thread, NULL, > + timer_thread, spin), 0); > + } > pthread_attr_destroy(&attr); > > memset(&its, 0, sizeof(its)); > -- > 2.37.2 > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-04-19 16:07 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-04-18 14:54 [igt-dev] [PATCH i-g-t] lib/igt_dummyload: Fall back to no scheduling policy if SCHED_FIFO unavailable Kamil Konieczny 2023-04-18 15:27 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork 2023-04-18 16:36 ` [igt-dev] [PATCH i-g-t] " Petri Latvala 2023-04-18 17:49 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork 2023-04-19 16:07 ` [igt-dev] [PATCH i-g-t] " Zbigniew Kempczyński
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox