From: Yu Zhang Date: Tue, 10 Feb 2015 11:05:54 +0000 (+0800) Subject: drm/i915: Support alias ppgtt in VM if ppgtt is enabled X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~35^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71ba2d6432040352e174f5366fb5e5ac3b908e50;p=pandora-kernel.git drm/i915: Support alias ppgtt in VM if ppgtt is enabled The current Intel GVT-g only supports alias ppgtt. And the emulation is done in the host by first trapping PP_DIR_BASE mmio accesses. Updating PP_DIR_BASE by using instructions such as MI_LOAD_REGISTER_IMM are hard to detect and are not supported in current code. Therefore this patch also adds a new callback routine - vgpu_mm_switch() to set the PP_DIR_BASE by mmio writes. v2: take Chris' comments: - move the code into sanitize_enable_ppgtt() v4: take Tvrtko's comments: - fix the parenthesis alignment warning Signed-off-by: Yu Zhang Signed-off-by: Jike Song Reviewed-by: Tvrtko Ursulin Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed