Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6086598 authored by Xiong Zhang's avatar Xiong Zhang Committed by Zhenyu Wang
Browse files

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: 65f9f6fe ("drm/i915/gvt: Optimize MMIO register handling for some large MMIO blocks")
Signed-off-by: default avatarXiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: default avatarZhenyu Wang <zhenyuw@linux.intel.com>
parent 02b6ed44
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3028,7 +3028,7 @@ int intel_vgpu_mmio_reg_rw(struct intel_vgpu *vgpu, unsigned int offset,
	gvt_mmio_func func;
	int ret;

	if (WARN_ON(bytes > 4))
	if (WARN_ON(bytes > 8))
		return -EINVAL;

	/*