drm/i915/gvt: optimize the inhibit context mmio load
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Tue, 14 Feb 2017 07:14:05 +0000 (15:14 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 14 Feb 2017 09:35:39 +0000 (17:35 +0800)
commitbc6a1c85795256cd7b44bc1dd264fe3144b8b6f8
treedbea2dbf7f35b1314635adc1b6ec48f178c20926
parent6e27d51457df3f9c7ac406a2a447e89c42e440dd
drm/i915/gvt: optimize the inhibit context mmio load

For the inhibit ctx, load all mmio in render mmio list
into HW by MMIO write for ctx initialization.

For the none-inhibit ctx, only load the render mmio which
is not in_context into HW by MMIO write. Skip the MMIO write
for in_context mmio as context image will load it.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/render.c