]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Disable primary/sprite/cursor plane at virtual display initialization
authorXiong Zhang <xiong.y.zhang@intel.com>
Tue, 27 Mar 2018 21:30:14 +0000 (05:30 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 30 Mar 2018 06:47:19 +0000 (14:47 +0800)
commitd0a0c6f42c8ede3189a37d40b8885a8f00db0ea3
tree5acb307dbec3341f92ead6c8f6cb784f5ceb8c15
parent197ee85cc3df9e5c29ca9594db6bfb22a3cdebd6
drm/i915/gvt: Disable primary/sprite/cursor plane at virtual display initialization

Much error exist in host dmesg during guest boot up with loca display
enabled.
gvt: vgpu 1: invalid range gmadr 0x0 size 0x0

This error happens when qemu get dmabuf info in case that the virtual
display plane is enabled but its base address is an invalid 0, such
case may be true before guest enable its plane. At this moment, its
state is copied from host where the plane may be enabled.

This patch disable primary/sprite/cursor plane at virtual display
initialization, so intel_vgpu_decode_primary/cursor/sprite could
return early as plane is disabled, then plane base check is skipped and
error message disapper.

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