]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bochs: Use shadow buffer for bochs framebuffer console
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 3 Jul 2019 07:58:34 +0000 (09:58 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Aug 2019 13:01:42 +0000 (15:01 +0200)
commit8c908abf729470c95bdda099bbed2165908bc13f
tree3565871b193869c0c131f6a6c89a2039ff2887e2
parent47236b00794e4ba5a78fd5663ffc36058edda4b8
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>
drivers/gpu/drm/bochs/bochs_kms.c