drm/vmwgfx: Print errors when running on broken/unsupported configs
authorZack Rusin <zackr@vmware.com>
Tue, 21 Mar 2023 02:09:48 +0000 (22:09 -0400)
committerZack Rusin <zackr@vmware.com>
Tue, 11 Apr 2023 16:29:30 +0000 (12:29 -0400)
commit35d86fb626a2554de5d5916b6e2d47d06b483d37
treec9e67db88203b5710b284db1ba03bf2db798bd7f
parent490438469d493e8f764bea14d47eaf4c2ae7cc80
drm/vmwgfx: Print errors when running on broken/unsupported configs

virtualbox implemented an incomplete version of the svga device which
they decided to drop soon after the initial release. The device was
always broken in various ways and never supported by vmwgfx.

vmwgfx should refuse to load on those configurations but currently
drm has no way of reloading fbdev when the specific pci driver refuses
to load, which would leave users without a usable fb. Instead of
refusing to load print an error and disable a bunch of functionality
that virtualbox never implemented to at least get fb to work on their
setup.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230321020949.335012-2-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_msg.c