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

Chris Wilson chris at chris-wilson.co.uk
Tue Feb 23 18:05:09 UTC 2016


On Tue, Feb 23, 2016 at 04:37:12PM +0000, Daniele Ceraolo Spurio wrote:
> 
> 
> On 18/02/16 21:10, Chris Wilson wrote:
> >On Thu, Feb 18, 2016 at 05:34:50PM +0000, daniele.ceraolospurio at 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_execbuf(fd, &execbuf);
> >>+
> >>+	while (gem_bo_busy(fd, handle) && timeout > 0) {
> >>+		igt_debug("decreasing timeout to %u\n", --timeout);
> >>+		sleep(1);
> >>+	}
> >See gem_wait()
> >-Chris
> 
> I couldn't find any gem_wait() function or any other wrapper for the
> i915_gem_wait ioctl in ioctl_wrappers.c (except for gem_sync). There
> is a gem_bo_wait_timeout wrapper in gem_wait.c that could probably
> be moved to ioctl_wrappers, or I could just add the ioctl call here.
> What option would work better for you?

I actually thought we already had the wrapper. We do now.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list