[Intel-gfx] [PATCH 5/5] drm/i915: Dynamically calculate dclv

2012-12-28 Thread Ben Widawsky
Directory CacheLine Valid controls which PDEs are held in the directory cache. Each bit represents 16 PDEs (16 PDEs at 4 bytes per entry is 1 cacheline, and therefore, almost makes sense). Since we can now have an aliasing PPGTT which isn't 2GB, theoretically, we should also modify the DCLV value

[Intel-gfx] [PATCH 3/5] drm/i915: Extract gen6 aliasing ppgtt code

2012-12-28 Thread Ben Widawsky
This refactor clearly identifies the GEN specific portion of the aliased ppgtt code. Aside from some of the gen specific parts being extracted, it also preps us for an upcoming patch that pulls out the size, which has some nice benefits. Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_

[Intel-gfx] [PATCH 4/5] drm/i915: Aliased PPGTT size abstraction

2012-12-28 Thread Ben Widawsky
Aside from being a nice prep for some work I'm doing in PPGTT, this also leaves us with a more accurate size in our gtt_total_entries member. Since we can't actually use the PPGTT reserved part of the GGTT. This will help some of the existing assertions find issues which would overwrite the PPGTT

[Intel-gfx] [PATCH 2/5] drm/i915: Reclaim GTT space for failed PPGTT

2012-12-28 Thread Ben Widawsky
When the PPGTT init fails, we may as well reuse the space that we were reserving for the PPGTT PDEs. This also fixes an extraneous mutex_unlock. Reviewed-by: Chris Wilson Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_gem_gtt.c | 33 - 1 file changed,

[Intel-gfx] [PATCH 1/5] drm/i915: trivial: kill-agp collateral cleanups

2012-12-28 Thread Ben Widawsky
- i915_gem_init_aliasing_ppgtt should now be static - move i915_gem_init_ppgtt declaration to the right place Reviewed-by: Chris Wilson Signed-off-by: Ben Widawsky --- drivers/gpu/drm/i915/i915_drv.h | 3 +-- drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +- 2 files changed, 2 insertions(+), 3 de

Re: [Intel-gfx] [PATCH 1/2] drm/i915: trivial: kill-agp collateral cleanups

2012-12-28 Thread Jani Nikula
On Fri, 28 Dec 2012, Ben Widawsky wrote: > - i915_gem_init_aliasing_ppgtt should now be static > - move i915_gem_init_ppgtt declaration to the right place > > I expected sparse to catch the first one, but somehow it didn't. FWIW, it only complains if you don't declare the function first. But you

Re: [Intel-gfx] [PATCH 2/2] drm/i915: Reclaim GGTT space for failed ppgtt

2012-12-28 Thread Chris Wilson
On Thu, 27 Dec 2012 18:27:22 -0800, Ben Widawsky wrote: > When the ppgtt init fails, we may as well reuse the space that were were > reserving for the ppgtt PDEs. > > This also fixes an extraneous mutex_unlock. Hear, hear. Could I ask for the int ret; to be killed off entirely? [both] Reviewed