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-03-30 17:11:52 +0200
commit83d29c9dde04d0c8f2460831a6b22bce6579a72e (patch)
tree9fc9450da3e798fb2de1b63649ec1d6d04030561 /recipes-kernel/linux/linux-toradex-mainline-4.14/0009-drm-tegra-gem-Reshuffle-declarations.patch
parentb2a5d3a1b7d5987ec1c3f5b85f944b29149afcaa (diff)
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>
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
+