drm/i915/gvt: Revert "drm/i915/gvt: Refine the snapshort range of I915 MCHBAR to...
authorZhao Yakui <yakui.zhao@intel.com>
Thu, 25 Apr 2019 09:04:54 +0000 (17:04 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 29 Apr 2019 06:26:59 +0000 (14:26 +0800)
commit8631fef7f2037281efca685c9e717eaed33ee37c
tree841017ba10ef73e68b5693010626b264c818e3a9
parent930c8dfea4b8f320bd7f6a3e5e721ac20e444e03
drm/i915/gvt: Revert "drm/i915/gvt: Refine the snapshort range of I915 MCHBAR to optimize gvt-g boot time"

This reverts commit f74a6d9a2c427b6656bc93eacfa6d329ba54d611.

BXT needs to access 0x141000-0x1417ff register to obtain the dram info.
But after the snapshot range of I915_MCHBAR is refined in f74a6d9a2c,
it only initializes the range of 0x144000-0x147fff for VGPU and then
causes that the guest GPU can't get the initialized value for dram
detection on BXT.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/gvt/reg.h