]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 09:59:20 +0000 (10:59 +0100)
commit830b40860044791cf12e7137b2d27c8e008e5716
tree8bb63d2cd8e38c0ea432e8672d30e3556328ff78
parent255a795d783c43ca66accae65472009a15484078
drm/vmwgfx: Fail to initialize on broken configs

BugLink: https://bugs.launchpad.net/bugs/1959376
[ Upstream commit c451af78f301ff5156998d571c37cab329c10051 ]

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: fb1d9738ca05 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c