drm/bochs: fix blanking
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 6 Sep 2022 14:29:57 +0000 (16:29 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Sep 2022 10:13:22 +0000 (12:13 +0200)
commite740ceb53e4579a7a4063712cebecac3c343b189
treeffc989a25da6784de3bbc64572dceceadc508f33
parent85faca8ca0f659263b5fb2385e4c231cc075bd84
drm/bochs: fix blanking

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
drivers/gpu/drm/tiny/bochs.c