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.prev,

[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

[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 ch...@chris-wilson.co.uk --- drivers/gpu/drm/i915/i915_drv.h | 4

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 ch...@chris-wilson.co.uk 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 *