[PATCH v3] drm/i915/gvt: Change fb_info->size from pages to bytes

Zhenyu Wang zhenyuw at linux.intel.com
Fri Mar 29 02:39:42 UTC 2019


On 2019.03.26 14:45:28 +0800, Xiong Zhang wrote:
> fb_info->size is in pages, but some function need bytes when it
> is a parameter. Such as:
> a. intel_gvt_ggtt_validate_range() according to function definition
> b. vfio_device_gfx_plane_info->size according to the comment of
>    its definition
> 
> This patch change fb_info->size into bytes.
> 
> v2: Keep fb_info->size in real size instead of assigning casted
>     page size(zhenyu)
> v3: obj->size should be page aligned and delete redundant check(zhenyu)
> 
> Signed-off-by: Xiong Zhang <xiong.y.zhang at intel.com>
> ---

Reviewed-by: Zhenyu Wang <zhenyuw at linux.intel.com>

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20190329/884e1e48/attachment.sig>


More information about the intel-gvt-dev mailing list