linux-stable/drivers/gpu/drm/mgag200
Thomas Zimmermann 913ec479bb drm/mgag200: Replace VRAM helpers with SHMEM helpers
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
2020-05-19 09:41:34 +02:00
..
Kconfig drm/mgag200: Replace VRAM helpers with SHMEM helpers 2020-05-19 09:41:34 +02:00
Makefile drm/mgag200: Remove HW cursor 2020-05-19 09:41:32 +02:00
mgag200_cursor.c drm/mgag200: Convert struct drm_device to struct mga_device with helper 2020-05-11 16:39:45 +02:00
mgag200_drv.c drm/mgag200: Replace VRAM helpers with SHMEM helpers 2020-05-19 09:41:34 +02:00
mgag200_drv.h drm/mgag200: Replace VRAM helpers with SHMEM helpers 2020-05-19 09:41:34 +02:00
mgag200_i2c.c drm/mgag200: Convert struct drm_device to struct mga_device with helper 2020-05-11 16:39:45 +02:00
mgag200_main.c drm/mgag200: Remove HW cursor 2020-05-19 09:41:32 +02:00
mgag200_mode.c drm/mgag200: Replace VRAM helpers with SHMEM helpers 2020-05-19 09:41:34 +02:00
mgag200_reg.h drm/mgag200: Move TAGFIFO reset into separate function 2020-05-19 09:41:33 +02:00
mgag200_ttm.c drm/mgag200: Replace VRAM helpers with SHMEM helpers 2020-05-19 09:41:34 +02:00