drm/i915/gvt: Fix gen8/9_render_mmio_list[0] don't take effect
authorXiong Zhang <xiong.y.zhang@intel.com>
Tue, 26 Dec 2017 21:01:16 +0000 (05:01 +0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 1 Feb 2018 15:30:17 +0000 (07:30 -0800)
commitd9df2c0943811f3880393be738ab86675029f3d0
tree99d998a83ce4eef8d1e2283a765fe367e58b4368
parent24b8ef699e8221d2b7f813adaab13eec053e1507
drm/i915/gvt: Fix gen8/9_render_mmio_list[0] don't take effect

while(mmio++) increase mmio to next, mmio[0] never take effect
in while loop.

This patch change while to for and fix the above issue.

v2: Correct Fixes format.(Zhenyu)
v3: Rebase to latest staging.(Zhenyu)

Fixes: 83164886e455("drm/i915/gvt: Select appropriate mmio list at initialization time")
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gvt/mmio_context.c