diff options
author | Chris Ruffin <chris.ruffin@intel.com> | 2015-03-24 16:57:42 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-03-31 18:28:15 -0400 |
commit | 564b687b031ccc647943f946b93037cf0780612a (patch) | |
tree | 42ddfce8073395d3ee85ea7deb6e56314dfdf85e | |
parent | 53d8858bb81ccf47ddca8b94d21f39972549e166 (diff) |
drm/bochs: disable video before changing video mode
qemu and simics simulators both seem to expect that video should be disabled
before changing the video mode.
references:
http://git.qemu.org/?p=qemu.git;a=blob;f=hw/display/vga.c;h=c0f7b343bbab586c8593d29c7a765f1e6ca3662c;hb=HEAD#l727
http://wiki.osdev.org/Bochs_VBE_Extensions#Setting_display_resolution_and_bit_depth
Signed-off-by: Chris Ruffin <chris.ruffin@intel.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/bochs/bochs_hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bochs/bochs_hw.c b/drivers/gpu/drm/bochs/bochs_hw.c index 460389702d31..a39b0343c197 100644 --- a/drivers/gpu/drm/bochs/bochs_hw.c +++ b/drivers/gpu/drm/bochs/bochs_hw.c | |||
@@ -164,6 +164,7 @@ void bochs_hw_setmode(struct bochs_device *bochs, | |||
164 | 164 | ||
165 | bochs_vga_writeb(bochs, 0x3c0, 0x20); /* unblank */ | 165 | bochs_vga_writeb(bochs, 0x3c0, 0x20); /* unblank */ |
166 | 166 | ||
167 | bochs_dispi_write(bochs, VBE_DISPI_INDEX_ENABLE, 0); | ||
167 | bochs_dispi_write(bochs, VBE_DISPI_INDEX_BPP, bochs->bpp); | 168 | bochs_dispi_write(bochs, VBE_DISPI_INDEX_BPP, bochs->bpp); |
168 | bochs_dispi_write(bochs, VBE_DISPI_INDEX_XRES, bochs->xres); | 169 | bochs_dispi_write(bochs, VBE_DISPI_INDEX_XRES, bochs->xres); |
169 | bochs_dispi_write(bochs, VBE_DISPI_INDEX_YRES, bochs->yres); | 170 | bochs_dispi_write(bochs, VBE_DISPI_INDEX_YRES, bochs->yres); |