1. 10 Nov, 2019 20 commits
    • Ricardo Ribalda Delgado's avatar
      media: Documentation: media: *_DEFAULT targets for subdevs · 4edead77
      Ricardo Ribalda Delgado authored
      Some sensors have optical blanking areas, this is, pixels that are
      painted and do not account for light, only noise.
      
      These special pixels are very useful for calibrating the sensor, but
      should not be displayed on a DEFAULT target.
      Signed-off-by: default avatarRicardo Ribalda Delgado <ribalda@kernel.org>
      Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      4edead77
    • Ezequiel Garcia's avatar
      media: hantro: Fix s_fmt for dynamic resolution changes · ae02d494
      Ezequiel Garcia authored
      Commit 953aaa14 ("media: rockchip/vpu: Prepare things to support decoders")
      changed the conditions under S_FMT was allowed for OUTPUT
      CAPTURE buffers.
      
      However, and according to the mem-to-mem stateless decoder specification,
      in order to support dynamic resolution changes, S_FMT should be allowed
      even if OUTPUT buffers have been allocated.
      
      Relax decoder S_FMT restrictions on OUTPUT buffers, allowing a
      resolution modification, provided the pixel format stays the same.
      
      Tested on RK3288 platforms using ChromiumOS Video Decode/Encode
      Accelerator Unittests.
      
      [hverkuil: fix typo: In other -> In order]
      
      Fixes: 953aaa14 ("media: rockchip/vpu: Prepare things to support decoders")
      Signed-off-by: default avatarEzequiel Garcia <ezequiel@collabora.com>
      Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
      Cc: <stable@vger.kernel.org>      # for v5.4 and up
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      ae02d494
    • Nishad Kamdar's avatar
      media: i2c: Use the correct style for SPDX License Identifier · 59d8bf5d
      Nishad Kamdar authored
      This patch corrects the SPDX License Identifier style
      in header files related to I2C controlled media codec drivers.
      For C header files Documentation/process/license-rules.rst
      mandates C-like comments (opposed to C source files where
      C++ style should be used)
      
      Changes made by using a script provided by Joe Perches here:
      https://lkml.org/lkml/2019/2/7/46
      and some manual changes.
      Suggested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarNishad Kamdar <nishadkamdar@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      59d8bf5d
    • Nishad Kamdar's avatar
      media: siano: Use the correct style for SPDX License Identifier · 01da4444
      Nishad Kamdar authored
      This patch corrects the SPDX License Identifier style
      in header file related to Siano Mobile Silicon Digital TV.
      For C header files Documentation/process/license-rules.rst
      mandates C-like comments (opposed to C source files where
      C++ style should be used)
      
      Changes made by using a script provided by Joe Perches here:
      https://lkml.org/lkml/2019/2/7/46Suggested-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarNishad Kamdar <nishadkamdar@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      01da4444
    • Hans Verkuil's avatar
      media: vicodec: media_device_cleanup was called too early · 693c5f14
      Hans Verkuil authored
      Running the contrib/test/test-media script in v4l-utils with the vicodec argument
      will cause this kernel warning:
      
      [  372.298824] ------------[ cut here ]------------
      [  372.298848] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
      [  372.298896] WARNING: CPU: 11 PID: 2220 at kernel/locking/mutex.c:938 __mutex_lock+0x919/0xc10
      [  372.298907] Modules linked in: vicodec v4l2_mem2mem vivid rc_cec v4l2_tpg videobuf2_dma_contig cec rc_core v4l2_dv_timings videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc vmw_balloon vmw_vmci button vmwgfx [last unloaded: vimc]
      [  372.298961] CPU: 11 PID: 2220 Comm: sleep Not tainted 5.4.0-rc1-test-no #150
      [  372.298970] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 07/29/2019
      [  372.298983] RIP: 0010:__mutex_lock+0x919/0xc10
      [  372.298995] Code: 59 83 e8 9a fc 16 ff 44 8b 05 23 61 38 01 45 85 c0 0f 85 ef f7 ff ff 48 c7 c6 a0 1f 87 82 48 c7 c7 a0 1e 87 82 e8 cd bb f7 fe <0f> 0b e9 d5 f7 ff ff f6 c3 04 0f 84 3b fd ff ff 49 89 df 41 83 e7
      [  372.299004] RSP: 0018:ffff8881b400fb80 EFLAGS: 00010286
      [  372.299014] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
      [  372.299022] RDX: 0000000000000003 RSI: 0000000000000004 RDI: ffffed1036801f62
      [  372.299030] RBP: ffff8881b400fcf0 R08: ffffffff81217c91 R09: fffffbfff061c271
      [  372.299038] R10: fffffbfff061c270 R11: ffffffff830e1383 R12: ffff88814761dc80
      [  372.299046] R13: 0000000000000000 R14: ffff88814761cbf0 R15: ffff88814761d030
      [  372.299055] FS:  0000000000000000(0000) GS:ffff8881b68c0000(0000) knlGS:0000000000000000
      [  372.299063] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  372.299071] CR2: 00007f606d78aa20 CR3: 0000000003013002 CR4: 00000000001606e0
      [  372.299153] Call Trace:
      [  372.299176]  ? __kasan_slab_free+0x12f/0x180
      [  372.299187]  ? kmem_cache_free+0x9b/0x250
      [  372.299200]  ? do_exit+0xcdf/0x1200
      [  372.299210]  ? do_group_exit+0x85/0x130
      [  372.299220]  ? __x64_sys_exit_group+0x23/0x30
      [  372.299231]  ? do_syscall_64+0x5e/0x1c0
      [  372.299241]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
      [  372.299295]  ? v4l2_release+0xed/0x190 [videodev]
      [  372.299309]  ? mutex_lock_io_nested+0xb80/0xb80
      [  372.299323]  ? find_held_lock+0x85/0xa0
      [  372.299335]  ? fsnotify+0x5b0/0x600
      [  372.299351]  ? locks_remove_file+0x78/0x2b0
      [  372.299363]  ? __fsnotify_update_child_dentry_flags.part.0+0x170/0x170
      [  372.299383]  ? vidioc_querycap+0x50/0x50 [vicodec]
      [  372.299426]  ? v4l2_release+0xed/0x190 [videodev]
      [  372.299467]  v4l2_release+0xed/0x190 [videodev]
      [  372.299484]  __fput+0x15a/0x390
      [  372.299499]  task_work_run+0xb2/0xe0
      [  372.299512]  do_exit+0x4d0/0x1200
      [  372.299528]  ? do_user_addr_fault+0x367/0x610
      [  372.299538]  ? release_task+0x990/0x990
      [  372.299552]  ? rwsem_spin_on_owner+0x170/0x170
      [  372.299567]  ? vmacache_find+0xb2/0x100
      [  372.299580]  do_group_exit+0x85/0x130
      [  372.299592]  __x64_sys_exit_group+0x23/0x30
      [  372.299602]  do_syscall_64+0x5e/0x1c0
      [  372.299614]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
      [  372.299624] RIP: 0033:0x7f606d74a9d6
      [  372.299640] Code: Bad RIP value.
      [  372.299648] RSP: 002b:00007fff65364468 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
      [  372.299658] RAX: ffffffffffffffda RBX: 00007f606d83b760 RCX: 00007f606d74a9d6
      [  372.299666] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
      [  372.299673] RBP: 0000000000000000 R08: 00000000000000e7 R09: ffffffffffffff80
      [  372.299681] R10: 00007fff65364334 R11: 0000000000000246 R12: 00007f606d83b760
      [  372.299689] R13: 0000000000000002 R14: 00007f606d844428 R15: 0000000000000000
      [  372.299704] ---[ end trace add7d62ca4bc65e3 ]---
      
      This is caused by media_device_cleanup() which destroys
      v4l2_dev->mdev->req_queue_mutex. But v4l2_release() tries to lock
      that mutex after media_device_cleanup() is called.
      
      By moving media_device_cleanup() to the v4l2_device's release function it is
      guaranteed that the mutex is valid whenever v4l2_release is called.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      693c5f14
    • Hans Verkuil's avatar
      media: vim2m: media_device_cleanup was called too early · 9f22e88a
      Hans Verkuil authored
      Running the contrib/test/test-media script in v4l-utils with the vim2m argument
      will cause this kernel warning:
      
      [  554.430157] ------------[ cut here ]------------
      [  554.433034] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
      [  554.433064] WARNING: CPU: 0 PID: 616 at kernel/locking/mutex.c:938 __mutex_lock+0xd7a/0x1380
      [  554.439736] Modules linked in: vim2m v4l2_mem2mem vivid rc_cec videobuf2_dma_contig v4l2_dv_timings cec videobuf2_vmalloc videobuf2_memops v4l2_tpg videobuf2_v4l2 videobuf2_common videodev mc rc_core [last unloaded: vivid]
      [  554.445794] CPU: 0 PID: 616 Comm: sleep Not tainted 5.4.0-rc1-virtme #1
      [  554.448481] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org 04/01/2014
      [  554.453088] RIP: 0010:__mutex_lock+0xd7a/0x1380
      [  554.454955] Code: d2 0f 85 de 05 00 00 44 8b 05 82 d9 f7 00 45 85 c0 0f 85 bf f3 ff ff 48 c7 c6 e0 30 a6 b7 48 c7 c7 e0 2e a6 b7 e8 5c 76 36 fe <0f> 0b e9 a5 f3 ff ff 65 48 8b 1c 25 80 ef 01 00 be 08 00 00 00 48
      [  554.462836] RSP: 0018:ffff88803a4cfad0 EFLAGS: 00010282
      [  554.465129] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffffb5a3d24f
      [  554.468143] RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffffb85273f4
      [  554.471000] RBP: ffff88803a4cfc50 R08: fffffbfff701e681 R09: fffffbfff701e681
      [  554.473990] R10: fffffbfff701e680 R11: ffffffffb80f3403 R12: 0000000000000000
      [  554.476831] R13: dffffc0000000000 R14: ffffffffb9714f00 R15: ffff888053103fc8
      [  554.479622] FS:  00007fac6358a540(0000) GS:ffff88805d000000(0000) knlGS:0000000000000000
      [  554.482673] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [  554.484949] CR2: 00007fac6343faf0 CR3: 0000000036c22000 CR4: 00000000003406f0
      [  554.487811] Call Trace:
      [  554.488860]  ? v4l2_release+0x1b8/0x390 [videodev]
      [  554.490818]  ? do_exit+0x946/0x2980
      [  554.492269]  ? mutex_lock_io_nested+0x1250/0x1250
      [  554.494128]  ? __lock_acquire+0xe90/0x3c30
      [  554.495774]  ? fsnotify_first_mark+0x120/0x120
      [  554.497487]  ? vim2m_device_release+0x50/0x50 [vim2m]
      [  554.499469]  ? v4l2_release+0x1b8/0x390 [videodev]
      [  554.501493]  v4l2_release+0x1b8/0x390 [videodev]
      [  554.503430]  __fput+0x256/0x790
      [  554.504711]  task_work_run+0x109/0x190
      [  554.506145]  do_exit+0x95e/0x2980
      [  554.507421]  ? vfs_lock_file+0x21/0xf0
      [  554.509013]  ? find_held_lock+0x33/0x1c0
      [  554.510382]  ? __close_fd+0xee/0x190
      [  554.511862]  ? release_task.part.21+0x1310/0x1310
      [  554.513701]  ? lock_downgrade+0x6d0/0x6d0
      [  554.515299]  do_group_exit+0xeb/0x2d0
      [  554.516862]  __x64_sys_exit_group+0x35/0x40
      [  554.518610]  do_syscall_64+0x90/0x450
      [  554.520142]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
      [  554.522289] RIP: 0033:0x7fac6348ecf6
      [  554.523876] Code: Bad RIP value.
      [  554.525294] RSP: 002b:00007ffe6373dc58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
      [  554.528555] RAX: ffffffffffffffda RBX: 00007fac6357f760 RCX: 00007fac6348ecf6
      [  554.531537] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
      [  554.534709] RBP: 0000000000000000 R08: 00000000000000e7 R09: ffffffffffffff80
      [  554.536752] R10: 00007ffe6373db24 R11: 0000000000000246 R12: 00007fac6357f760
      [  554.538643] R13: 0000000000000002 R14: 00007fac63588428 R15: 0000000000000000
      [  554.540634] irq event stamp: 21731
      [  554.541618] hardirqs last  enabled at (21731): [<ffffffffb75b3cd4>] _raw_spin_unlock_irq+0x24/0x30
      [  554.544145] hardirqs last disabled at (21730): [<ffffffffb75b3ada>] _raw_spin_lock_irq+0xa/0x40
      [  554.547027] softirqs last  enabled at (20148): [<ffffffffb780064d>] __do_softirq+0x64d/0x906
      [  554.550385] softirqs last disabled at (19857): [<ffffffffb5926bd5>] irq_exit+0x175/0x1a0
      [  554.553668] ---[ end trace a389c80c2ca84244 ]---
      
      This is caused by media_device_cleanup() which destroys
      v4l2_dev->mdev->req_queue_mutex. But v4l2_release() tries to lock
      that mutex after media_device_cleanup() is called.
      
      By moving media_device_cleanup() to the video_device's release function it is
      guaranteed that the mutex is valid whenever v4l2_release is called.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      9f22e88a
    • Jernej Skrabec's avatar
      media: cedrus: Increase maximum supported size · 0b3e5c15
      Jernej Skrabec authored
      There are few variations of 4k resolutions. The biggest one is
      4096x2304 which is also supported by HW. It has also nice property that
      both width and size are divisible by maximum HEVC CTB size, which is 64.
      Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
      Acked-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      0b3e5c15
    • Jernej Skrabec's avatar
      media: cedrus: Fix H264 4k support · 03e612e7
      Jernej Skrabec authored
      H264 decoder needs additional or bigger buffers in order to decode 4k
      videos.
      Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
      Acked-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      03e612e7
    • Jernej Skrabec's avatar
      media: cedrus: Properly signal size in mode register · 3aef46bd
      Jernej Skrabec authored
      Mode register also holds information if video width is bigger than 2048
      and if it is equal to 4096.
      
      Rework cedrus_engine_enable() to properly signal this properties.
      Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
      Acked-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      3aef46bd
    • Pi-Hsun Shih's avatar
      media: v4l2-ctrl: Lock main_hdl on operations of requests_queued. · df4a3e7f
      Pi-Hsun Shih authored
      There's a race condition between the list_del_init in the
      v4l2_ctrl_request_complete, and the list_add_tail in the
      v4l2_ctrl_request_queue, since they can be called in different thread
      and the requests_queued list is not protected by a lock. This can lead
      to that the v4l2_ctrl_handler is still in the requests_queued list while
      the request_is_queued is already set to false, which would cause
      use-after-free if the v4l2_ctrl_handler is later released.
      
      Fix this by locking the ->lock of main_hdl (which is the owner of the
      requests_queued list) when doing list operations on the
      ->requests_queued list.
      Signed-off-by: default avatarPi-Hsun Shih <pihsun@chromium.org>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      df4a3e7f
    • Chuhong Yuan's avatar
      media: si470x-i2c: add missed operations in remove · 2df200ab
      Chuhong Yuan authored
      The driver misses calling v4l2_ctrl_handler_free and
      v4l2_device_unregister in remove like what is done in probe failure.
      Add the calls to fix it.
      Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      2df200ab
    • Philipp Zabel's avatar
      media: coda: disable decoder crop selections · 4ffd3146
      Philipp Zabel authored
      Disable output side crop selections for the decoder.
      This fixes the following v4l2-compliance complaint:
      
      		fail: v4l2-test-formats.cpp(1576): IS_DECODER(node)
      	test Cropping: FAIL
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      4ffd3146
    • Hans Verkuil's avatar
      media: v4l2-ioctl.c: zero reserved fields for S/TRY_FMT · ee8951e5
      Hans Verkuil authored
      v4l2_vbi_format, v4l2_sliced_vbi_format and v4l2_sdr_format
      have a reserved array at the end that should be zeroed by drivers
      as per the V4L2 spec. Older drivers often do not do this, so just
      handle this in the core.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      ee8951e5
    • Philipp Zabel's avatar
      media: coda: disable encoder compose selections · ff1c21f4
      Philipp Zabel authored
      Disable capture side compose selections for the encoder.
      This fixes the following v4l2-compliance complaint:
      
      		fail: v4l2-test-formats.cpp(1662): IS_ENCODER(node)
      	test Composing: FAIL
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      ff1c21f4
    • Hirokazu Honda's avatar
      media: mtk-vcodec: Remove extra area allocation in an input buffer on encoding · 3192b2ca
      Hirokazu Honda authored
      MediaTek encoder allocates non pixel data area for an input buffer every
      plane. As the input buffer should be read-only, the driver should not write
      anything in the buffer. Therefore, the extra data should be unnecessary.
      Signed-off-by: default avatarHirokazu Honda <hiroh@chromium.org>
      Reviewed-by: default avatarTomasz Figa <tfiga@chromium.org>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      3192b2ca
    • Dafna Hirschfeld's avatar
      media: vimc: upon streaming, check that the pipeline starts with a source entity · c20df618
      Dafna Hirschfeld authored
      Userspace can disable links and create pipelines that
      do not start with a source entity. Trying to stream
      from such a pipeline should fail with -EPIPE
      currently this is not handled and cause kernel crash.
      
      Reproducing the crash:
      media-ctl -d0 -l "5:1->21:0[0]" -v
      v4l2-ctl -z platform:vimc -d "RGB/YUV Capture" -v width=1920,height=1440
      v4l2-ctl --stream-mmap --stream-count=100 -d /dev/video2
      
      Panic message:
      [   39.078841][  T248] BUG: kernel NULL pointer dereference, address: 0000000000000000
      [   39.079338][  T248] #PF: supervisor read access in kernel mode
      [   39.079704][  T248] #PF: error_code(0x0000) - not-present page
      [   39.080071][  T248] PGD 0 P4D 0
      [   39.080279][  T248] Oops: 0000 [#1] SMP PTI
      [   39.080546][  T248] CPU: 0 PID: 248 Comm: vimc-streamer t Not tainted 5.4.0-rc1+ #17
      [   39.081030][  T248] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org 04/01/2014
      [   39.081779][  T248] RIP: 0010:vimc_sca_process_frame+0xdb/0x210 [vimc]
      [   39.082191][  T248] Code: 44 8d 0c 28 8b 93 a4 01 00 00 48 8b 8b 98 01 00 00 85 d2 74 40 48 8b 74 24 10 8d 7a ff 4c 01 c9 31 d2 4c 01 fe eb 03 4c 89 c2 <44> 0f b6 04 16 44 88 04 11 4c 8d 42 01 48 39 fa 75 eb 8b 93 a4 01
      [   39.083436][  T248] RSP: 0018:ffffb15a005abe90 EFLAGS: 00010246
      [   39.083808][  T248] RAX: 0000000000000000 RBX: ffffa3fdc46d2e00 RCX: ffffb15a02579000
      [   39.084298][  T248] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
      [   39.084792][  T248] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
      [   39.085280][  T248] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
      [   39.085770][  T248] R13: ffffa3fdc46d2ee0 R14: 0000000000000000 R15: 0000000000000000
      [   39.086258][  T248] FS:  0000000000000000(0000) GS:ffffa3fdc7800000(0000) knlGS:0000000000000000
      [   39.086806][  T248] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [   39.087217][  T248] CR2: 0000000000000000 CR3: 0000000003c92005 CR4: 0000000000360ef0
      [   39.087706][  T248] Call Trace:
      [   39.087909][  T248]  ? vimc_streamer_pipeline_terminate+0x90/0x90 [vimc]
      [   39.088318][  T248]  vimc_streamer_thread+0x7c/0xe0 [vimc]
      [   39.088663][  T248]  kthread+0x10d/0x130
      [   39.088919][  T248]  ? kthread_park+0x80/0x80
      [   39.089205][  T248]  ret_from_fork+0x35/0x40
      [   39.089475][  T248] Modules linked in: vimc videobuf2_vmalloc videobuf2_memops v4l2_tpg videobuf2_v4l2 videobuf2_common videodev mc
      [   39.090208][  T248] CR2: 0000000000000000
      [   39.090463][  T248] ---[ end trace 697650fefbf78bee ]---
      [   39.090796][  T248] RIP: 0010:vimc_sca_process_frame+0xdb/0x210 [vimc]
      [   39.091209][  T248] Code: 44 8d 0c 28 8b 93 a4 01 00 00 48 8b 8b 98 01 00 00 85 d2 74 40 48 8b 74 24 10 8d 7a ff 4c 01 c9 31 d2 4c 01 fe eb 03 4c 89 c2 <44> 0f b6 04 16 44 88 04 11 4c 8d 42 01 48 39 fa 75 eb 8b 93 a4 01
      [   39.092417][  T248] RSP: 0018:ffffb15a005abe90 EFLAGS: 00010246
      [   39.092789][  T248] RAX: 0000000000000000 RBX: ffffa3fdc46d2e00 RCX: ffffb15a02579000
      [   39.093278][  T248] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
      [   39.093766][  T248] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
      [   39.094254][  T248] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
      [   39.094742][  T248] R13: ffffa3fdc46d2ee0 R14: 0000000000000000 R15: 0000000000000000
      [   39.095309][  T248] FS:  0000000000000000(0000) GS:ffffa3fdc7800000(0000) knlGS:0000000000000000
      [   39.095974][  T248] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [   39.096372][  T248] CR2: 0000000000000000 CR3: 0000000003c92005 CR4: 0000000000360ef0
      Signed-off-by: default avatarDafna Hirschfeld <dafna.hirschfeld@collabora.com>
      Acked-by: default avatarHelen Koike <helen.koike@collabora.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      c20df618
    • Navid Emamdoost's avatar
      media: aspeed-video: Fix memory leaks in aspeed_video_probe · c3df30a0
      Navid Emamdoost authored
      In the implementation of aspeed_video_probe() the allocated memory for
      video should be released if either devm_ioremap_resource()
      or aspeed_video_init() or aspeed_video_setup_video() fails. Replace
      kzalloc() with devm_kzalloc to avoid explicit release for video.
      
      Fixes: d2b4387f ("media: platform: Add Aspeed Video Engine driver")
      Signed-off-by: default avatarNavid Emamdoost <navid.emamdoost@gmail.com>
      Reviewed-by: default avatarJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
      Reviewed-by: default avatarEddie James <eajames@linux.ibm.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      c3df30a0
    • Pragnesh Patel's avatar
      media: dt-bindings: Fix building error for dt_binding_check · 99cf8a70
      Pragnesh Patel authored
      $id doesn't match the actual filename, so update the $id
      Signed-off-by: default avatarPragnesh Patel <pragnesh.patel@sifive.com>
      Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      99cf8a70
    • zhong jiang's avatar
      media: v4l2: Use FIELD_SIZEOF directly · 40ee7524
      zhong jiang authored
      It's more clear  to use FIELD_SIZEOF instead of its implementation.
      Signed-off-by: default avatarzhong jiang <zhongjiang@huawei.com>
      Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      40ee7524
    • Simon Horman's avatar
      media: dt-bindings: sh-mobile-ceu: Remove now unimplemented bindings documentation · 7204e062
      Simon Horman authored
      Remove the SH Mobile CEU bindings documentation as the corresponding driver
      was removed v5.1 by the following commit:
      
      43a445f1 ("media: sh_mobile_ceu_camera: remove obsolete soc_camera driver")
      Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      7204e062
  2. 09 Nov, 2019 19 commits
  3. 08 Nov, 2019 1 commit