Re: [Intel-gfx] [PATCH] drm/i915: Prevent negative relocation deltas from wrapping

2014-08-24 Thread Chris Wilson
On Mon, Aug 25, 2014 at 02:00:17AM +0200, Daniel Vetter wrote: > On Sun, Aug 24, 2014 at 5:40 PM, Chris Wilson > wrote: > > On Fri, May 23, 2014 at 08:48:08AM +0200, Daniel Vetter wrote: > >> - Apply the batch offset bias everywhere but mention that we've only > >> observed it on gen7 gpus. > >

Re: [Intel-gfx] [PATCH 3/3] drm/i915: s/seqno/request/ tracking inside objects

2014-08-24 Thread Chris Wilson
On Sun, Aug 24, 2014 at 04:54:22PM +0100, Chris Wilson wrote: > +static int execlists_add_request(struct i915_gem_request *rq) > +{ > + unsigned long flags; > + > + if (intel_engine_stopped(rq->engine)) > + return -EIO; > + > + spin_lock_irqsave(&rq->engine->execlist_lock, f

Re: [Intel-gfx] [PATCH] drm/i915: Prevent negative relocation deltas from wrapping

2014-08-24 Thread Daniel Vetter
On Sun, Aug 24, 2014 at 5:40 PM, Chris Wilson wrote: > On Fri, May 23, 2014 at 08:48:08AM +0200, Daniel Vetter wrote: >> - Apply the batch offset bias everywhere but mention that we've only >> observed it on gen7 gpus. > >> +static struct drm_i915_gem_object * >> +eb_get_batch(struct eb_vmas *eb

Re: [Intel-gfx] Graphics driver Init code

2014-08-24 Thread Daniel Vetter
On Tue, Aug 19, 2014 at 8:58 PM, Matt Turner wrote: > On Tue, Aug 19, 2014 at 11:29 AM, Dushyant Behl > wrote: >> Ping. >> >> >> On Thu, Aug 14, 2014 at 2:55 AM, Dushyant Behl >> wrote: >>> >>> Hi Everyone, >>> >>> I am an Operating system developer and I'm working on a project for >>> which I w

[Intel-gfx] [PATCH] drm/i915: Convert a couple more INTEL_INFO-esque macros to be pointer agnostic

2014-08-24 Thread Chris Wilson
Just a couple more macros that assume that they were being passed a struct drm_device when they want a struct drm_i915_private. Use our magic macro to ease transitioning over to using drm_i915_privates Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/i915_drv.h | 4 ++-- 1 file changed, 2 in

[Intel-gfx] [PATCH 1/3] drm/i915: Remove DRI1 ring accessors and API

2014-08-24 Thread Chris Wilson
With the deprecation of UMS, and by association DRI1, we have a tough choice when updating the ring access routines. We either rewrite the DRI1 routines blindly without testing (so likely to be broken) or take the liberty of declaring them no longer supported and remove them entirely. This takes th

Re: [Intel-gfx] [PATCH] drm/i915: Prevent negative relocation deltas from wrapping

2014-08-24 Thread Chris Wilson
On Fri, May 23, 2014 at 08:48:08AM +0200, Daniel Vetter wrote: > - Apply the batch offset bias everywhere but mention that we've only > observed it on gen7 gpus. > +static struct drm_i915_gem_object * > +eb_get_batch(struct eb_vmas *eb) > +{ > + struct i915_vma *vma = list_entry(eb->vmas.pre