]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/vmwgfx: Use the backdoor port if the HB port is not available
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 29 May 2019 06:15:19 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jun 2019 03:36:01 +0000 (11:36 +0800)
commite6803ce36d496bc8173e3a32f5d396ead5afac02
tree45e2268e854592b05528cbb4f2e007269f92913a
parent7499528bb0783f7a46683e1cad2eab9e5591a5e0
drm/vmwgfx: Use the backdoor port if the HB port is not available

commit cc0ba0d8624f210995924bb57a8b181ce8976606 upstream.

The HB port may not be available for various reasons. Either it has been
disabled by a config option or by the hypervisor for other reasons.
In that case, make sure we have a backup plan and use the backdoor port
instead with a performance penalty.

Cc: stable@vger.kernel.org
Fixes: 89da76fde68d ("drm/vmwgfx: Add VMWare host messaging capability")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c