drm/i915/gvt: Roundup fb->height into tile's height at calucation fb->size
authorXiong Zhang <xiong.y.zhang@intel.com>
Wed, 10 Apr 2019 04:16:33 +0000 (12:16 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 11 Apr 2019 03:09:53 +0000 (11:09 +0800)
commitcd7879f79f83aec4bb13f0f823f323911dc5397b
tree84dfcd5181d7b3b4f082840de5032e718d23f1c8
parent968a85b19d0a79dd8ed85f39e23eacd34b503e72
drm/i915/gvt: Roundup fb->height into tile's height at calucation fb->size

When fb is tiled and fb->height isn't the multiple of tile's height,
the format fb->size = fb->stride * fb->height, will get a smaller size
than the actual size. As the memory height of tiled fb should be multiple
of tile's height.

Fixes: 7f1a93b1f1d1 ("drm/i915/gvt: Correct the calculation of plane size")
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/dmabuf.c