]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5237364fbb172a4b789632356ae73ecdc802b11e
tree99d998a83ce4eef8d1e2283a765fe367e58b4368
parentea1463b20e538c09654255beaee4c09be8442f4a
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: f609c73cf6d2("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