drm/bochs: disable video before changing video mode
authorChris Ruffin <chris.ruffin@intel.com>
Tue, 24 Mar 2015 20:57:42 +0000 (16:57 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 31 Mar 2015 22:28:15 +0000 (08:28 +1000)
commit564b687b031ccc647943f946b93037cf0780612a
tree42ddfce8073395d3ee85ea7deb6e56314dfdf85e
parent53d8858bb81ccf47ddca8b94d21f39972549e166
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>
drivers/gpu/drm/bochs/bochs_hw.c