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)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 11 Jun 2019 14:59:54 +0000 (16:59 +0200)
commitcc0ba0d8624f210995924bb57a8b181ce8976606
treed9f31efec66c045ee2bb70dc00b75b4784be9984
parent5ed7f4b5eca11c3c69e7c8b53e4321812bc1ee1e
drm/vmwgfx: Use the backdoor port if the HB port is not available

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>
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c