]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/i915_gem_gtt.c
drm/i915/gtt: Prefer i915_vm_is_48bit() over macro
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 28 Feb 2017 15:28:09 +0000 (17:28 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Fri, 3 Mar 2017 14:45:42 +0000 (16:45 +0200)
commit1e6437b0e064746a4a2b6b3578c639797cafe4b1
tree212540c53a0b4f503a44a2ddf8802b75fd510dae
parent54af56dbf883f65396917a88e4ce8c37f9d52009
drm/i915/gtt: Prefer i915_vm_is_48bit() over macro

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, as the following
code uses the function names where level is noted.

v2: use_4lvl (Chris)

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1488295691-9404-3-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c