mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 05:55:06 +07:00
913ec479bb
The VRAM helpers managed the framebuffer memory for mgag200. This came with several problems, as some MGA device require the scanout address to be located at VRAM offset 0. It's incompatible with the page-flip semantics of DRM's atomic modesettting. With atomic modesetting, old and new framebuffers have to be located in VRAM at the same time. So at least one of them has to reside at a non-0 offset. This patch replaces VRAM helpers with SHMEM helpers. GEM SHMEM buffers reside in system memory, and are shadow-copied into VRAM during page flips. The shadow copy always starts at VRAM offset 0. v2: * revert dev->pdev changes Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Tested-by: John Donnelly <John.p.donnelly@oracle.com> Acked-by: Emil Velikov <emil.velikov@collabora.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200515083233.32036-16-tzimmermann@suse.de
14 lines
469 B
Plaintext
14 lines
469 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config DRM_MGAG200
|
|
tristate "Kernel modesetting driver for MGA G200 server engines"
|
|
depends on DRM && PCI && MMU
|
|
select DRM_GEM_SHMEM_HELPER
|
|
select DRM_KMS_HELPER
|
|
help
|
|
This is a KMS driver for the MGA G200 server chips, it
|
|
does not support the original MGA G200 or any of the desktop
|
|
chips. It requires 0.3.0 of the modesetting userspace driver,
|
|
and a version of mga driver that will fail on KMS enabled
|
|
devices.
|
|
|