Re: [Intel-gfx] [PATCH] drm/i915: Remove context pointer from ppgtt struct

2014-07-31 Thread Daniel Vetter
On Wed, Jul 30, 2014 at 5:52 PM, Daniel Vetter wrote: > I think I'll take a look at this myself and do some untangling ... Ok, I've taken a look and also spotted an issue in your patch. I've submitted the patches to intel-gfx and also uploaded them to http://cgit.freedesktop.org/~danvet/drm/log/

Re: [Intel-gfx] [PATCH] drm/i915: Remove context pointer from ppgtt struct

2014-07-30 Thread Daniel Vetter
On Wed, Jul 30, 2014 at 03:21:54PM +0100, Michel Thierry wrote: > After new vma/ppgtt lifetime rules, the ppgtt can outlive the context > it was created for. > > - Renamed create_vm_for_ctx to i915_ppgtt_create as ctx/ppgtt are no > longer referenced. > - Updated per_file_stats to cope with this c

[Intel-gfx] [PATCH] drm/i915: Remove context pointer from ppgtt struct

2014-07-30 Thread Michel Thierry
After new vma/ppgtt lifetime rules, the ppgtt can outlive the context it was created for. - Renamed create_vm_for_ctx to i915_ppgtt_create as ctx/ppgtt are no longer referenced. - Updated per_file_stats to cope with this change. v2: Get the right context for this ppgtt. Cc: Daniel Vetter Signed-

Re: [Intel-gfx] [PATCH] drm/i915: Remove context pointer from ppgtt struct

2014-07-30 Thread Thierry, Michel
> -Original Message- > From: Daniel Vetter [mailto:daniel.vet...@ffwll.ch] On Behalf Of Daniel > Vetter > Sent: Wednesday, July 30, 2014 12:59 PM > To: Thierry, Michel > Cc: intel-gfx@lists.freedesktop.org; Daniel Vetter > Subject: Re: [Intel-gfx] [PATCH] drm/i915: R

Re: [Intel-gfx] [PATCH] drm/i915: Remove context pointer from ppgtt struct

2014-07-30 Thread Daniel Vetter
On Wed, Jul 30, 2014 at 12:25:20PM +0100, Michel Thierry wrote: > After new vma/ppgtt lifetime rules, the ppgtt can outlive the context > it was created for. > > - Renamed create_vm_for_ctx to i915_ppgtt_create as ctx/ppgtt are no > longer referenced. > - Updated per_file_stats to cope with this c

[Intel-gfx] [PATCH] drm/i915: Remove context pointer from ppgtt struct

2014-07-30 Thread Michel Thierry
After new vma/ppgtt lifetime rules, the ppgtt can outlive the context it was created for. - Renamed create_vm_for_ctx to i915_ppgtt_create as ctx/ppgtt are no longer referenced. - Updated per_file_stats to cope with this change. Cc: Daniel Vetter Signed-off-by: Michel Thierry --- drivers/gpu/d