drm/i915/gvt: fix an error for F_RO flag
authorZhao Yan <yan.y.zhao@intel.com>
Thu, 2 Mar 2017 07:12:47 +0000 (15:12 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 2 Mar 2017 07:26:06 +0000 (15:26 +0800)
the ro_mask is not stored into each mmio entry

Fixes: 12d14cc43b34 ("drm/i915/gvt: Introduce a framework for tracking HW registers.")
Signed-off-by: Zhao Yan <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c

index 548aedfbd40272d65b3ccd511a47a7c6a85c4aa2..8e43395c748a15cc60f6e80d7b43f8b28fbce4aa 100644 (file)
@@ -121,6 +121,7 @@ static int new_mmio_info(struct intel_gvt *gvt,
                info->size = size;
                info->length = (i + 4) < end ? 4 : (end - i);
                info->addr_mask = addr_mask;
+               info->ro_mask = ro_mask;
                info->device = device;
                info->read = read ? read : intel_vgpu_default_mmio_read;
                info->write = write ? write : intel_vgpu_default_mmio_write;