* [PATCH igt] igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
@ 2017-09-11 12:35 Chris Wilson
2017-09-11 15:14 ` ✗ Fi.CI.BAT: failure for " Patchwork
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Chris Wilson @ 2017-09-11 12:35 UTC (permalink / raw)
To: intel-gfx
Following
kernel commit ea4d5a270b57fa8d4871f372ca9b97b7697fdfda
Author: Dominik Behr <dbehr@chromium.org>
Date: Thu Sep 7 16:02:46 2017 -0300
dma-buf/sw_sync: force signal all unsignaled fences on dying timeline
To avoid hanging userspace components that might have been waiting on the
active fences of the destroyed timeline we need to signal with error all
remaining fences on such timeline.
This restore the default behaviour of the Android sw_sync framework, which
Android still relies on. It was broken on the dma fence conversion a few
years ago and never fixed.
unsignaled fences are now signaled and flagged with ENOENT when the
timeline is closed. Fixup timeline_closed_signaled to match.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102650
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
tests/sw_sync.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index 946592e8..20dfbbb9 100644
--- a/tests/sw_sync.c
+++ b/tests/sw_sync.c
@@ -82,8 +82,10 @@ static void test_timeline_closed(void)
fence = sw_sync_timeline_create_fence(timeline, 1);
close(timeline);
- igt_assert_f(sync_fence_wait(fence, 0) == -ETIME,
+ igt_assert_f(sync_fence_wait(fence, 0) == 0,
"Failure waiting on unsignaled fence on closed timeline\n");
+ igt_assert_f(sync_fence_status(fence) == -ENOENT,
+ "Failure in marking up an unsignaled fence on closed timeline\n");
}
static void test_timeline_closed_signaled(void)
--
2.14.1
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply related [flat|nested] 5+ messages in thread
* ✗ Fi.CI.BAT: failure for igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
2017-09-11 12:35 [PATCH igt] igt/sw_sync: Fix up close(timeline) tests for unsignaled fences Chris Wilson
@ 2017-09-11 15:14 ` Patchwork
2017-09-12 12:21 ` ✓ Fi.CI.BAT: success " Patchwork
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-09-11 15:14 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
URL : https://patchwork.freedesktop.org/series/30126/
State : failure
== Summary ==
IGT patchset tested on top of latest successful build
f9e0154630766b63617c64255a68e5129e233a4b igt/gem_evict_(alignment,everything): Limit to low 4G
with latest DRM-Tip kernel build CI_DRM_3071
a06ff73a7522 drm-tip: 2017y-09m-11d-13h-31m-34s UTC integration manifest
Test gem_exec_suspend:
Subgroup basic-s3:
pass -> INCOMPLETE (fi-skl-6260u)
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:449s
fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:452s
fi-blb-e6850 total:289 pass:224 dwarn:1 dfail:0 fail:0 skip:64 time:378s
fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:535s
fi-bwr-2160 total:289 pass:184 dwarn:0 dfail:0 fail:0 skip:105 time:268s
fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:510s
fi-byt-j1900 total:289 pass:254 dwarn:1 dfail:0 fail:0 skip:34 time:512s
fi-byt-n2820 total:289 pass:250 dwarn:1 dfail:0 fail:0 skip:38 time:505s
fi-cfl-s total:289 pass:250 dwarn:4 dfail:0 fail:0 skip:35 time:462s
fi-elk-e7500 total:289 pass:230 dwarn:0 dfail:0 fail:0 skip:59 time:453s
fi-glk-2a total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:602s
fi-hsw-4770 total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:428s
fi-hsw-4770r total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:409s
fi-ilk-650 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:440s
fi-ivb-3520m total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:493s
fi-ivb-3770 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:466s
fi-kbl-7500u total:289 pass:263 dwarn:1 dfail:0 fail:1 skip:24 time:483s
fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:580s
fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:590s
fi-skl-6260u total:118 pass:105 dwarn:0 dfail:0 fail:0 skip:12
fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:521s
fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:503s
fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:462s
fi-skl-x1585l total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:485s
fi-snb-2520m total:289 pass:251 dwarn:0 dfail:0 fail:0 skip:38 time:580s
fi-snb-2600 total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:431s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_170/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* ✓ Fi.CI.BAT: success for igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
2017-09-11 12:35 [PATCH igt] igt/sw_sync: Fix up close(timeline) tests for unsignaled fences Chris Wilson
2017-09-11 15:14 ` ✗ Fi.CI.BAT: failure for " Patchwork
@ 2017-09-12 12:21 ` Patchwork
2017-09-12 12:32 ` [PATCH igt] " Michał Winiarski
2017-09-12 15:02 ` ✓ Fi.CI.IGT: success for " Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-09-12 12:21 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
URL : https://patchwork.freedesktop.org/series/30126/
State : success
== Summary ==
IGT patchset tested on top of latest successful build
1c6e20deb30e4fc059183f1cf3f832b500b89464 pm_rps: [RFC] RPS tests documentation update
with latest DRM-Tip kernel build CI_DRM_3077
694f07d3df18 drm-tip: 2017y-09m-12d-09h-59m-00s UTC integration manifest
Test chamelium:
Subgroup dp-crc-fast:
fail -> PASS (fi-kbl-7500u) fdo#102514
Test kms_cursor_legacy:
Subgroup basic-busy-flip-before-cursor-atomic:
pass -> FAIL (fi-snb-2600) fdo#100215
fdo#102514 https://bugs.freedesktop.org/show_bug.cgi?id=102514
fdo#100215 https://bugs.freedesktop.org/show_bug.cgi?id=100215
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:450s
fi-blb-e6850 total:289 pass:224 dwarn:1 dfail:0 fail:0 skip:64 time:377s
fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:538s
fi-bwr-2160 total:289 pass:184 dwarn:0 dfail:0 fail:0 skip:105 time:268s
fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:507s
fi-byt-j1900 total:289 pass:254 dwarn:1 dfail:0 fail:0 skip:34 time:508s
fi-byt-n2820 total:289 pass:250 dwarn:1 dfail:0 fail:0 skip:38 time:501s
fi-cfl-s total:289 pass:250 dwarn:4 dfail:0 fail:0 skip:35 time:459s
fi-elk-e7500 total:289 pass:230 dwarn:0 dfail:0 fail:0 skip:59 time:460s
fi-glk-2a total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:597s
fi-hsw-4770 total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:429s
fi-hsw-4770r total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:412s
fi-ilk-650 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:440s
fi-ivb-3520m total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:493s
fi-ivb-3770 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:460s
fi-kbl-7500u total:289 pass:264 dwarn:1 dfail:0 fail:0 skip:24 time:493s
fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:580s
fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:594s
fi-pnv-d510 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:554s
fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:464s
fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:525s
fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:509s
fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:461s
fi-skl-x1585l total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:489s
fi-snb-2520m total:289 pass:251 dwarn:0 dfail:0 fail:0 skip:38 time:572s
fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:1 skip:39 time:432s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_175/
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH igt] igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
2017-09-11 12:35 [PATCH igt] igt/sw_sync: Fix up close(timeline) tests for unsignaled fences Chris Wilson
2017-09-11 15:14 ` ✗ Fi.CI.BAT: failure for " Patchwork
2017-09-12 12:21 ` ✓ Fi.CI.BAT: success " Patchwork
@ 2017-09-12 12:32 ` Michał Winiarski
2017-09-12 15:02 ` ✓ Fi.CI.IGT: success for " Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Michał Winiarski @ 2017-09-12 12:32 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
On Mon, Sep 11, 2017 at 01:35:10PM +0100, Chris Wilson wrote:
> Following
>
> kernel commit ea4d5a270b57fa8d4871f372ca9b97b7697fdfda
> Author: Dominik Behr <dbehr@chromium.org>
> Date: Thu Sep 7 16:02:46 2017 -0300
>
> dma-buf/sw_sync: force signal all unsignaled fences on dying timeline
>
> To avoid hanging userspace components that might have been waiting on the
> active fences of the destroyed timeline we need to signal with error all
> remaining fences on such timeline.
>
> This restore the default behaviour of the Android sw_sync framework, which
> Android still relies on. It was broken on the dma fence conversion a few
> years ago and never fixed.
>
> unsignaled fences are now signaled and flagged with ENOENT when the
> timeline is closed. Fixup timeline_closed_signaled to match.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102650
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
-Michał
> ---
> tests/sw_sync.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/tests/sw_sync.c b/tests/sw_sync.c
> index 946592e8..20dfbbb9 100644
> --- a/tests/sw_sync.c
> +++ b/tests/sw_sync.c
> @@ -82,8 +82,10 @@ static void test_timeline_closed(void)
> fence = sw_sync_timeline_create_fence(timeline, 1);
>
> close(timeline);
> - igt_assert_f(sync_fence_wait(fence, 0) == -ETIME,
> + igt_assert_f(sync_fence_wait(fence, 0) == 0,
> "Failure waiting on unsignaled fence on closed timeline\n");
> + igt_assert_f(sync_fence_status(fence) == -ENOENT,
> + "Failure in marking up an unsignaled fence on closed timeline\n");
> }
>
> static void test_timeline_closed_signaled(void)
> --
> 2.14.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
* ✓ Fi.CI.IGT: success for igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
2017-09-11 12:35 [PATCH igt] igt/sw_sync: Fix up close(timeline) tests for unsignaled fences Chris Wilson
` (2 preceding siblings ...)
2017-09-12 12:32 ` [PATCH igt] " Michał Winiarski
@ 2017-09-12 15:02 ` Patchwork
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2017-09-12 15:02 UTC (permalink / raw)
To: Chris Wilson; +Cc: intel-gfx
== Series Details ==
Series: igt/sw_sync: Fix up close(timeline) tests for unsignaled fences
URL : https://patchwork.freedesktop.org/series/30126/
State : success
== Summary ==
Test kms_setmode:
Subgroup basic:
pass -> FAIL (shard-hsw) fdo#99912
Test perf:
Subgroup polling:
pass -> FAIL (shard-hsw) fdo#102252
Test sw_sync:
Subgroup timeline_closed:
fail -> PASS (shard-hsw) fdo#102650
fdo#99912 https://bugs.freedesktop.org/show_bug.cgi?id=99912
fdo#102252 https://bugs.freedesktop.org/show_bug.cgi?id=102252
fdo#102650 https://bugs.freedesktop.org/show_bug.cgi?id=102650
shard-hsw total:2301 pass:1237 dwarn:0 dfail:0 fail:12 skip:1052 time:9397s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_175/shards.html
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-09-12 15:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-11 12:35 [PATCH igt] igt/sw_sync: Fix up close(timeline) tests for unsignaled fences Chris Wilson
2017-09-11 15:14 ` ✗ Fi.CI.BAT: failure for " Patchwork
2017-09-12 12:21 ` ✓ Fi.CI.BAT: success " Patchwork
2017-09-12 12:32 ` [PATCH igt] " Michał Winiarski
2017-09-12 15:02 ` ✓ Fi.CI.IGT: success for " Patchwork
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.