drm/i915/gvt: Add support for opregion virtualization
authorXiaolin Zhang <xiaolin.zhang@intel.com>
Fri, 8 Sep 2017 13:37:48 +0000 (21:37 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 16 Nov 2017 03:46:07 +0000 (11:46 +0800)
commita58c38aa6cdf0d00727cafd85cd2354dec46401a
treeb1382cf831fa24252aa691171ecb7f50f37999fa
parent34cc9efc27e2623c76a69d2ad1fa2b972e27a2c1
drm/i915/gvt: Add support for opregion virtualization

opregion emulated with a copy from host which leads to some display
bugs such as guest resolution adjustment failure due to host opregion
fail to claim port D support. with a fake opregion table provided
to fully emulate opregion to meet guest port requirement.

v1 - initial patch
v2 - reforamt opregion arrary with 0x02x output
v3 - opregion array removed with opregion generation on host initizaiton
v4 - rebased v3 patch from stable branch to staging branch which also has
     different struct child_device_config and addressed v3 review comments.

Signed-off-by: Xiaolin Zhang <xiaolin.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/opregion.c
drivers/gpu/drm/i915/gvt/reg.h