drm/i915/gvt: Fix emulated vbt size issue
authorTina Zhang <tina.zhang@intel.com>
Thu, 5 Mar 2020 13:15:59 +0000 (21:15 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 6 Mar 2020 01:35:30 +0000 (09:35 +0800)
commit2fa7e15c5f466fdd0c0b196b1dc4a65d191efd96
tree081c25efab36a3f4ae9de2bb49f5ee7fc2be0221
parent04d6067f1f19e70a418f92fa3170cf7fe53b7fdf
drm/i915/gvt: Fix emulated vbt size issue

The emulated vbt doesn't tell its size correctly. According to the
intel_vbt_defs.h, vbt_header.vbt_size should the size of VBT (VBT Header,
BDB Header and data blocks), and bdb_header.bdb_size should be the size
of BDB (BDB Header and data blocks).

This patch fixes the issue and lets vbt provided by GVT-g pass the guest
i915's sanity test.

v2: refine the commit message. (Zhenyu)

Signed-off-by: Tina Zhang <tina.zhang@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200305131600.29640-1-tina.zhang@intel.com
drivers/gpu/drm/i915/gvt/opregion.c