From: Yu Zhang Date: Tue, 10 Feb 2015 11:05:51 +0000 (+0800) Subject: drm/i915: Add the display switch logic for vGPU in i915 driver X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~35^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e21fd552ff068da4bcb1a0108e2933db52685f2c;p=pandora-kernel.git drm/i915: Add the display switch logic for vGPU in i915 driver Display switch logic is added to notify the host side that current vGPU have a valid surface to show. It does so by writing the display_ready field in PV INFO page, and then will be handled in the host side. This is useful to avoid trickiness when the VM's framebuffer is being accessed in the middle of VM modesetting, e.g. compositing the framebuffer in the host side. v2: - move the notification code outside the 'else' in load sequence - remove the notification code in intel_crtc_set_config() v4: - code rebase, no need to define another dev_priv - use #define instead of enum for display readiness Signed-off-by: Yu Zhang Signed-off-by: Jike Song Signed-off-by: Zhiyuan Lv Reviewed-by: Tvrtko Ursulin Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed