summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gvt/reg.h
diff options
context:
space:
mode:
authorXiaolin Zhang <xiaolin.zhang@intel.com>2017-09-08 16:37:48 +0300
committerZhenyu Wang <zhenyuw@linux.intel.com>2017-11-16 06:46:07 +0300
commita58c38aa6cdf0d00727cafd85cd2354dec46401a (patch)
treeb1382cf831fa24252aa691171ecb7f50f37999fa /drivers/gpu/drm/i915/gvt/reg.h
parent34cc9efc27e2623c76a69d2ad1fa2b972e27a2c1 (diff)
downloadlinux-a58c38aa6cdf0d00727cafd85cd2354dec46401a.tar.xz
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>
Diffstat (limited to 'drivers/gpu/drm/i915/gvt/reg.h')
-rw-r--r--drivers/gpu/drm/i915/gvt/reg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/gvt/reg.h b/drivers/gpu/drm/i915/gvt/reg.h
index 7d01c77a0f7a..83f2f63d7eeb 100644
--- a/drivers/gpu/drm/i915/gvt/reg.h
+++ b/drivers/gpu/drm/i915/gvt/reg.h
@@ -51,6 +51,9 @@
#define INTEL_GVT_OPREGION_PAGES 2
#define INTEL_GVT_OPREGION_SIZE (INTEL_GVT_OPREGION_PAGES * PAGE_SIZE)
+#define INTEL_GVT_OPREGION_VBT_OFFSET 0x400
+#define INTEL_GVT_OPREGION_VBT_SIZE \
+ (INTEL_GVT_OPREGION_SIZE - INTEL_GVT_OPREGION_VBT_OFFSET)
#define VGT_SPRSTRIDE(pipe) _PIPE(pipe, _SPRA_STRIDE, _PLANE_STRIDE_2_B)