Re: [Intel-gfx] [PATCH 3/5] drm/i915/gtt: Prefer i915_vm_is_48bit() over macro

2017-02-28 Thread Chris Wilson
On Tue, Feb 28, 2017 at 05:28:09PM +0200, Mika Kuoppala wrote: > If we setup the vm size early, we can use the newly introduced > i915_vm_is_48bit() in majority of callsites wanting to know the vm size. > > As we operate either with 3lvl or 4lvl page table structure, > wrap the vm size query

[Intel-gfx] [PATCH 3/5] drm/i915/gtt: Prefer i915_vm_is_48bit() over macro

2017-02-28 Thread Mika Kuoppala
If we setup the vm size early, we can use the newly introduced i915_vm_is_48bit() in majority of callsites wanting to know the vm size. As we operate either with 3lvl or 4lvl page table structure, wrap the vm size query inside a function which tells us if 4lvl setup is needed for particular vm,