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 dan...@ffwll.ch 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

[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 daniel.vet...@ffwll.ch Signed-off-by: Michel

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

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: Remove context pointer from

[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

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