Re: [Intel-gfx] [RFC i-g-t] tests/drv_hangman: test for acthd increasing through invalid VM space

2016-02-23 Thread Chris Wilson
On Tue, Feb 23, 2016 at 04:37:12PM +, Daniele Ceraolo Spurio wrote: > > > On 18/02/16 21:10, Chris Wilson wrote: > >On Thu, Feb 18, 2016 at 05:34:50PM +, daniele.ceraolospu...@intel.com > >wrote: > >>+static void ppgtt_walking(void) > >>+{ > >>+ memset(&execbuf, 0, sizeof(execbuf)); >

Re: [Intel-gfx] [RFC i-g-t] tests/drv_hangman: test for acthd increasing through invalid VM space

2016-02-23 Thread Daniele Ceraolo Spurio
On 18/02/16 21:10, Chris Wilson wrote: On Thu, Feb 18, 2016 at 05:34:50PM +, daniele.ceraolospu...@intel.com wrote: +static void ppgtt_walking(void) +{ + memset(&execbuf, 0, sizeof(execbuf)); + execbuf.buffers_ptr = (uintptr_t)&gem_exec; + execbuf.buffer_count = 1; +

Re: [Intel-gfx] [RFC i-g-t] tests/drv_hangman: test for acthd increasing through invalid VM space

2016-02-18 Thread Chris Wilson
On Thu, Feb 18, 2016 at 05:34:50PM +, daniele.ceraolospu...@intel.com wrote: > +static void ppgtt_walking(void) > +{ > + memset(&execbuf, 0, sizeof(execbuf)); > + execbuf.buffers_ptr = (uintptr_t)&gem_exec; > + execbuf.buffer_count = 1; > + execbuf.batch_len = 8; > + > + gem

[Intel-gfx] [RFC i-g-t] tests/drv_hangman: test for acthd increasing through invalid VM space

2016-02-18 Thread daniele . ceraolospurio
From: Daniele Ceraolo Spurio The hangcheck logic will not flag an hang if acthd keeps increasing. However, if a malformed batch jumps to an invalid offset in the ppgtt it can potentially continue executing through the whole address space without triggering the hangcheck mechanism. This patch add