]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/gvt: Refine the snapshort range of I915 MCHBAR to optimize gvt-g boot time
authorZhao Yakui <yakui.zhao@intel.com>
Wed, 20 Feb 2019 04:07:44 +0000 (12:07 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 20 Feb 2019 09:05:15 +0000 (17:05 +0800)
commitf74a6d9a2c427b6656bc93eacfa6d329ba54d611
tree455ec8dc1aaa48ac0b053d3854dd7a26f0e57d29
parent2c7f9a4df9def07867087a520bc32169e2eec9f8
drm/i915/gvt: Refine the snapshort range of I915 MCHBAR to optimize gvt-g boot time

Currently it will take the snapshot of the MCHBAR registers for gvt-g
initialization so that it can be used for guest vgpu. And it will cover
from 0x140000 to 0x17ffff. In fact based on the HW spec most of them are
meanlingless and some time is wasted to read these register.
Only the range of 0x144000 to 0x147fff contains the valid definition.
So the range of capturing I915 MCHBAR register is refined, which helps
to optimize the gvt-g boot time.

V1->V2: Move the register definition into reg.h

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Zhenyu Wang <zhenyuw@linux.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