Message ID | 20190414144413.9708-4-uril@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | i915/gvt/dmabuf: some plane 'size' fixes | expand |
diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c index 857e3a02d951..7b66ec2ee167 100644 --- a/drivers/gpu/drm/i915/gvt/dmabuf.c +++ b/drivers/gpu/drm/i915/gvt/dmabuf.c @@ -355,7 +355,7 @@ static void update_fb_info(struct vfio_device_gfx_plane_info *gvt_dmabuf, gvt_dmabuf->width = fb_info->width; gvt_dmabuf->height = fb_info->height; gvt_dmabuf->stride = fb_info->stride; - gvt_dmabuf->size = fb_info->size; + gvt_dmabuf->size = fb_info->size << PAGE_SHIFT; gvt_dmabuf->x_pos = fb_info->x_pos; gvt_dmabuf->y_pos = fb_info->y_pos; gvt_dmabuf->x_hot = fb_info->x_hot;