OSDN Git Service

drm/xen-front: Fix mmap attributes for display buffers
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Tue, 29 Jan 2019 15:04:22 +0000 (17:04 +0200)
committerOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Mon, 4 Feb 2019 06:39:31 +0000 (08:39 +0200)
commit24ded292a5c2ed476f01c77fee65f8320552cd27
tree81516989c8309026fc77638c4bbb7699540f003b
parent938010ab072221f9b396770bbe78001ee3b74302
drm/xen-front: Fix mmap attributes for display buffers

When GEM backing storage is allocated those are normal pages,
so there is no point using pgprot_writecombine while mmaping.
This fixes mismatch of buffer pages' memory attributes between
the frontend and backend which may cause screen artifacts.

Fixes: c575b7eeb89f ("drm/xen-front: Add support for Xen PV display frontend")

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Suggested-by: Julien Grall <julien.grall@arm.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190129150422.19867-1-andr2000@gmail.com
drivers/gpu/drm/xen/xen_drm_front_gem.c