diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2015-07-11 23:48:32 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2015-07-12 01:25:53 +0200 |
commit | 83a251854afb09375d1cd2e11f3f49373cf37759 (patch) | |
tree | f16ac690aa5612de4f45a20560e97743df1c24ae | |
parent | c1a416852f24d166c51d8203703a1bddff1ad6f8 (diff) |
patches: refresh on v4.2-rc1v4.2-rc1-1
1 3.0.101 [ OK ]
2 3.1.10 [ OK ]
3 3.2.69 [ OK ]
4 3.3.8 [ OK ]
5 3.4.108 [ OK ]
6 3.5.7 [ OK ]
7 3.6.11 [ OK ]
8 3.7.10 [ OK ]
9 3.8.13 [ OK ]
10 3.9.11 [ OK ]
11 3.10.84 [ OK ]
12 3.11.10 [ OK ]
13 3.12.44 [ OK ]
14 3.13.11 [ OK ]
15 3.14.48 [ OK ]
16 3.15.10 [ OK ]
17 3.16.7 [ OK ]
18 3.17.8 [ OK ]
19 3.18.18 [ OK ]
20 3.19.8 [ OK ]
21 4.0.8 [ OK ]
22 4.1.2 [ OK ]
23 4.2-rc1 [ OK ]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
3 files changed, 27 insertions, 27 deletions
diff --git a/patches/collateral-evolutions/media/0001-dma_mmap_coherent-revert.patch b/patches/collateral-evolutions/media/0001-dma_mmap_coherent-revert.patch index 6ce8aa7b..f4620c3a 100644 --- a/patches/collateral-evolutions/media/0001-dma_mmap_coherent-revert.patch +++ b/patches/collateral-evolutions/media/0001-dma_mmap_coherent-revert.patch @@ -25,7 +25,7 @@ Date: Thu Jun 14 11:32:21 2012 -0300 --- a/drivers/media/v4l2-core/videobuf2-dma-contig.c +++ b/drivers/media/v4l2-core/videobuf2-dma-contig.c -@@ -168,6 +168,52 @@ static void *vb2_dc_alloc(void *alloc_ct +@@ -188,6 +188,52 @@ static void *vb2_dc_alloc(void *alloc_ct return buf; } @@ -78,7 +78,7 @@ Date: Thu Jun 14 11:32:21 2012 -0300 static int vb2_dc_mmap(void *buf_priv, struct vm_area_struct *vma) { struct vb2_dc_buf *buf = buf_priv; -@@ -204,6 +250,7 @@ static int vb2_dc_mmap(void *buf_priv, s +@@ -224,6 +270,7 @@ static int vb2_dc_mmap(void *buf_priv, s return 0; } diff --git a/patches/collateral-evolutions/media/0002-no_dmabuf/v4l2.patch b/patches/collateral-evolutions/media/0002-no_dmabuf/v4l2.patch index efb66bbe..3ceff918 100644 --- a/patches/collateral-evolutions/media/0002-no_dmabuf/v4l2.patch +++ b/patches/collateral-evolutions/media/0002-no_dmabuf/v4l2.patch @@ -9,7 +9,7 @@ tristate config VIDEOBUF2_MEMOPS -@@ -91,13 +91,13 @@ config VIDEOBUF2_DMA_CONTIG +@@ -90,13 +90,13 @@ config VIDEOBUF2_DMA_CONTIG depends on HAS_DMA select VIDEOBUF2_CORE select VIDEOBUF2_MEMOPS @@ -206,7 +206,7 @@ --- a/drivers/media/v4l2-core/videobuf2-dma-contig.c +++ b/drivers/media/v4l2-core/videobuf2-dma-contig.c -@@ -78,8 +78,10 @@ static void *vb2_dc_vaddr(void *buf_priv +@@ -98,8 +98,10 @@ static void *vb2_dc_vaddr(void *buf_priv { struct vb2_dc_buf *buf = buf_priv; @@ -217,7 +217,7 @@ return buf->vaddr; } -@@ -252,6 +254,7 @@ static int vb2_dc_mmap(void *buf_priv, s +@@ -272,6 +274,7 @@ static int vb2_dc_mmap(void *buf_priv, s } #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)) */ @@ -225,7 +225,7 @@ /*********************************************/ /* DMABUF ops for exporters */ /*********************************************/ -@@ -451,6 +454,7 @@ static struct dma_buf *vb2_dc_get_dmabuf +@@ -471,6 +474,7 @@ static struct dma_buf *vb2_dc_get_dmabuf return dbuf; } @@ -233,7 +233,7 @@ /*********************************************/ /* callbacks for USERPTR buffers */ -@@ -633,6 +637,7 @@ fail_buf: +@@ -772,6 +776,7 @@ fail_buf: return ERR_PTR(ret); } @@ -241,7 +241,7 @@ /*********************************************/ /* callbacks for DMABUF buffers */ /*********************************************/ -@@ -743,6 +748,7 @@ static void *vb2_dc_attach_dmabuf(void * +@@ -882,6 +887,7 @@ static void *vb2_dc_attach_dmabuf(void * return buf; } @@ -249,7 +249,7 @@ /*********************************************/ /* DMA CONTIG exported functions */ -@@ -751,7 +757,9 @@ static void *vb2_dc_attach_dmabuf(void * +@@ -890,7 +896,9 @@ static void *vb2_dc_attach_dmabuf(void * const struct vb2_mem_ops vb2_dma_contig_memops = { .alloc = vb2_dc_alloc, .put = vb2_dc_put, @@ -259,7 +259,7 @@ .cookie = vb2_dc_cookie, .vaddr = vb2_dc_vaddr, .mmap = vb2_dc_mmap, -@@ -759,10 +767,12 @@ const struct vb2_mem_ops vb2_dma_contig_ +@@ -898,10 +906,12 @@ const struct vb2_mem_ops vb2_dma_contig_ .put_userptr = vb2_dc_put_userptr, .prepare = vb2_dc_prepare, .finish = vb2_dc_finish, @@ -274,8 +274,8 @@ EXPORT_SYMBOL_GPL(vb2_dma_contig_memops); --- a/drivers/media/v4l2-core/videobuf2-vmalloc.c +++ b/drivers/media/v4l2-core/videobuf2-vmalloc.c -@@ -28,7 +28,9 @@ struct vb2_vmalloc_buf { - unsigned long size; +@@ -30,7 +30,9 @@ struct vb2_vmalloc_buf { + unsigned int n_pages; atomic_t refcount; struct vb2_vmarea_handler handler; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0) @@ -284,7 +284,7 @@ }; static void vb2_vmalloc_put(void *buf_priv); -@@ -193,6 +195,7 @@ static int vb2_vmalloc_mmap(void *buf_pr +@@ -211,6 +213,7 @@ static int vb2_vmalloc_mmap(void *buf_pr return 0; } @@ -292,7 +292,7 @@ #ifdef CONFIG_HAS_DMA /*********************************************/ /* DMABUF ops for exporters */ -@@ -421,6 +424,7 @@ static void *vb2_vmalloc_attach_dmabuf(v +@@ -439,6 +442,7 @@ static void *vb2_vmalloc_attach_dmabuf(v return buf; } @@ -300,7 +300,7 @@ const struct vb2_mem_ops vb2_vmalloc_memops = { -@@ -428,6 +432,7 @@ const struct vb2_mem_ops vb2_vmalloc_mem +@@ -446,6 +450,7 @@ const struct vb2_mem_ops vb2_vmalloc_mem .put = vb2_vmalloc_put, .get_userptr = vb2_vmalloc_get_userptr, .put_userptr = vb2_vmalloc_put_userptr, @@ -308,7 +308,7 @@ #ifdef CONFIG_HAS_DMA .get_dmabuf = vb2_vmalloc_get_dmabuf, #endif -@@ -435,6 +440,7 @@ const struct vb2_mem_ops vb2_vmalloc_mem +@@ -453,6 +458,7 @@ const struct vb2_mem_ops vb2_vmalloc_mem .unmap_dmabuf = vb2_vmalloc_unmap_dmabuf, .attach_dmabuf = vb2_vmalloc_attach_dmabuf, .detach_dmabuf = vb2_vmalloc_detach_dmabuf, @@ -568,7 +568,7 @@ .vidioc_streamon = uvc_ioctl_streamon, --- a/drivers/media/v4l2-core/videobuf2-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf2-dma-sg.c -@@ -316,9 +316,11 @@ static void *vb2_dma_sg_vaddr(void *buf_ +@@ -377,9 +377,11 @@ static void *vb2_dma_sg_vaddr(void *buf_ BUG_ON(!buf); if (!buf->vaddr) { @@ -580,7 +580,7 @@ buf->vaddr = vm_map_ram(buf->pages, buf->num_pages, -1, PAGE_KERNEL); } -@@ -371,6 +373,7 @@ static int vb2_dma_sg_mmap(void *buf_pri +@@ -432,6 +434,7 @@ static int vb2_dma_sg_mmap(void *buf_pri return 0; } @@ -588,7 +588,7 @@ /*********************************************/ /* DMABUF ops for exporters */ /*********************************************/ -@@ -644,6 +647,7 @@ static void *vb2_dma_sg_attach_dmabuf(vo +@@ -705,6 +708,7 @@ static void *vb2_dma_sg_attach_dmabuf(vo return buf; } @@ -596,7 +596,7 @@ static void *vb2_dma_sg_cookie(void *buf_priv) { -@@ -662,11 +666,13 @@ const struct vb2_mem_ops vb2_dma_sg_memo +@@ -723,11 +727,13 @@ const struct vb2_mem_ops vb2_dma_sg_memo .vaddr = vb2_dma_sg_vaddr, .mmap = vb2_dma_sg_mmap, .num_users = vb2_dma_sg_num_users, @@ -636,7 +636,7 @@ .vidioc_g_parm = mcam_vidioc_g_parm, --- a/drivers/media/pci/dt3155/dt3155.c +++ b/drivers/media/pci/dt3155/dt3155.c -@@ -415,7 +415,9 @@ static const struct v4l2_ioctl_ops dt315 +@@ -414,7 +414,9 @@ static const struct v4l2_ioctl_ops dt315 .vidioc_reqbufs = vb2_ioctl_reqbufs, .vidioc_create_bufs = vb2_ioctl_create_bufs, .vidioc_querybuf = vb2_ioctl_querybuf, diff --git a/patches/collateral-evolutions/media/0005-dma-no-sync/v4l2.patch b/patches/collateral-evolutions/media/0005-dma-no-sync/v4l2.patch index 604085ef..e41bbba4 100644 --- a/patches/collateral-evolutions/media/0005-dma-no-sync/v4l2.patch +++ b/patches/collateral-evolutions/media/0005-dma-no-sync/v4l2.patch @@ -1,6 +1,6 @@ --- a/drivers/media/v4l2-core/videobuf2-dma-contig.c +++ b/drivers/media/v4l2-core/videobuf2-dma-contig.c -@@ -470,7 +470,9 @@ static void vb2_dc_put_userptr(void *buf +@@ -570,7 +570,9 @@ static void vb2_dc_put_userptr(void *buf if (sgt) { DEFINE_DMA_ATTRS(attrs); @@ -10,7 +10,7 @@ /* * No need to sync to CPU, it's already synced to the CPU * since the finish() memop will have been called before this. -@@ -534,7 +536,9 @@ static void *vb2_dc_get_userptr(void *al +@@ -635,7 +637,9 @@ static void *vb2_dc_get_userptr(void *al unsigned long dma_align = dma_get_cache_alignment(); DEFINE_DMA_ATTRS(attrs); @@ -42,17 +42,17 @@ dprintk(1, "%s: Freeing buffer of %d pages\n", __func__, buf->num_pages); dma_unmap_sg_attrs(buf->dev, sgt->sgl, sgt->orig_nents, -@@ -235,7 +239,9 @@ static void *vb2_dma_sg_get_userptr(void +@@ -242,7 +246,9 @@ static void *vb2_dma_sg_get_userptr(void + struct sg_table *sgt; DEFINE_DMA_ATTRS(attrs); - struct frame_vector *vec; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) dma_set_attr(DMA_ATTR_SKIP_CPU_SYNC, &attrs); +#endif + buf = kzalloc(sizeof *buf, GFP_KERNEL); if (!buf) - return NULL; -@@ -292,7 +298,9 @@ static void vb2_dma_sg_put_userptr(void +@@ -350,7 +356,9 @@ static void vb2_dma_sg_put_userptr(void int i = buf->num_pages; DEFINE_DMA_ATTRS(attrs); |