Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/guc: keep GuC objects mapped in kernel

2016-04-19 Thread Dave Gordon
On 18/04/16 12:37, Chris Wilson wrote: On Mon, Apr 18, 2016 at 12:28:43PM +0100, Dave Gordon wrote: On 18/04/16 11:25, Chris Wilson wrote: On Mon, Apr 18, 2016 at 11:15:07AM +0100, Dave Gordon wrote: With the new i915_gem_obj_pin_map() interface, it makes sense to keep GuC objects (which are

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/guc: keep GuC objects mapped in kernel

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 12:28:43PM +0100, Dave Gordon wrote: > On 18/04/16 11:25, Chris Wilson wrote: > >On Mon, Apr 18, 2016 at 11:15:07AM +0100, Dave Gordon wrote: > >>With the new i915_gem_obj_pin_map() interface, it makes sense to keep > >>GuC objects (which are always pinned in memory and in

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/guc: keep GuC objects mapped in kernel

2016-04-18 Thread Dave Gordon
On 18/04/16 11:25, Chris Wilson wrote: On Mon, Apr 18, 2016 at 11:15:07AM +0100, Dave Gordon wrote: With the new i915_gem_obj_pin_map() interface, it makes sense to keep GuC objects (which are always pinned in memory and in the GGTT anyway) mapped into kernel address space, rather than mapping

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/guc: keep GuC objects mapped in kernel

2016-04-18 Thread Chris Wilson
On Mon, Apr 18, 2016 at 11:15:07AM +0100, Dave Gordon wrote: > With the new i915_gem_obj_pin_map() interface, it makes sense to keep > GuC objects (which are always pinned in memory and in the GGTT anyway) > mapped into kernel address space, rather than mapping and unmapping them > on each access.

[Intel-gfx] [PATCH v2 1/3] drm/i915/guc: keep GuC objects mapped in kernel

2016-04-18 Thread Dave Gordon
With the new i915_gem_obj_pin_map() interface, it makes sense to keep GuC objects (which are always pinned in memory and in the GGTT anyway) mapped into kernel address space, rather than mapping and unmapping them on each access. This preliminary patch sets up the pin-and-map for all GuC-specific