summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-02-08 01:24:07 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-04-03 10:22:39 +0200
commiteb0e42331012533d87d8a7a4bf1b4e5ed31283c3 (patch)
treee91c16b62ae233293c901f7f711271c66da3a3db /recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch
parent9b8c081249f6b9754bcde2602fa1c3094ae3b2a6 (diff)
linux-toradex-mainline: apalis tk1 mainline, fbdev mmap fix
Integrate Thierry's fbdev mmap fix allowing legacy applications that use the mmap() syscall on the fbdev device to map framebuffer memory without causing a hang. Useful e.g. for Tezi. While at it also update to 4.14.30. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 83d29c9dde04d0c8f2460831a6b22bce6579a72e)
Diffstat (limited to 'recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch')
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch b/recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch
new file mode 100644
index 0000000..8be8142
--- /dev/null
+++ b/recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch
@@ -0,0 +1,33 @@
+From b6d7974d10b30bf3baed7e50d8e574f5184cfdd1 Mon Sep 17 00:00:00 2001
+From: Thierry Reding <treding@nvidia.com>
+Date: Wed, 7 Feb 2018 18:45:54 +0100
+Subject: [PATCH] drm/tegra: gem: Reshuffle declarations
+
+Move declarations in the gem.h header file into the same order as the
+corresponding definitions in gem.c.
+
+Signed-off-by: Thierry Reding <treding@nvidia.com>
+---
+ drivers/gpu/drm/tegra/gem.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/tegra/gem.h b/drivers/gpu/drm/tegra/gem.h
+index 8eb9fd24ef0e..1fcf94dce45c 100644
+--- a/drivers/gpu/drm/tegra/gem.h
++++ b/drivers/gpu/drm/tegra/gem.h
+@@ -68,10 +68,10 @@ void tegra_bo_free_object(struct drm_gem_object *gem);
+ int tegra_bo_dumb_create(struct drm_file *file, struct drm_device *drm,
+ struct drm_mode_create_dumb *args);
+
+-int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma);
+-
+ extern const struct vm_operations_struct tegra_bo_vm_ops;
+
++int tegra_drm_mmap(struct file *file, struct vm_area_struct *vma);
++
+ struct dma_buf *tegra_gem_prime_export(struct drm_device *drm,
+ struct drm_gem_object *gem,
+ int flags);
+--
+2.15.1
+