drm/mgag200: Enable caching for SHMEM pages
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Jul 2020 10:28:37 +0000 (12:28 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Aug 2020 07:42:03 +0000 (09:42 +0200)
commit0b34d58b6c321a30b5a97ec6c9a71e6f472827d2
tree5e3f2c2a3f2fc71f096647d1ef184cef8bc0d2d1
parentcff0adca1edd6eb2bc6116e4d83e442f372cca64
drm/mgag200: Enable caching for SHMEM pages

SHMEM pages use write-combine caching by default, but can also use the
platform's default page caching. Doing so may improve the performance
of I/O on the framebuffer.

Mgag200's hardware does not access framebuffer pages directly (i.e.,
via DMA), so enabling caching does not have an effect on consistency
of the framebuffer memory or the displayed data.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200730102844.10995-2-tzimmermann@suse.de
drivers/gpu/drm/mgag200/mgag200_drv.c