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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:50:19 +0000 (14:50 +0100)
commitc1e9cfc815b020b6f8d05cd93f800e63adb4993e
tree0a054b6cd8db5db83e1e1fea25161df7b0610107
parent7bdc89f1ec8f792412ee8709510823c23450dd72
drm/xen-front: Fix mmap attributes for display buffers

[ Upstream commit 24ded292a5c2ed476f01c77fee65f8320552cd27 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/xen/xen_drm_front_gem.c