1. 16 Apr, 2014 16 commits
  2. 15 Apr, 2014 11 commits
    • Robert Butora's avatar
      [media] media/usb/gspca: Add support for Scopium astro webcam (0547:7303) · 30ece903
      Robert Butora authored
      This patch does not modify existing drivers. It adds subdriver
      to gspca for DTCS033 (Scopium) webcam for astrophotography.
      The patch adds dtcs033.c and modifies Kconfig and Makefile.
      Signed-off-by: default avatarRobert Butora <robert.butora.fi@gmail.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      30ece903
    • Jean Delvare's avatar
      [media] Prefer gspca_sonixb over sn9c102 for all devices · 877ed143
      Jean Delvare authored
      The sn9c102 driver is deprecated. It was moved to staging in
      anticipation of its removal in a future kernel version. However, USB
      devices 0C45:6024 and 0C45:6025 are still handled by sn9c102 when
      both sn9c102 and gspca_sonixb are enabled.
      
      We must migrate all the users of these devices to the gspca_sonixb
      driver now, so that it gets sufficient testing before the sn9c102
      driver is finally phased out.
      Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
      Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      877ed143
    • Lad, Prabhakar's avatar
      [media] media: davinci: vpfe: make sure all the buffers unmapped and released · c1d1e40b
      Lad, Prabhakar authored
      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 > /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:
          [<c00a98dc>] create_object+0x10c/0x28c
          [<c03ba8ec>] kmemleak_alloc+0x3c/0x70
          [<c00a67c0>] __kmalloc+0x11c/0x1d4
          [<c02b6f48>] __videobuf_alloc+0x1c/0x3c
          [<c02b6194>] videobuf_alloc_vb+0x38/0x80
          [<c02b6638>] __videobuf_mmap_setup+0x9c/0x108
          [<c02b6da0>] videobuf_reqbufs.part.10+0x12c/0x1bc
          [<c02b6e9c>] videobuf_reqbufs+0x6c/0x8c
          [<c02be2c4>] vpfe_reqbufs+0xcc/0x130
          [<c02aae90>] v4l_reqbufs+0x50/0x54
          [<c02aab54>] __video_do_ioctl+0x260/0x2c4
          [<c02a9dd4>] video_usercopy+0xf0/0x310
          [<c02aa008>] video_ioctl2+0x14/0x1c
          [<c02a562c>] v4l2_ioctl+0x104/0x14c
          [<c00bd320>] do_vfs_ioctl+0x80/0x2d0
          [<c00bd5b4>] 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:
          [<c00a98dc>] create_object+0x10c/0x28c
          [<c03ba8ec>] kmemleak_alloc+0x3c/0x70
          [<c00a67c0>] __kmalloc+0x11c/0x1d4
          [<c02b6f48>] __videobuf_alloc+0x1c/0x3c
          [<c02b6194>] videobuf_alloc_vb+0x38/0x80
          [<c02b6638>] __videobuf_mmap_setup+0x9c/0x108
          [<c02b6da0>] videobuf_reqbufs.part.10+0x12c/0x1bc
          [<c02b6e9c>] videobuf_reqbufs+0x6c/0x8c
          [<c02be2c4>] vpfe_reqbufs+0xcc/0x130
          [<c02aae90>] v4l_reqbufs+0x50/0x54
          [<c02aab54>] __video_do_ioctl+0x260/0x2c4
          [<c02a9dd4>] video_usercopy+0xf0/0x310
          [<c02aa008>] video_ioctl2+0x14/0x1c
          [<c02a562c>] v4l2_ioctl+0x104/0x14c
          [<c00bd320>] do_vfs_ioctl+0x80/0x2d0
          [<c00bd5b4>] 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:
          [<c00a98dc>] create_object+0x10c/0x28c
          [<c03ba8ec>] kmemleak_alloc+0x3c/0x70
          [<c00a67c0>] __kmalloc+0x11c/0x1d4
          [<c02b6f48>] __videobuf_alloc+0x1c/0x3c
          [<c02b6194>] videobuf_alloc_vb+0x38/0x80
          [<c02b6638>] __videobuf_mmap_setup+0x9c/0x108
          [<c02b6da0>] videobuf_reqbufs.part.10+0x12c/0x1bc
          [<c02b6e9c>] videobuf_reqbufs+0x6c/0x8c
          [<c02be2c4>] vpfe_reqbufs+0xcc/0x130
          [<c02aae90>] v4l_reqbufs+0x50/0x54
          [<c02aab54>] __video_do_ioctl+0x260/0x2c4
          [<c02a9dd4>] video_usercopy+0xf0/0x310
          [<c02aa008>] video_ioctl2+0x14/0x1c
          [<c02a562c>] v4l2_ioctl+0x104/0x14c
          [<c00bd320>] do_vfs_ioctl+0x80/0x2d0
          [<c00bd5b4>] SyS_ioctl+0x44/0x64
      Reported-by: default avatarJimmy Ho <jimmygge@gmail.com>
      Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      c1d1e40b
    • Lad, Prabhakar's avatar
      [media] staging: media: davinci: vpfe: make sure all the buffers are released · d891ae5e
      Lad, Prabhakar authored
      from commit-id: b3379c62
      "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: vpfe_video Tainted: G        W    3.14.0-rc5-00414-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252e0c>] (__vb2_queue_cancel+0x1a0/0x218)
      [<c0252e0c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpfe_release+0x60/0x230)
      [<c025a65c>] (vpfe_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (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: vpfe_video Tainted: G        W    3.14.0-rc5-00414-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252c28>] (vb2_buffer_done+0x1e0/0x224)
      [<c0252c28>] (vb2_buffer_done) from [<c0252e3c>] (__vb2_queue_cancel+0x1d0/0x218)
      [<c0252e3c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpfe_release+0x60/0x230)
      [<c025a65c>] (vpfe_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (work_pending+0xc/0x20)
      ---[ end trace 5faa75e8c2f8a6a2 ]---
      Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      d891ae5e
    • Lad, Prabhakar's avatar
      [media] media: davinci: vpbe_display: fix releasing of active buffers · b699f09d
      Lad, Prabhakar authored
      from commit-id: b3379c62
      "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-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252e0c>] (__vb2_queue_cancel+0x1a0/0x218)
      [<c0252e0c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpbe_display_release+0x60/0x230)
      [<c025a65c>] (vpbe_display_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (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-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252c28>] (vb2_buffer_done+0x1e0/0x224)
      [<c0252c28>] (vb2_buffer_done) from [<c0252e3c>] (__vb2_queue_cancel+0x1d0/0x218)
      [<c0252e3c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpbe_display_release+0x60/0x230)
      [<c025a65c>] (vpbe_display_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (work_pending+0xc/0x20)
      ---[ end trace 5faa75e8c2f8a6a2 ]---
      Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      b699f09d
    • Lad, Prabhakar's avatar
      [media] media: davinci: vpif_display: fix releasing of active buffers · 18c7adcf
      Lad, Prabhakar authored
      from commit-id: b3379c62
      "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-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252e0c>] (__vb2_queue_cancel+0x1a0/0x218)
      [<c0252e0c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpif_release+0x60/0x230)
      [<c025a65c>] (vpif_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (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-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252c28>] (vb2_buffer_done+0x1e0/0x224)
      [<c0252c28>] (vb2_buffer_done) from [<c0252e3c>] (__vb2_queue_cancel+0x1d0/0x218)
      [<c0252e3c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpif_release+0x60/0x230)
      [<c025a65c>] (vpif_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (work_pending+0xc/0x20)
      ---[ end trace 5faa75e8c2f8a6a2 ]---
      Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      18c7adcf
    • Lad, Prabhakar's avatar
      [media] media: davinci: vpif_capture: fix releasing of active buffers · e6ba3db1
      Lad, Prabhakar authored
      from commit-id: b3379c62
      "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-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252e0c>] (__vb2_queue_cancel+0x1a0/0x218)
      [<c0252e0c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpif_release+0x60/0x230)
      [<c025a65c>] (vpif_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (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-ged97a6fe #89
      [<c000e3f0>] (unwind_backtrace) from [<c000c618>] (show_stack+0x10/0x14)
      [<c000c618>] (show_stack) from [<c001adb0>] (warn_slowpath_common+0x68/0x88)
      [<c001adb0>] (warn_slowpath_common) from [<c001adec>] (warn_slowpath_null+0x1c/0x24)
      [<c001adec>] (warn_slowpath_null) from [<c0252c28>] (vb2_buffer_done+0x1e0/0x224)
      [<c0252c28>] (vb2_buffer_done) from [<c0252e3c>] (__vb2_queue_cancel+0x1d0/0x218)
      [<c0252e3c>] (__vb2_queue_cancel) from [<c02533a4>] (vb2_queue_release+0x14/0x24)
      [<c02533a4>] (vb2_queue_release) from [<c025a65c>] (vpif_release+0x60/0x230)
      [<c025a65c>] (vpif_release) from [<c023fe5c>] (v4l2_release+0x34/0x74)
      [<c023fe5c>] (v4l2_release) from [<c00b4a00>] (__fput+0x80/0x224)
      [<c00b4a00>] (__fput) from [<c00341e8>] (task_work_run+0xa0/0xd0)
      [<c00341e8>] (task_work_run) from [<c001cc28>] (do_exit+0x244/0x918)
      [<c001cc28>] (do_exit) from [<c001d344>] (do_group_exit+0x48/0xdc)
      [<c001d344>] (do_group_exit) from [<c0029894>] (get_signal_to_deliver+0x2a0/0x5bc)
      [<c0029894>] (get_signal_to_deliver) from [<c000b888>] (do_signal+0x78/0x3a0)
      [<c000b888>] (do_signal) from [<c000bc54>] (do_work_pending+0xa4/0xb4)
      [<c000bc54>] (do_work_pending) from [<c00096dc>] (work_pending+0xc/0x20)
      ---[ end trace 5faa75e8c2f8a6a2 ]---
      Signed-off-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      e6ba3db1
    • Nicolas Dufresne's avatar
      [media] s5p-fimc: Fix YUV422P depth · e3fadbdf
      Nicolas Dufresne authored
      All YUV 422 has 16bit per pixels.
      Signed-off-by: default avatarNicolas Dufresne <nicolas.dufresne@collabora.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      e3fadbdf
    • Sylwester Nawrocki's avatar
      [media] s5c73m3: Add missing rename of v4l2_of_get_next_endpoint() function · 41f484d1
      Sylwester Nawrocki authored
      This fixes following build error:
      
        CC      drivers/media/i2c/s5c73m3/s5c73m3-core.o
        CC      drivers/md/dm-ioctl.o
        CC      net/ipv4/inet_lro.o
      drivers/media/i2c/s5c73m3/s5c73m3-core.c: In function ‘s5c73m3_get_platform_data’:
      drivers/media/i2c/s5c73m3/s5c73m3-core.c:1619:2: error: implicit declaration of function ‘v4l2_of_get_next_endpoint’ [-Werror=implicit-function-declaration]
      drivers/media/i2c/s5c73m3/s5c73m3-core.c:1619:10: warning: assignment makes pointer from integer without a cast [enabled by default]
      Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      41f484d1
    • Antti Palosaari's avatar
      [media] rtl28xxu: silence error log about disabled rtl2832_sdr module · beab1b53
      Antti Palosaari authored
      It printed a little bit too heavy looking error log "DVB: Unable to
      find symbol rtl2832_sdr_attach()" when staging module was disabled.
      Silence that error by introducing own version of dvb_attach() macro
      without the error logging.
      Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      beab1b53
    • Antti Palosaari's avatar
      [media] rtl28xxu: do not hard depend on staging SDR module · 1fd10f98
      Antti Palosaari authored
      RTL2832 SDR extension module is currently on staging. SDR module
      headers were included from staging causing direct dependency staging
      directory. As a solution, add needed headers to main driver.
      Motivation of that change comes from Luis / driver backports project.
      Reported-by: default avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
      Cc: backports@vger.kernel.org
      Signed-off-by: default avatarAntti Palosaari <crope@iki.fi>
      Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
      1fd10f98
  3. 14 Apr, 2014 1 commit
    • Mauro Carvalho Chehab's avatar
      Merge tag 'v3.15-rc1' into patchwork · 277a163c
      Mauro Carvalho Chehab authored
      Linux 3.15-rc1
      
      * tag 'v3.15-rc1': (12180 commits)
        Linux 3.15-rc1
        mm: Initialize error in shmem_file_aio_read()
        cifs: Use min_t() when comparing "size_t" and "unsigned long"
        sym53c8xx_2: Set DID_REQUEUE return code when aborting squeue
        powerpc: Don't try to set LPCR unless we're in hypervisor mode
        futex: update documentation for ordering guarantees
        ceph: fix pr_fmt() redefinition
        vti: don't allow to add the same tunnel twice
        gre: don't allow to add the same tunnel twice
        drivers: net: xen-netfront: fix array initialization bug
        missing bits of "splice: fix racy pipe->buffers uses"
        cifs: fix the race in cifs_writev()
        ceph_sync_{,direct_}write: fix an oops on ceph_osdc_new_request() failure
        pktgen: be friendly to LLTX devices
        r8152: check RTL8152_UNPLUG
        net: sun4i-emac: add promiscuous support
        net/apne: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
        blackfin: cleanup board files
        bf609: clock: drop unused clock bit set/clear functions
        Blackfin: bf537: rename "CONFIG_ADT75"
        ...
      277a163c
  4. 13 Apr, 2014 12 commits
    • Linus Torvalds's avatar
      Linux 3.15-rc1 · c9eaa447
      Linus Torvalds authored
      c9eaa447
    • Geert Uytterhoeven's avatar
      mm: Initialize error in shmem_file_aio_read() · f7c1d074
      Geert Uytterhoeven authored
      Some versions of gcc even warn about it:
      
        mm/shmem.c: In function ‘shmem_file_aio_read’:
        mm/shmem.c:1414: warning: ‘error’ may be used uninitialized in this function
      
      If the loop is aborted during the first iteration by one of the two
      first break statements, error will be uninitialized.
      
      Introduced by commit 6e58e79d ("introduce copy_page_to_iter, kill
      loop over iovec in generic_file_aio_read()").
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f7c1d074
    • Geert Uytterhoeven's avatar
      cifs: Use min_t() when comparing "size_t" and "unsigned long" · e686bd8d
      Geert Uytterhoeven authored
      On 32 bit, size_t is "unsigned int", not "unsigned long", causing the
      following warning when comparing with PAGE_SIZE, which is always "unsigned
      long":
      
        fs/cifs/file.c: In function ‘cifs_readdata_to_iov’:
        fs/cifs/file.c:2757: warning: comparison of distinct pointer types lacks a cast
      
      Introduced by commit 7f25bba8 ("cifs_iovec_read: keep iov_iter
      between the calls of cifs_readdata_to_iov()"), which changed the
      signedness of "remaining" and the code from min_t() to min().
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e686bd8d
    • Linus Torvalds's avatar
      Merge branch 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux · bf3a3407
      Linus Torvalds authored
      Pull slab changes from Pekka Enberg:
       "The biggest change is byte-sized freelist indices which reduces slab
        freelist memory usage:
      
          https://lkml.org/lkml/2013/12/2/64"
      
      * 'slab/next' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/linux:
        mm: slab/slub: use page->list consistently instead of page->lru
        mm/slab.c: cleanup outdated comments and unify variables naming
        slab: fix wrongly used macro
        slub: fix high order page allocation problem with __GFP_NOFAIL
        slab: Make allocations with GFP_ZERO slightly more efficient
        slab: make more slab management structure off the slab
        slab: introduce byte sized index for the freelist of a slab
        slab: restrict the number of objects in a slab
        slab: introduce helper functions to get/set free object
        slab: factor out calculate nr objects in cache_estimate
      bf3a3407
    • Linus Torvalds's avatar
      Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · 321d03c8
      Linus Torvalds authored
      Pull misc kbuild changes from Michal Marek:
       "Here is the non-critical part of kbuild:
         - One bogus coccinelle check removed, one check fixed not to suggest
           the obsolete PTR_RET macro
         - scripts/tags.sh does not index the generated *.mod.c files
         - new objdiff tool to list differences between two versions of an
           object file
         - A fix for scripts/bootgraph.pl"
      
      * 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        scripts/coccinelle: Use PTR_ERR_OR_ZERO
        scripts/bootgraph.pl: Add graphic header
        scripts: objdiff: detect object code changes between two commits
        Coccicheck: Remove memcpy to struct assignment test
        scripts/tags.sh: Ignore *.mod.c
      321d03c8
    • Mikulas Patocka's avatar
      sym53c8xx_2: Set DID_REQUEUE return code when aborting squeue · fd1232b2
      Mikulas Patocka authored
      This patch fixes I/O errors with the sym53c8xx_2 driver when the disk
      returns QUEUE FULL status.
      
      When the controller encounters an error (including QUEUE FULL or BUSY
      status), it aborts all not yet submitted requests in the function
      sym_dequeue_from_squeue.
      
      This function aborts them with DID_SOFT_ERROR.
      
      If the disk has full tag queue, the request that caused the overflow is
      aborted with QUEUE FULL status (and the scsi midlayer properly retries
      it until it is accepted by the disk), but the sym53c8xx_2 driver aborts
      the following requests with DID_SOFT_ERROR --- for them, the midlayer
      does just a few retries and then signals the error up to sd.
      
      The result is that disk returning QUEUE FULL causes request failures.
      
      The error was reproduced on 53c895 with COMPAQ BD03685A24 disk
      (rebranded ST336607LC) with command queue 48 or 64 tags.  The disk has
      64 tags, but under some access patterns it return QUEUE FULL when there
      are less than 64 pending tags.  The SCSI specification allows returning
      QUEUE FULL anytime and it is up to the host to retry.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Cc: Matthew Wilcox <matthew@wil.cx>
      Cc: James Bottomley <JBottomley@Parallels.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fd1232b2
    • Paul Mackerras's avatar
      powerpc: Don't try to set LPCR unless we're in hypervisor mode · 18aa0da3
      Paul Mackerras authored
      Commit 8f619b54 ("powerpc/ppc64: Do not turn AIL (reloc-on
      interrupts) too early") added code to set the AIL bit in the LPCR
      without checking whether the kernel is running in hypervisor mode.  The
      result is that when the kernel is running as a guest (i.e., under
      PowerKVM or PowerVM), the processor takes a privileged instruction
      interrupt at that point, causing a panic.  The visible result is that
      the kernel hangs after printing "returning from prom_init".
      
      This fixes it by checking for hypervisor mode being available before
      setting LPCR.  If we are not in hypervisor mode, we enable relocation-on
      interrupts later in pSeries_setup_arch using the H_SET_MODE hcall.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      18aa0da3
    • Davidlohr Bueso's avatar
      futex: update documentation for ordering guarantees · d7e8af1a
      Davidlohr Bueso authored
      Commits 11d4616b ("futex: revert back to the explicit waiter
      counting code") and 69cd9eba ("futex: avoid race between requeue and
      wake") changed some of the finer details of how we think about futexes.
      One was a late fix and the other a consequence of overlooking the whole
      requeuing logic.
      
      The first change caused our documentation to be incorrect, and the
      second made us aware that we need to explicitly add more details to it.
      Signed-off-by: default avatarDavidlohr Bueso <davidlohr@hp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      d7e8af1a
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 454fd351
      Linus Torvalds authored
      Pull yet more networking updates from David Miller:
      
       1) Various fixes to the new Redpine Signals wireless driver, from
          Fariya Fatima.
      
       2) L2TP PPP connect code takes PMTU from the wrong socket, fix from
          Dmitry Petukhov.
      
       3) UFO and TSO packets differ in whether they include the protocol
          header in gso_size, account for that in skb_gso_transport_seglen().
         From Florian Westphal.
      
       4) If VLAN untagging fails, we double free the SKB in the bridging
          output path.  From Toshiaki Makita.
      
       5) Several call sites of sk->sk_data_ready() were referencing an SKB
          just added to the socket receive queue in order to calculate the
          second argument via skb->len.  This is dangerous because the moment
          the skb is added to the receive queue it can be consumed in another
          context and freed up.
      
          It turns out also that none of the sk->sk_data_ready()
          implementations even care about this second argument.
      
          So just kill it off and thus fix all these use-after-free bugs as a
          side effect.
      
       6) Fix inverted test in tcp_v6_send_response(), from Lorenzo Colitti.
      
       7) pktgen needs to do locking properly for LLTX devices, from Daniel
          Borkmann.
      
       8) xen-netfront driver initializes TX array entries in RX loop :-) From
          Vincenzo Maffione.
      
       9) After refactoring, some tunnel drivers allow a tunnel to be
          configured on top itself.  Fix from Nicolas Dichtel.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (46 commits)
        vti: don't allow to add the same tunnel twice
        gre: don't allow to add the same tunnel twice
        drivers: net: xen-netfront: fix array initialization bug
        pktgen: be friendly to LLTX devices
        r8152: check RTL8152_UNPLUG
        net: sun4i-emac: add promiscuous support
        net/apne: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO
        net: ipv6: Fix oif in TCP SYN+ACK route lookup.
        drivers: net: cpsw: enable interrupts after napi enable and clearing previous interrupts
        drivers: net: cpsw: discard all packets received when interface is down
        net: Fix use after free by removing length arg from sk_data_ready callbacks.
        Drivers: net: hyperv: Address UDP checksum issues
        Drivers: net: hyperv: Negotiate suitable ndis version for offload support
        Drivers: net: hyperv: Allocate memory for all possible per-pecket information
        bridge: Fix double free and memory leak around br_allowed_ingress
        bonding: Remove debug_fs files when module init fails
        i40evf: program RSS LUT correctly
        i40evf: remove open-coded skb_cow_head
        ixgb: remove open-coded skb_cow_head
        igbvf: remove open-coded skb_cow_head
        ...
      454fd351
    • Linus Torvalds's avatar
      Merge tag 'blackfin-for-linus' of... · fd18f00d
      Linus Torvalds authored
      Merge tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux
      
      Pull blackfin updates from Steven Miao:
       "Code cleanup, some previously ignored patches, and bug fixes"
      
      * tag 'blackfin-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/realmz6/blackfin-linux:
        blackfin: cleanup board files
        bf609: clock: drop unused clock bit set/clear functions
        Blackfin: bf537: rename "CONFIG_ADT75"
        Blackfin: bf537: rename "CONFIG_AD7314"
        Blackfin: bf537: rename ad2s120x ->ad2s1200
        blackfin: bf537: fix typo "CONFIG_SND_SOC_ADV80X_MODULE"
        blackfin: dma: current count mmr is read only
        bfin_crc: Move architecture independant crc header file out of the blackfin folder.
        bf54x: drop unuesd HOST status,control,timeout registers bit define macros
        blackfin: portmux: cleanup head file
        Blackfin: remove "config IP_CHECKSUM_L1"
        blackfin: Remove GENERIC_GPIO config option again
        blackfin:Use generic /proc/interrupts implementation
        blackfin: bf60x: fix typo "CONFIG_PM_BFIN_WAKE_PA15_POL"
      fd18f00d
    • Linus Torvalds's avatar
      Merge tag 'remoteproc-3.15-cleanups' of... · de0c9cf9
      Linus Torvalds authored
      Merge tag 'remoteproc-3.15-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/remoteproc
      
      Pull remoteproc cleanups from Ohad Ben-Cohen:
       "Several remoteproc cleanup patches coming from Jingoo Han, Julia
        Lawall and Uwe Kleine-König"
      
      * tag 'remoteproc-3.15-cleanups' of git://git.kernel.org/pub/scm/linux/kernel/git/ohad/remoteproc:
        remoteproc/ste_modem: staticize local symbols
        remoteproc/davinci: simplify use of devm_ioremap_resource
        remoteproc/davinci: drop needless devm_clk_put
      de0c9cf9
    • Linus Torvalds's avatar
      Merge tag 'llvmlinux-for-v3.15' of git://git.linuxfoundation.org/llvmlinux/kernel · 09c9b61d
      Linus Torvalds authored
      Pull llvm patches from Behan Webster:
       "These are some initial updates to support compiling the kernel with
        clang.
      
        These patches have been through the proper reviews to the best of my
        ability, and have been soaking in linux-next for a few weeks.  These
        patches by themselves still do not completely allow clang to be used
        with the kernel code, but lay the foundation for other patches which
        are still under review.
      
        Several other of the LLVMLinux patches have been already added via
        maintainer trees"
      
      * tag 'llvmlinux-for-v3.15' of git://git.linuxfoundation.org/llvmlinux/kernel:
        x86: LLVMLinux: Fix "incomplete type const struct x86cpu_device_id"
        x86 kbuild: LLVMLinux: More cc-options added for clang
        x86, acpi: LLVMLinux: Remove nested functions from Thinkpad ACPI
        LLVMLinux: Add support for clang to compiler.h and new compiler-clang.h
        LLVMLinux: Remove warning about returning an uninitialized variable
        kbuild: LLVMLinux: Fix LINUX_COMPILER definition script for compilation with clang
        Documentation: LLVMLinux: Update Documentation/dontdiff
        kbuild: LLVMLinux: Adapt warnings for compilation with clang
        kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
      09c9b61d