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)
commitb8f3f500e09c2c457efc2fcbfe8b7f815f2e6a0e
tree8c7a43b60ba3f9482bf621f38d55b4468e045038
parent04c0746663bd3ae3cce5e02d5b32c8ade2a833b8
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