[Intel-gfx] [PATCH] i915: support page flipping

Chris Wilson chris at chris-wilson.co.uk
Tue Mar 3 11:54:43 CET 2009


On Thu, 2009-02-26 at 14:35 -0800, Jesse Barnes wrote:
> > > +		ret = i915_gem_object_pin(obj, 0);
> > > +		if (ret) {
> > > +			DRM_ERROR("failed to pin object for flip\n");
> > > +			ret = -EBUSY;
> >
> > What's the rationale for changing the reported error here? (And it might
> > be helpful to printk the original error value.)
> 
> Oh I'm not sure what's going on there; I've changed it to just return the pin
> failure.
> 
> > > +	 * Put the object in the GTT domain before the flip,
> > > +	 * since there may be outstanding rendering
> > > +	 */
> > > +	i915_gem_object_set_to_gtt_domain(obj, 0);
> >
> > Need to check, report and handle errors here. And yes, these do occur in
> > the wild for some as of yet unknown reason.
> 
> Fixed.  Though Mesa is now flushing before calling the server so it should
> happen less often.

I found the source of the errors - ERESTARTSYS, so presumably we need to
add
  if (ret == -ERESTARTSYS) ret = -EINTR;
handling here (after pining and flushing)?
-ickle




More information about the Intel-gfx mailing list