[Beignet] Adjust the maximum timeout for execution

Zhigang Gong zhigang.gong at linux.intel.com
Wed May 28 01:53:42 PDT 2014


On Wed, May 28, 2014 at 11:14:23AM +0200, t0nvi wrote:
> Thank you, now I'm able to run long lasting kernel even if the
> lockscreen is NOT enabled.
> However, the screen freeze completely while the kernel is running.
> 
> Does exists a way to force a kernel to "yield" after a certain number
> of instructions
> (e.g. by putting a specific command in the batchbuffer) in order to
> avoid the freeze of Xorg?
> Also, I thought that we had two distinct pipeline one for rendering
> and one for gpgpu/media,
> so why tasks belonging to different pipelines cannot run in parallel?
Although Gen7/7.5 has three different pipelines, at the same time you can
only choose one pipeline to execute. And before the current pipeline
finished, there is no way to run any commands from other pipelines.
This is hardware restrication, not a software issue.

If you want the X window to be responsible, you have to avoid such a
huge kernel. Only after the kernel finished, the X rendering could get
a chance to execute.

> 
> 
> 
> 2014-05-27 16:17 GMT+02:00 Yichao Yu <yyc1992 at gmail.com>:
> > On Tue, May 27, 2014 at 7:59 AM, t0nvi <mr.t0nvi at gmail.com> wrote:
> >> Hi,
> >>
> >> I'm trying to use beignet to run a very complex job. It takes like
> >> 2min in order to complete.
> >> Unfortunately, I've noticed that I'm able to complete the job only if
> >> the screen is locked; otherwise
> >> my job  get killed after few seconds (up to 6 sec but it may vary) and
> >> I'm not able to see the expected results.
> >>
> >> Can anyone explain why this happens? When the screen is locked some
> >> IOCTL are issued to the driver in order to increase the maximum
> >> execution time?
> >>
> >> What can I do to have long lasting kernel (e.g. 10 mins) running on
> >> the GPU using beignet (in the case I do not care if the screen became
> >> unresponsive...)?
> >
> > I have no idea what's special about screen lock but have you tried
> > this tip from the Beignet freedesktop page (if u r confidence with for
> > kernel probably):
> >
> > ```
> > As some OpenCL kerne (in OpenCV 2.4 OCL test suite) runs more than 10
> > seconds, it may be reset by the kernel as the kernel has a GPU
> > hangcheck mechanism. You can disable the hangcheck by invoke the
> > following command on Ubuntu system:
> >
> > # echo -n 0 > /sys/module/i915/parameters/enable_hangcheck
> >
> > But this command is a little bit dangerous, as if your kernel hang,
> > then the gpu will hang forever.
> > ```
> >
> > Yichao Yu
> >
> >>
> >> Thank you
> >> Antonio
> >> _______________________________________________
> >> Beignet mailing list
> >> Beignet at lists.freedesktop.org
> >> http://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list