]> git.baikalelectronics.ru Git - kernel.git/commit
drm/hyperv: Fix double mouse pointers
authorDexuan Cui <decui@microsoft.com>
Thu, 16 Sep 2021 19:36:44 +0000 (12:36 -0700)
committerDave Airlie <airlied@redhat.com>
Fri, 15 Oct 2021 05:04:44 +0000 (15:04 +1000)
commitb0c99ab255fdd1cf6625fae0e5b6be7b8fd81c1c
tree666f8ce26cda20196aca6823a90417357a1accd5
parent0780d68806cfc9c675369b8e29df177657b7f944
drm/hyperv: Fix double mouse pointers

Hyper-V supports a hardware cursor feature. It is not used by Linux VM,
but the Hyper-V host still draws a point as an extra mouse pointer,
which is unwanted, especially when Xorg is running.

The hyperv_fb driver uses synthvid_send_ptr() to hide the unwanted pointer.
When the hyperv_drm driver was developed, the function synthvid_send_ptr()
was not copied from the hyperv_fb driver. Fix the issue by adding the
function into hyperv_drm.

Fixes: aebd89482ab4 ("drm/hyperv: Add DRM driver for hyperv synthetic video device")
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Deepak Rawat <drawat.floss@gmail.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210916193644.45650-1-decui@microsoft.com
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/hyperv/hyperv_drm.h
drivers/gpu/drm/hyperv/hyperv_drm_modeset.c
drivers/gpu/drm/hyperv/hyperv_drm_proto.c