]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Fail to initialize on broken configs
authorZack Rusin <zackr@vmware.com>
Fri, 5 Nov 2021 19:38:44 +0000 (15:38 -0400)
committerZack Rusin <zackr@vmware.com>
Wed, 1 Dec 2021 16:58:34 +0000 (11:58 -0500)
commit5b95324355b09e47ee2187c88c695446b72d18d2
tree1235835107fc0686760b5fbd68c41c3e64683599
parent5ca47b19ec5703ea7951f582c0525c472eac4824
drm/vmwgfx: Fail to initialize on broken configs

Some of our hosts have a bug where rescaning a pci bus results in stale
fifo memory being mapped on the host. This makes any fifo communication
impossible resulting in various kernel crashes.

Instead of unexpectedly crashing, predictably fail to load the driver
which will preserve the system.

Fixes: bfd3419f8525 ("drm/vmwgfx: Add DRM driver for VMware Virtual GPU")
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211105193845.258816-4-zackr@vmware.com
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c