<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/media/platform, branch v3.15.2</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media</title>
<updated>2014-05-21T10:01:08+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2014-05-21T10:01:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=fba69f042ad99f68c0268ef1c012f3199f898fac'/>
<id>fba69f042ad99f68c0268ef1c012f3199f898fac</id>
<content type='text'>
Pull media fixes from Mauro Carvalho Chehab:
 "Most of the changes are drivers fixes (rtl28xuu, fc2580, ov7670,
  davinci, gspca, s5p-fimc and s5c73m3).

  There is also a compat32 fix and one infoleak fixup at the media
  controller"

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
  [media] V4L2: fix VIDIOC_CREATE_BUFS in 64- / 32-bit compatibility mode
  [media] V4L2: ov7670: fix a wrong index, potentially Oopsing the kernel from user-space
  [media] media-device: fix infoleak in ioctl media_enum_entities()
  [media] fc2580: fix tuning failure on 32-bit arch
  [media] Prefer gspca_sonixb over sn9c102 for all devices
  [media] media: davinci: vpfe: make sure all the buffers unmapped and released
  [media] staging: media: davinci: vpfe: make sure all the buffers are released
  [media] media: davinci: vpbe_display: fix releasing of active buffers
  [media] media: davinci: vpif_display: fix releasing of active buffers
  [media] media: davinci: vpif_capture: fix releasing of active buffers
  [media] s5p-fimc: Fix YUV422P depth
  [media] s5c73m3: Add missing rename of v4l2_of_get_next_endpoint() function
  [media] rtl28xxu: silence error log about disabled rtl2832_sdr module
  [media] rtl28xxu: do not hard depend on staging SDR module
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull media fixes from Mauro Carvalho Chehab:
 "Most of the changes are drivers fixes (rtl28xuu, fc2580, ov7670,
  davinci, gspca, s5p-fimc and s5c73m3).

  There is also a compat32 fix and one infoleak fixup at the media
  controller"

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
  [media] V4L2: fix VIDIOC_CREATE_BUFS in 64- / 32-bit compatibility mode
  [media] V4L2: ov7670: fix a wrong index, potentially Oopsing the kernel from user-space
  [media] media-device: fix infoleak in ioctl media_enum_entities()
  [media] fc2580: fix tuning failure on 32-bit arch
  [media] Prefer gspca_sonixb over sn9c102 for all devices
  [media] media: davinci: vpfe: make sure all the buffers unmapped and released
  [media] staging: media: davinci: vpfe: make sure all the buffers are released
  [media] media: davinci: vpbe_display: fix releasing of active buffers
  [media] media: davinci: vpif_display: fix releasing of active buffers
  [media] media: davinci: vpif_capture: fix releasing of active buffers
  [media] s5p-fimc: Fix YUV422P depth
  [media] s5c73m3: Add missing rename of v4l2_of_get_next_endpoint() function
  [media] rtl28xxu: silence error log about disabled rtl2832_sdr module
  [media] rtl28xxu: do not hard depend on staging SDR module
</pre>
</div>
</content>
</entry>
<entry>
<title>platform: Fix timberdale dependencies</title>
<updated>2014-04-16T06:27:27+00:00</updated>
<author>
<name>Jean Delvare</name>
<email>jdelvare@suse.de</email>
</author>
<published>2014-04-03T09:32:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=2dda47d1a416750bf69eb11dd9b6607d18287b0c'/>
<id>2dda47d1a416750bf69eb11dd9b6607d18287b0c</id>
<content type='text'>
VIDEO_TIMBERDALE selects TIMB_DMA which itself depends on
MFD_TIMBERDALE, so VIDEO_TIMBERDALE should either select or depend on
MFD_TIMBERDALE as well. I chose to make it depend on it because I
think it makes more sense and it is consistent with what other options
are doing.

Adding a "|| HAS_IOMEM" to the TIMB_DMA dependencies silenced the
kconfig warning about unmet direct dependencies but it was wrong:
without MFD_TIMBERDALE, TIMB_DMA is useless as the driver has no
device to bind to.

Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Cc: Vinod Koul &lt;vinod.koul@intel.com&gt;
Cc: Dan Williams &lt;dan.j.williams@intel.com&gt;
Cc: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
VIDEO_TIMBERDALE selects TIMB_DMA which itself depends on
MFD_TIMBERDALE, so VIDEO_TIMBERDALE should either select or depend on
MFD_TIMBERDALE as well. I chose to make it depend on it because I
think it makes more sense and it is consistent with what other options
are doing.

Adding a "|| HAS_IOMEM" to the TIMB_DMA dependencies silenced the
kconfig warning about unmet direct dependencies but it was wrong:
without MFD_TIMBERDALE, TIMB_DMA is useless as the driver has no
device to bind to.

Signed-off-by: Jean Delvare &lt;jdelvare@suse.de&gt;
Cc: Vinod Koul &lt;vinod.koul@intel.com&gt;
Cc: Dan Williams &lt;dan.j.williams@intel.com&gt;
Cc: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
Signed-off-by: Vinod Koul &lt;vinod.koul@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] media: davinci: vpfe: make sure all the buffers unmapped and released</title>
<updated>2014-04-15T12:54:38+00:00</updated>
<author>
<name>Lad, Prabhakar</name>
<email>prabhakar.csengg@gmail.com</email>
</author>
<published>2014-03-23T05:44:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=c1d1e40b8bbd712d6a8c74d8278178c8448b7abc'/>
<id>c1d1e40b8bbd712d6a8c74d8278178c8448b7abc</id>
<content type='text'>
this patch makes sure that it terminates if any IO in
progress and also makes sure that all the buffers are unmapped.
It was observed that with several runs of application the application
sometimes failed to allocate memory, This patch makes sure it
all the buffers are released.

Using kmemleak it was found that buffer were not released, this patch
fixes following issue,

 echo scan &gt; /sys/kernel/debug/kmemleak
  Kernel message reads:
      memleak: 3 new suspected memory leaks (see /sys/kernel/debug/kmemleak)

Then,
     cat /sys/kernel/debug/kmemleak

  unreferenced object 0xc564a480 (size 192):
  comm "mttest", pid 764, jiffies 4294945878 (age 487.160s)
  hex dump (first 32 bytes):
    00 00 00 00 28 07 07 20 d0 02 00 00 e0 01 00 00  ....(.. ........
    00 00 00 00 00 64 05 00 01 00 00 00 01 00 00 00  .....d..........
  backtrace:
    [&lt;c00a98dc&gt;] create_object+0x10c/0x28c
    [&lt;c03ba8ec&gt;] kmemleak_alloc+0x3c/0x70
    [&lt;c00a67c0&gt;] __kmalloc+0x11c/0x1d4
    [&lt;c02b6f48&gt;] __videobuf_alloc+0x1c/0x3c
    [&lt;c02b6194&gt;] videobuf_alloc_vb+0x38/0x80
    [&lt;c02b6638&gt;] __videobuf_mmap_setup+0x9c/0x108
    [&lt;c02b6da0&gt;] videobuf_reqbufs.part.10+0x12c/0x1bc
    [&lt;c02b6e9c&gt;] videobuf_reqbufs+0x6c/0x8c
    [&lt;c02be2c4&gt;] vpfe_reqbufs+0xcc/0x130
    [&lt;c02aae90&gt;] v4l_reqbufs+0x50/0x54
    [&lt;c02aab54&gt;] __video_do_ioctl+0x260/0x2c4
    [&lt;c02a9dd4&gt;] video_usercopy+0xf0/0x310
    [&lt;c02aa008&gt;] video_ioctl2+0x14/0x1c
    [&lt;c02a562c&gt;] v4l2_ioctl+0x104/0x14c
    [&lt;c00bd320&gt;] do_vfs_ioctl+0x80/0x2d0
    [&lt;c00bd5b4&gt;] SyS_ioctl+0x44/0x64
unreferenced object 0xc564ac00 (size 192):
  comm "mttest", pid 764, jiffies 4294945878 (age 487.160s)
  hex dump (first 32 bytes):
    01 00 00 00 28 07 07 20 d0 02 00 00 e0 01 00 00  ....(.. ........
    00 00 00 00 00 64 05 00 01 00 00 00 01 00 00 00  .....d..........
  backtrace:
    [&lt;c00a98dc&gt;] create_object+0x10c/0x28c
    [&lt;c03ba8ec&gt;] kmemleak_alloc+0x3c/0x70
    [&lt;c00a67c0&gt;] __kmalloc+0x11c/0x1d4
    [&lt;c02b6f48&gt;] __videobuf_alloc+0x1c/0x3c
    [&lt;c02b6194&gt;] videobuf_alloc_vb+0x38/0x80
    [&lt;c02b6638&gt;] __videobuf_mmap_setup+0x9c/0x108
    [&lt;c02b6da0&gt;] videobuf_reqbufs.part.10+0x12c/0x1bc
    [&lt;c02b6e9c&gt;] videobuf_reqbufs+0x6c/0x8c
    [&lt;c02be2c4&gt;] vpfe_reqbufs+0xcc/0x130
    [&lt;c02aae90&gt;] v4l_reqbufs+0x50/0x54
    [&lt;c02aab54&gt;] __video_do_ioctl+0x260/0x2c4
    [&lt;c02a9dd4&gt;] video_usercopy+0xf0/0x310
    [&lt;c02aa008&gt;] video_ioctl2+0x14/0x1c
    [&lt;c02a562c&gt;] v4l2_ioctl+0x104/0x14c
    [&lt;c00bd320&gt;] do_vfs_ioctl+0x80/0x2d0
    [&lt;c00bd5b4&gt;] SyS_ioctl+0x44/0x64
unreferenced object 0xc564a180 (size 192):
  comm "mttest", pid 764, jiffies 4294945880 (age 487.140s)
  hex dump (first 32 bytes):
    02 00 00 00 28 07 07 20 d0 02 00 00 e0 01 00 00  ....(.. ........
    00 00 00 00 00 64 05 00 01 00 00 00 01 00 00 00  .....d..........
  backtrace:
    [&lt;c00a98dc&gt;] create_object+0x10c/0x28c
    [&lt;c03ba8ec&gt;] kmemleak_alloc+0x3c/0x70
    [&lt;c00a67c0&gt;] __kmalloc+0x11c/0x1d4
    [&lt;c02b6f48&gt;] __videobuf_alloc+0x1c/0x3c
    [&lt;c02b6194&gt;] videobuf_alloc_vb+0x38/0x80
    [&lt;c02b6638&gt;] __videobuf_mmap_setup+0x9c/0x108
    [&lt;c02b6da0&gt;] videobuf_reqbufs.part.10+0x12c/0x1bc
    [&lt;c02b6e9c&gt;] videobuf_reqbufs+0x6c/0x8c
    [&lt;c02be2c4&gt;] vpfe_reqbufs+0xcc/0x130
    [&lt;c02aae90&gt;] v4l_reqbufs+0x50/0x54
    [&lt;c02aab54&gt;] __video_do_ioctl+0x260/0x2c4
    [&lt;c02a9dd4&gt;] video_usercopy+0xf0/0x310
    [&lt;c02aa008&gt;] video_ioctl2+0x14/0x1c
    [&lt;c02a562c&gt;] v4l2_ioctl+0x104/0x14c
    [&lt;c00bd320&gt;] do_vfs_ioctl+0x80/0x2d0
    [&lt;c00bd5b4&gt;] SyS_ioctl+0x44/0x64

Reported-by: Jimmy Ho &lt;jimmygge@gmail.com&gt;
Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this patch makes sure that it terminates if any IO in
progress and also makes sure that all the buffers are unmapped.
It was observed that with several runs of application the application
sometimes failed to allocate memory, This patch makes sure it
all the buffers are released.

Using kmemleak it was found that buffer were not released, this patch
fixes following issue,

 echo scan &gt; /sys/kernel/debug/kmemleak
  Kernel message reads:
      memleak: 3 new suspected memory leaks (see /sys/kernel/debug/kmemleak)

Then,
     cat /sys/kernel/debug/kmemleak

  unreferenced object 0xc564a480 (size 192):
  comm "mttest", pid 764, jiffies 4294945878 (age 487.160s)
  hex dump (first 32 bytes):
    00 00 00 00 28 07 07 20 d0 02 00 00 e0 01 00 00  ....(.. ........
    00 00 00 00 00 64 05 00 01 00 00 00 01 00 00 00  .....d..........
  backtrace:
    [&lt;c00a98dc&gt;] create_object+0x10c/0x28c
    [&lt;c03ba8ec&gt;] kmemleak_alloc+0x3c/0x70
    [&lt;c00a67c0&gt;] __kmalloc+0x11c/0x1d4
    [&lt;c02b6f48&gt;] __videobuf_alloc+0x1c/0x3c
    [&lt;c02b6194&gt;] videobuf_alloc_vb+0x38/0x80
    [&lt;c02b6638&gt;] __videobuf_mmap_setup+0x9c/0x108
    [&lt;c02b6da0&gt;] videobuf_reqbufs.part.10+0x12c/0x1bc
    [&lt;c02b6e9c&gt;] videobuf_reqbufs+0x6c/0x8c
    [&lt;c02be2c4&gt;] vpfe_reqbufs+0xcc/0x130
    [&lt;c02aae90&gt;] v4l_reqbufs+0x50/0x54
    [&lt;c02aab54&gt;] __video_do_ioctl+0x260/0x2c4
    [&lt;c02a9dd4&gt;] video_usercopy+0xf0/0x310
    [&lt;c02aa008&gt;] video_ioctl2+0x14/0x1c
    [&lt;c02a562c&gt;] v4l2_ioctl+0x104/0x14c
    [&lt;c00bd320&gt;] do_vfs_ioctl+0x80/0x2d0
    [&lt;c00bd5b4&gt;] SyS_ioctl+0x44/0x64
unreferenced object 0xc564ac00 (size 192):
  comm "mttest", pid 764, jiffies 4294945878 (age 487.160s)
  hex dump (first 32 bytes):
    01 00 00 00 28 07 07 20 d0 02 00 00 e0 01 00 00  ....(.. ........
    00 00 00 00 00 64 05 00 01 00 00 00 01 00 00 00  .....d..........
  backtrace:
    [&lt;c00a98dc&gt;] create_object+0x10c/0x28c
    [&lt;c03ba8ec&gt;] kmemleak_alloc+0x3c/0x70
    [&lt;c00a67c0&gt;] __kmalloc+0x11c/0x1d4
    [&lt;c02b6f48&gt;] __videobuf_alloc+0x1c/0x3c
    [&lt;c02b6194&gt;] videobuf_alloc_vb+0x38/0x80
    [&lt;c02b6638&gt;] __videobuf_mmap_setup+0x9c/0x108
    [&lt;c02b6da0&gt;] videobuf_reqbufs.part.10+0x12c/0x1bc
    [&lt;c02b6e9c&gt;] videobuf_reqbufs+0x6c/0x8c
    [&lt;c02be2c4&gt;] vpfe_reqbufs+0xcc/0x130
    [&lt;c02aae90&gt;] v4l_reqbufs+0x50/0x54
    [&lt;c02aab54&gt;] __video_do_ioctl+0x260/0x2c4
    [&lt;c02a9dd4&gt;] video_usercopy+0xf0/0x310
    [&lt;c02aa008&gt;] video_ioctl2+0x14/0x1c
    [&lt;c02a562c&gt;] v4l2_ioctl+0x104/0x14c
    [&lt;c00bd320&gt;] do_vfs_ioctl+0x80/0x2d0
    [&lt;c00bd5b4&gt;] SyS_ioctl+0x44/0x64
unreferenced object 0xc564a180 (size 192):
  comm "mttest", pid 764, jiffies 4294945880 (age 487.140s)
  hex dump (first 32 bytes):
    02 00 00 00 28 07 07 20 d0 02 00 00 e0 01 00 00  ....(.. ........
    00 00 00 00 00 64 05 00 01 00 00 00 01 00 00 00  .....d..........
  backtrace:
    [&lt;c00a98dc&gt;] create_object+0x10c/0x28c
    [&lt;c03ba8ec&gt;] kmemleak_alloc+0x3c/0x70
    [&lt;c00a67c0&gt;] __kmalloc+0x11c/0x1d4
    [&lt;c02b6f48&gt;] __videobuf_alloc+0x1c/0x3c
    [&lt;c02b6194&gt;] videobuf_alloc_vb+0x38/0x80
    [&lt;c02b6638&gt;] __videobuf_mmap_setup+0x9c/0x108
    [&lt;c02b6da0&gt;] videobuf_reqbufs.part.10+0x12c/0x1bc
    [&lt;c02b6e9c&gt;] videobuf_reqbufs+0x6c/0x8c
    [&lt;c02be2c4&gt;] vpfe_reqbufs+0xcc/0x130
    [&lt;c02aae90&gt;] v4l_reqbufs+0x50/0x54
    [&lt;c02aab54&gt;] __video_do_ioctl+0x260/0x2c4
    [&lt;c02a9dd4&gt;] video_usercopy+0xf0/0x310
    [&lt;c02aa008&gt;] video_ioctl2+0x14/0x1c
    [&lt;c02a562c&gt;] v4l2_ioctl+0x104/0x14c
    [&lt;c00bd320&gt;] do_vfs_ioctl+0x80/0x2d0
    [&lt;c00bd5b4&gt;] SyS_ioctl+0x44/0x64

Reported-by: Jimmy Ho &lt;jimmygge@gmail.com&gt;
Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] media: davinci: vpbe_display: fix releasing of active buffers</title>
<updated>2014-04-15T12:50:56+00:00</updated>
<author>
<name>Lad, Prabhakar</name>
<email>prabhakar.csengg@gmail.com</email>
</author>
<published>2014-03-22T11:03:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=b699f09d0d003cc1622aec30d81f3158da6790aa'/>
<id>b699f09d0d003cc1622aec30d81f3158da6790aa</id>
<content type='text'>
from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4
"vb2: only call start_streaming if sufficient buffers are queued"
the vb2 framework warns on (WARN_ON()) if all the active buffers
are not released when streaming is stopped, initially the vb2 silently
released the buffer internally if the buffer was not released by
the driver.
This patch fixes following issue:

WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:2011 __vb2_queue_cancel+0x1a0/0x218()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpbe_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252e0c&gt;] (__vb2_queue_cancel+0x1a0/0x218)
[&lt;c0252e0c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpbe_display_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpbe_display_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a1 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:1095 vb2_buffer_done+0x1e0/0x224()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpbe_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252c28&gt;] (vb2_buffer_done+0x1e0/0x224)
[&lt;c0252c28&gt;] (vb2_buffer_done) from [&lt;c0252e3c&gt;] (__vb2_queue_cancel+0x1d0/0x218)
[&lt;c0252e3c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpbe_display_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpbe_display_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a2 ]---

Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4
"vb2: only call start_streaming if sufficient buffers are queued"
the vb2 framework warns on (WARN_ON()) if all the active buffers
are not released when streaming is stopped, initially the vb2 silently
released the buffer internally if the buffer was not released by
the driver.
This patch fixes following issue:

WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:2011 __vb2_queue_cancel+0x1a0/0x218()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpbe_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252e0c&gt;] (__vb2_queue_cancel+0x1a0/0x218)
[&lt;c0252e0c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpbe_display_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpbe_display_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a1 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:1095 vb2_buffer_done+0x1e0/0x224()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpbe_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252c28&gt;] (vb2_buffer_done+0x1e0/0x224)
[&lt;c0252c28&gt;] (vb2_buffer_done) from [&lt;c0252e3c&gt;] (__vb2_queue_cancel+0x1d0/0x218)
[&lt;c0252e3c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpbe_display_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpbe_display_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a2 ]---

Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] media: davinci: vpif_display: fix releasing of active buffers</title>
<updated>2014-04-15T12:50:46+00:00</updated>
<author>
<name>Lad, Prabhakar</name>
<email>prabhakar.csengg@gmail.com</email>
</author>
<published>2014-03-22T11:03:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=18c7adcf2c1abf7f554a52f57bee126995791748'/>
<id>18c7adcf2c1abf7f554a52f57bee126995791748</id>
<content type='text'>
from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4
"vb2: only call start_streaming if sufficient buffers are queued"
the vb2 framework warns on (WARN_ON()) if all the active buffers
are not released when streaming is stopped, initially the vb2 silently
released the buffer internally if the buffer was not released by
the driver.
Also this patch moves the disabling of interrupts from relase() callback
to stop_streaming() callback as which needs to be done ideally.

This patch fixes following issue:

WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:2011 __vb2_queue_cancel+0x1a0/0x218()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252e0c&gt;] (__vb2_queue_cancel+0x1a0/0x218)
[&lt;c0252e0c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a1 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:1095 vb2_buffer_done+0x1e0/0x224()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252c28&gt;] (vb2_buffer_done+0x1e0/0x224)
[&lt;c0252c28&gt;] (vb2_buffer_done) from [&lt;c0252e3c&gt;] (__vb2_queue_cancel+0x1d0/0x218)
[&lt;c0252e3c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a2 ]---

Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4
"vb2: only call start_streaming if sufficient buffers are queued"
the vb2 framework warns on (WARN_ON()) if all the active buffers
are not released when streaming is stopped, initially the vb2 silently
released the buffer internally if the buffer was not released by
the driver.
Also this patch moves the disabling of interrupts from relase() callback
to stop_streaming() callback as which needs to be done ideally.

This patch fixes following issue:

WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:2011 __vb2_queue_cancel+0x1a0/0x218()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252e0c&gt;] (__vb2_queue_cancel+0x1a0/0x218)
[&lt;c0252e0c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a1 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:1095 vb2_buffer_done+0x1e0/0x224()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_display Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252c28&gt;] (vb2_buffer_done+0x1e0/0x224)
[&lt;c0252c28&gt;] (vb2_buffer_done) from [&lt;c0252e3c&gt;] (__vb2_queue_cancel+0x1d0/0x218)
[&lt;c0252e3c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a2 ]---

Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] media: davinci: vpif_capture: fix releasing of active buffers</title>
<updated>2014-04-15T12:50:32+00:00</updated>
<author>
<name>Lad, Prabhakar</name>
<email>prabhakar.csengg@gmail.com</email>
</author>
<published>2014-03-22T11:03:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=e6ba3db1049548df10f90234328441b2873a4bd3'/>
<id>e6ba3db1049548df10f90234328441b2873a4bd3</id>
<content type='text'>
from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4
"vb2: only call start_streaming if sufficient buffers are queued"
the vb2 framework warns on (WARN_ON()) if all the active buffers
are not released when streaming is stopped, initially the vb2 silently
released the buffer internally if the buffer was not released by
the driver.
Also this patch moves the disabling of interrupts from relase() callback
to stop_streaming() callback as which needs to be done ideally.

This patch fixes following issue:

WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:2011 __vb2_queue_cancel+0x1a0/0x218()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_capture Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252e0c&gt;] (__vb2_queue_cancel+0x1a0/0x218)
[&lt;c0252e0c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a1 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:1095 vb2_buffer_done+0x1e0/0x224()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_capture Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252c28&gt;] (vb2_buffer_done+0x1e0/0x224)
[&lt;c0252c28&gt;] (vb2_buffer_done) from [&lt;c0252e3c&gt;] (__vb2_queue_cancel+0x1d0/0x218)
[&lt;c0252e3c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a2 ]---

Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4
"vb2: only call start_streaming if sufficient buffers are queued"
the vb2 framework warns on (WARN_ON()) if all the active buffers
are not released when streaming is stopped, initially the vb2 silently
released the buffer internally if the buffer was not released by
the driver.
Also this patch moves the disabling of interrupts from relase() callback
to stop_streaming() callback as which needs to be done ideally.

This patch fixes following issue:

WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:2011 __vb2_queue_cancel+0x1a0/0x218()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_capture Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252e0c&gt;] (__vb2_queue_cancel+0x1a0/0x218)
[&lt;c0252e0c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a1 ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2049 at drivers/media/v4l2-core/videobuf2-core.c:1095 vb2_buffer_done+0x1e0/0x224()
Modules linked in:
CPU: 0 PID: 2049 Comm: vpif_capture Tainted: G        W    3.14.0-rc5-00414-ged97a6f #89
[&lt;c000e3f0&gt;] (unwind_backtrace) from [&lt;c000c618&gt;] (show_stack+0x10/0x14)
[&lt;c000c618&gt;] (show_stack) from [&lt;c001adb0&gt;] (warn_slowpath_common+0x68/0x88)
[&lt;c001adb0&gt;] (warn_slowpath_common) from [&lt;c001adec&gt;] (warn_slowpath_null+0x1c/0x24)
[&lt;c001adec&gt;] (warn_slowpath_null) from [&lt;c0252c28&gt;] (vb2_buffer_done+0x1e0/0x224)
[&lt;c0252c28&gt;] (vb2_buffer_done) from [&lt;c0252e3c&gt;] (__vb2_queue_cancel+0x1d0/0x218)
[&lt;c0252e3c&gt;] (__vb2_queue_cancel) from [&lt;c02533a4&gt;] (vb2_queue_release+0x14/0x24)
[&lt;c02533a4&gt;] (vb2_queue_release) from [&lt;c025a65c&gt;] (vpif_release+0x60/0x230)
[&lt;c025a65c&gt;] (vpif_release) from [&lt;c023fe5c&gt;] (v4l2_release+0x34/0x74)
[&lt;c023fe5c&gt;] (v4l2_release) from [&lt;c00b4a00&gt;] (__fput+0x80/0x224)
[&lt;c00b4a00&gt;] (__fput) from [&lt;c00341e8&gt;] (task_work_run+0xa0/0xd0)
[&lt;c00341e8&gt;] (task_work_run) from [&lt;c001cc28&gt;] (do_exit+0x244/0x918)
[&lt;c001cc28&gt;] (do_exit) from [&lt;c001d344&gt;] (do_group_exit+0x48/0xdc)
[&lt;c001d344&gt;] (do_group_exit) from [&lt;c0029894&gt;] (get_signal_to_deliver+0x2a0/0x5bc)
[&lt;c0029894&gt;] (get_signal_to_deliver) from [&lt;c000b888&gt;] (do_signal+0x78/0x3a0)
[&lt;c000b888&gt;] (do_signal) from [&lt;c000bc54&gt;] (do_work_pending+0xa4/0xb4)
[&lt;c000bc54&gt;] (do_work_pending) from [&lt;c00096dc&gt;] (work_pending+0xc/0x20)
---[ end trace 5faa75e8c2f8a6a2 ]---

Signed-off-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] s5p-fimc: Fix YUV422P depth</title>
<updated>2014-04-15T12:50:06+00:00</updated>
<author>
<name>Nicolas Dufresne</name>
<email>nicolas.dufresne@collabora.com</email>
</author>
<published>2014-03-25T20:50:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=e3fadbdf1cbac7164aaefae5fb331cba86255c46'/>
<id>e3fadbdf1cbac7164aaefae5fb331cba86255c46</id>
<content type='text'>
All YUV 422 has 16bit per pixels.

Signed-off-by: Nicolas Dufresne &lt;nicolas.dufresne@collabora.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All YUV 422 has 16bit per pixels.

Signed-off-by: Nicolas Dufresne &lt;nicolas.dufresne@collabora.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] v4l: ti-vpe: retain v4l2_buffer flags for captured buffers</title>
<updated>2014-04-07T12:44:25+00:00</updated>
<author>
<name>Archit Taneja</name>
<email>archit@ti.com</email>
</author>
<published>2014-03-11T07:47:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=bbe24c6759b341ab2504318e50ccd5482f5e6002'/>
<id>bbe24c6759b341ab2504318e50ccd5482f5e6002</id>
<content type='text'>
The dequed CAPTURE_MPLANE type buffers don't contain the flags that the
originally queued OUTPUT_MPLANE type buffers have. This breaks compliance.

Copy the source v4l2_buffer flags to the destination v4l2_buffer flags before
they are dequed.

Reviewed-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Archit Taneja &lt;archit@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The dequed CAPTURE_MPLANE type buffers don't contain the flags that the
originally queued OUTPUT_MPLANE type buffers have. This breaks compliance.

Copy the source v4l2_buffer flags to the destination v4l2_buffer flags before
they are dequed.

Reviewed-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Archit Taneja &lt;archit@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] v4l: ti-vpe: Set correct field parameter for output and capture buffers</title>
<updated>2014-04-07T12:43:51+00:00</updated>
<author>
<name>Archit Taneja</name>
<email>archit@ti.com</email>
</author>
<published>2014-03-10T06:24:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=5269fef77e14c22b1fde44bc0973a18cf233f778'/>
<id>5269fef77e14c22b1fde44bc0973a18cf233f778</id>
<content type='text'>
The vpe driver wasn't setting the correct field parameter for dequed CAPTURE
type buffers for the case where the captured output is progressive.

Set the field to V4L2_FIELD_NONE for the completed destination buffers when
the captured output is progressive.

For OUTPUT type buffers, a queued buffer's field is forced to V4L2_FIELD_NONE
if the pixel format(configured through s_fmt for the buffer type
V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE specifies) the field type isn't interlaced.
If the pixel format specified was V4L2_FIELD_ALTERNATE, and the queued buffer's
field isn't V4L2_FIELD_TOP or V4L2_FIELD_BOTTOM, the vb2 buf_prepare op returns
an error.

This ensures compliance, and that the dequeued output and captured buffers
contain the field type that the driver used internally.

Signed-off-by: Archit Taneja &lt;archit@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The vpe driver wasn't setting the correct field parameter for dequed CAPTURE
type buffers for the case where the captured output is progressive.

Set the field to V4L2_FIELD_NONE for the completed destination buffers when
the captured output is progressive.

For OUTPUT type buffers, a queued buffer's field is forced to V4L2_FIELD_NONE
if the pixel format(configured through s_fmt for the buffer type
V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE specifies) the field type isn't interlaced.
If the pixel format specified was V4L2_FIELD_ALTERNATE, and the queued buffer's
field isn't V4L2_FIELD_TOP or V4L2_FIELD_BOTTOM, the vb2 buf_prepare op returns
an error.

This ensures compliance, and that the dequeued output and captured buffers
contain the field type that the driver used internally.

Signed-off-by: Archit Taneja &lt;archit@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[media] v4l: ti-vpe: zero out reserved fields in try_fmt</title>
<updated>2014-04-07T12:43:32+00:00</updated>
<author>
<name>Archit Taneja</name>
<email>archit@ti.com</email>
</author>
<published>2014-03-10T07:19:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=92851f1cdbd082eb993847e1c4468f7de08765bb'/>
<id>92851f1cdbd082eb993847e1c4468f7de08765bb</id>
<content type='text'>
Zero out the reserved formats in v4l2_pix_format_mplane and
v4l2_plane_pix_format members of the returned v4l2_format pointer when passed
through TRY_FMT ioctl.

This ensures that the user doesn't interpret the non-zero fields as some data
passed by the driver, and ensures compliance.

Reviewed-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Archit Taneja &lt;archit@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Zero out the reserved formats in v4l2_pix_format_mplane and
v4l2_plane_pix_format members of the returned v4l2_format pointer when passed
through TRY_FMT ioctl.

This ensures that the user doesn't interpret the non-zero fields as some data
passed by the driver, and ensures compliance.

Reviewed-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Archit Taneja &lt;archit@ti.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;m.chehab@samsung.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
