Re: [Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-15 Thread Dixit, Ashutosh
On Wed, 15 Apr 2020 07:39:00 -0700, Chris Wilson wrote: > > The poll() is proving unreliable, where our tests timeout without the > spinner being terminated. Let's try a blocking read instead! > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1676 > Signed-off-by: Chris Wilson > Cc:

[Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-15 Thread Chris Wilson
The poll() is proving unreliable, where our tests timeout without the spinner being terminated. Let's try a blocking read instead! Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1676 Signed-off-by: Chris Wilson Cc: "Dixit, Ashutosh" --- lib/igt_dummyload.c | 12 ++-- 1 file

[Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-15 Thread Chris Wilson
The poll() is proving unreliable, where our tests timeout without the spinner being terminated. Let's try a blocking read instead! Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1676 Signed-off-by: Chris Wilson Cc: "Dixit, Ashutosh" --- lib/igt_dummyload.c | 12 ++-- 1 file

Re: [Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-14 Thread Chris Wilson
Quoting Dixit, Ashutosh (2020-04-14 22:37:44) > On Tue, 14 Apr 2020 12:05:09 -0700, Chris Wilson wrote: > > > > The poll() is proving unreliable, where our tests timeout without the > > spinner being terminated. Let's try a blocking read instead! > > Weird, wondering if all we need to do is set

Re: [Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-14 Thread Dixit, Ashutosh
On Tue, 14 Apr 2020 12:05:09 -0700, Chris Wilson wrote: > > The poll() is proving unreliable, where our tests timeout without the > spinner being terminated. Let's try a blocking read instead! Weird, wondering if all we need to do is set TFD_NONBLOCK on the fd? > > Closes:

[Intel-gfx] [PATCH i-g-t] lib: Use read() for timerfd timeout detection

2020-04-14 Thread Chris Wilson
The poll() is proving unreliable, where our tests timeout without the spinner being terminated. Let's try a blocking read instead! Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/1676 Signed-off-by: Chris Wilson --- lib/igt_dummyload.c | 11 ++- 1 file changed, 6