OpenCloudOS-Kernel/drivers/gpu/drm/bochs
Thomas Zimmermann 5854059457 drm/bochs: Use shadow buffer for bochs framebuffer console
The bochs driver (and virtual hardware) requires buffer objects to
reside in video ram to display them to the screen. So it can not
display the framebuffer console because the respective buffer object
is permanently pinned in system memory.

Using a shadow buffer for the console solves this problem. The console
emulation will pin the buffer object only during updates from the shadow
buffer. Otherwise, the bochs driver can freely relocated the buffer
between system memory and video ram.

v2:
	* select shadow FB via struct drm_mode_config.prefer_shadow_fbdev

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: https://patchwork.freedesktop.org/patch/315833/
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2019-08-01 15:01:42 +02:00
..
Kconfig drm-misc-next for v5.3, try #2: 2019-05-28 08:59:11 +10:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bochs.h drm/bochs: fix framebuffer setup. 2019-06-28 14:30:40 +02:00
bochs_drv.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
bochs_hw.c drm/bochs: fix framebuffer setup. 2019-06-28 14:30:40 +02:00
bochs_kms.c drm/bochs: Use shadow buffer for bochs framebuffer console 2019-08-01 15:01:42 +02:00
bochs_mm.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00