Re: [Intel-gfx] [PATCH i-g-t 2/2] tests/drv_hangman: watchdog tests

2017-02-23 Thread Chris Wilson
On Thu, Feb 23, 2017 at 10:26:29PM +, Chris Wilson wrote: > On Thu, Feb 23, 2017 at 11:44:21AM -0800, Michel Thierry wrote: > > Test watchdog triggered resets. > > How about setting a watchdog N with a dummy load set to expire in 2N > (where 2N is less 1s to avoid hangcheck). Then check fence

Re: [Intel-gfx] [PATCH i-g-t 2/2] tests/drv_hangman: watchdog tests

2017-02-23 Thread Chris Wilson
On Thu, Feb 23, 2017 at 11:44:21AM -0800, Michel Thierry wrote: > Test watchdog triggered resets. How about setting a watchdog N with a dummy load set to expire in 2N (where 2N is less 1s to avoid hangcheck). Then check fence status to ensure watchdog kicked the batch. See gem_exec_fence. -Chris

[Intel-gfx] [PATCH i-g-t 2/2] tests/drv_hangman: watchdog tests

2017-02-23 Thread Michel Thierry
Test watchdog triggered resets. Signed-off-by: Michel Thierry --- tests/drv_hangman.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/tests/drv_hangman.c b/tests/drv_hangman.c index 51bdbdaa..ba230f65 100644 --- a/tests/drv_hangman.c +++ b/test