drm/i915/gvt: Change fb_info->size from pages to bytes
authorXiong Zhang <xiong.y.zhang@intel.com>
Wed, 10 Apr 2019 04:16:34 +0000 (12:16 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 25 Apr 2019 07:29:38 +0000 (15:29 +0800)
commit4a6eccbcb9ea88cf0408115e9d130ce7062ee6fd
treea19abd7c66ea84c0eb513e98a91c9dfa813f9ebd
parent447811a686e8da7325516a78069ccfbd139ef1a7
drm/i915/gvt: Change fb_info->size from pages to bytes

fb_info->size is in pages, but some function need bytes when it
is as a parameter. Such as:
a. intel_gvt_ggtt_validate_range(), according to function definition
b. vifio_device_gfx_plane_info->size, according to the comment of
   its definition

So change fb_info->size into bytes.

v2: Keep fb_info->size in real size instead of assinging casted page
    size(zhenyu)
v3: obj->size should be page aligned and delete redundant check(zhenyu)

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/dmabuf.c