]> xenbits.xensource.com Git - xen.git/commit
x86/vga: fix mapping of the VGA text buffer
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 27 Mar 2025 13:56:57 +0000 (14:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Mar 2025 13:56:57 +0000 (14:56 +0100)
commitde440d0407d2a5b9f60333adb548eceb4b74d626
treeea4f39e35029bcaa4dfb6fe99834d8b6667ef426
parentda36efa8521a2ba3cd8b63105fe92324776953f6
x86/vga: fix mapping of the VGA text buffer

The call to ioremap_wc() in video_init() will always fail, because
video_init() is called ahead of vm_init_type(), and so the underlying
__vmap() call will fail to allocate the linear address space.

Fix by reverting to the previous behavior and use __va() for the VGA text
buffer, as it's below the 1MB boundary, and thus always mapped in the
directmap.

Fixes: 81d195c6c0e2 ('x86: introduce ioremap_wc()')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 1ca5f69e35548e5196eadb329e5a3976821dc982
master date: 2025-03-20 17:16:10 +0100
xen/drivers/video/vga.c