]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/bochs: fix blanking
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 6 Sep 2022 14:29:57 +0000 (16:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:57:20 +0000 (09:57 +0200)
commit2a3c55862c67ebde5a7ed4265edd5e6721acf555
treee2fd8e6c9eb5cf921c28129d56f7b2953c19f770
parentfc8eea8ec3caffe44ad872e1e4e2798d8eb382d4
drm/bochs: fix blanking

[ Upstream commit e740ceb53e4579a7a4063712cebecac3c343b189 ]

VGA_IS1_RC is the color mode register (VGA_IS1_RM the one for monochrome
mode, note C vs. M at the end).  So when using VGA_IS1_RC make sure the
vga device is actually in color mode and set the corresponding bit in the
misc register.

Reproducible when booting VMs in UEFI mode with some edk2 versions (edk2
fix is on the way too).  Doesn't happen in BIOS mode because in that
case the vgabios already flips the bit.

Fixes: 250e743915d4 ("drm/bochs: Add screen blanking support")
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20220906142957.2763577-1-kraxel@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tiny/bochs.c