]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Change the max length of mmio_reg_rw from 4 to 8
authorXiong Zhang <xiong.y.zhang@intel.com>
Wed, 2 Aug 2017 02:31:01 +0000 (10:31 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 7 Aug 2017 07:50:39 +0000 (15:50 +0800)
commite552566515a131d13bf616997e08cea63a62a5bd
treed94ca8c5b35d146a45770d8f0b1a785ed30f6d4c
parent9b93fbf063f2f0e39ce0b9c7863e8c47f2b911dd
drm/i915/gvt: Change the max length of mmio_reg_rw from 4 to 8

When linux guest access mmio with __raw_i915_read64 or __raw_i915_write64,
its length is 8 bytes.

This fix the linux guest in xengt couldn't boot up as it fail in
reading pv_info->magic.

Fixes: 19c46b7d2451 ("drm/i915/gvt: Optimize MMIO register handling for some large MMIO blocks")
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c