summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorHerve Jourdain <herve.jourdain@neuf.fr>2016-07-21 20:32:17 +0800
committerAndrei Gherzan <andrei@gherzan.ro>2016-09-21 16:51:29 +0100
commitd511c7ceb66380a3105f08657916e74c9cc03669 (patch)
tree3ec05776ac2ad321520435bb78b7b59a88d0d6c7 /recipes-kernel
parentef22ff49e92d009dee0b561048740737ca56cca8 (diff)
downloadmeta-raspberrypi-d511c7ceb66380a3105f08657916e74c9cc03669.tar.gz
linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch29
-rw-r--r--recipes-kernel/linux/linux-raspberrypi_4.4.bb1
2 files changed, 30 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch b/recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
new file mode 100644
index 0000000..59d0ed7
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi-4.4/0002-vc4-ioctl-rendering-allow.patch
@@ -0,0 +1,29 @@
1This patch has been accepted upstream in kernel 4.7-rc3
2But it has not yet been backported to 4.4...
3Upstream-Status: Accepted [http://www.gossamer-threads.com/lists/linux/kernel/2459302]
4Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
5---
6
7diff --git a/drivers/gpu/drm/vc4/vc4_drv.c b/drivers/gpu/drm/vc4/vc4_drv.c
8index a5b68c1..14b5ec1 100644
9--- a/drivers/gpu/drm/vc4/vc4_drv.c
10+++ b/drivers/gpu/drm/vc4/vc4_drv.c
11@@ -75,12 +75,12 @@ static const struct file_operations vc4_drm_fops = {
12 };
13
14 static const struct drm_ioctl_desc vc4_drm_ioctls[] = {
15- DRM_IOCTL_DEF_DRV(VC4_SUBMIT_CL, vc4_submit_cl_ioctl, 0),
16- DRM_IOCTL_DEF_DRV(VC4_WAIT_SEQNO, vc4_wait_seqno_ioctl, 0),
17- DRM_IOCTL_DEF_DRV(VC4_WAIT_BO, vc4_wait_bo_ioctl, 0),
18- DRM_IOCTL_DEF_DRV(VC4_CREATE_BO, vc4_create_bo_ioctl, 0),
19- DRM_IOCTL_DEF_DRV(VC4_MMAP_BO, vc4_mmap_bo_ioctl, 0),
20- DRM_IOCTL_DEF_DRV(VC4_CREATE_SHADER_BO, vc4_create_shader_bo_ioctl, 0),
21+ DRM_IOCTL_DEF_DRV(VC4_SUBMIT_CL, vc4_submit_cl_ioctl, 0|DRM_RENDER_ALLOW),
22+ DRM_IOCTL_DEF_DRV(VC4_WAIT_SEQNO, vc4_wait_seqno_ioctl, 0|DRM_RENDER_ALLOW),
23+ DRM_IOCTL_DEF_DRV(VC4_WAIT_BO, vc4_wait_bo_ioctl, 0|DRM_RENDER_ALLOW),
24+ DRM_IOCTL_DEF_DRV(VC4_CREATE_BO, vc4_create_bo_ioctl, 0|DRM_RENDER_ALLOW),
25+ DRM_IOCTL_DEF_DRV(VC4_MMAP_BO, vc4_mmap_bo_ioctl, 0|DRM_RENDER_ALLOW),
26+ DRM_IOCTL_DEF_DRV(VC4_CREATE_SHADER_BO, vc4_create_shader_bo_ioctl, 0|DRM_RENDER_ALLOW),
27 DRM_IOCTL_DEF_DRV(VC4_GET_HANG_STATE, vc4_get_hang_state_ioctl,
28 DRM_ROOT_ONLY),
29 };
diff --git a/recipes-kernel/linux/linux-raspberrypi_4.4.bb b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
index b13925c..8fe5330 100644
--- a/recipes-kernel/linux/linux-raspberrypi_4.4.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
@@ -5,5 +5,6 @@ LINUX_VERSION ?= "4.4.13"
5SRCREV = "680be5e27a9593cf26079c6e5744a04cc2809d13" 5SRCREV = "680be5e27a9593cf26079c6e5744a04cc2809d13"
6SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \ 6SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
7 file://0001-fix-dtbo-rules.patch \ 7 file://0001-fix-dtbo-rules.patch \
8 file://0002-vc4-ioctl-rendering-allow.patch \
8" 9"
9require linux-raspberrypi.inc 10require linux-raspberrypi.inc