]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: fb: Implement ->fb_mmap() callback
authorThierry Reding <treding@nvidia.com>
Wed, 7 Feb 2018 17:45:56 +0000 (18:45 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 8 Mar 2018 13:38:42 +0000 (14:38 +0100)
commite971eef1924d70da75e4c26658835b22e51be8c3
tree8c7a43b60ba3f9482bf621f38d55b4468e045038
parent62b99e3121f5c49568db31093a373d6d26a156f6
drm/tegra: fb: Implement ->fb_mmap() callback

This fixes hangs with legacy applications that use the mmap() syscall on
the fbdev device to map framebuffer memory. The fbdev implementation for
mmap() creates a mapping that conflicts with DRM usage and causes a hang
when the memory is accessed through the mapping.

Reported-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Tested-by: Stefan Agner <stefan@agner.ch>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reported-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/fb.c