<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/drivers/media/platform, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.</subtitle>
<id>https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y</id>
<link rel='self' href='https://universe.0xinfinity.dev/distro/kernel/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/'/>
<updated>2019-07-26T07:13:00Z</updated>
<entry>
<title>media: coda: Remove unbalanced and unneeded mutex unlock</title>
<updated>2019-07-26T07:13:00Z</updated>
<author>
<name>Ezequiel Garcia</name>
<email>ezequiel@collabora.com</email>
</author>
<published>2019-05-02T22:00:43Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=8829a3a0826518016beb5673c8bf4871a3703970'/>
<id>urn:sha1:8829a3a0826518016beb5673c8bf4871a3703970</id>
<content type='text'>
commit 766b9b168f6c75c350dd87c3e0bc6a9b322f0013 upstream.

The mutex unlock in the threaded interrupt handler is not paired
with any mutex lock. Remove it.

This bug has been here for a really long time, so it applies
to any stable repo.

Reviewed-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Signed-off-by: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>media: vimc: cap: check v4l2_fill_pixfmt return value</title>
<updated>2019-07-26T07:12:41Z</updated>
<author>
<name>André Almeida</name>
<email>andrealmeid@collabora.com</email>
</author>
<published>2019-06-17T16:28:02Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=e116077a17925b86b4e762f8800fe477f07e4b58'/>
<id>urn:sha1:e116077a17925b86b4e762f8800fe477f07e4b58</id>
<content type='text'>
[ Upstream commit 77ae46e11df5c96bb4582633851f838f5d954df4 ]

v4l2_fill_pixfmt() returns -EINVAL if the pixelformat used as parameter is
invalid or if the user is trying to use a multiplanar format with the
singleplanar API. Currently, the vimc_cap_try_fmt_vid_cap() returns such
value, but vimc_cap_s_fmt_vid_cap() is ignoring it. Fix that and returns
an error value if vimc_cap_try_fmt_vid_cap() has failed.

Signed-off-by: André Almeida &lt;andrealmeid@collabora.com&gt;
Suggested-by: Helen Koike &lt;helen.koike@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: coda: increment sequence offset for the last returned frame</title>
<updated>2019-07-26T07:12:41Z</updated>
<author>
<name>Philipp Zabel</name>
<email>p.zabel@pengutronix.de</email>
</author>
<published>2019-06-18T16:45:22Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=d0e10dee00131b836970f32d17721a2a73e3eab8'/>
<id>urn:sha1:d0e10dee00131b836970f32d17721a2a73e3eab8</id>
<content type='text'>
[ Upstream commit b3b7d96817cdb8b6fc353867705275dce8f41ccc ]

If no more frames are decoded in bitstream end mode, and a previously
decoded frame has been returned, the firmware still increments the frame
number. To avoid a sequence number mismatch after decoder restart,
increment the sequence_offset correction parameter.

Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: coda: fix last buffer handling in V4L2_ENC_CMD_STOP</title>
<updated>2019-07-26T07:12:41Z</updated>
<author>
<name>Marco Felsch</name>
<email>m.felsch@pengutronix.de</email>
</author>
<published>2019-06-18T16:45:11Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=cc1c3011f7e817ca66856abf52a93368100fd043'/>
<id>urn:sha1:cc1c3011f7e817ca66856abf52a93368100fd043</id>
<content type='text'>
[ Upstream commit f3775f89852d167990b0d718587774cf00d22ac2 ]

coda_encoder_cmd() is racy, as the last scheduled picture run worker can
still be in-flight while the ENC_CMD_STOP command is issued. Depending
on the exact timing the sequence numbers might already be changed, but
the last buffer might not have been put on the destination queue yet.

In this case the current implementation would prematurely wake the
destination queue with last_buffer_dequeued=true, causing userspace to
call streamoff before the last buffer is handled.

Close this race window by synchronizing with the pic_run_worker before
doing the sequence check.

Signed-off-by: Marco Felsch &lt;m.felsch@pengutronix.de&gt;
[l.stach@pengutronix.de: switch to flush_work, reword commit message]
Signed-off-by: Lucas Stach &lt;l.stach@pengutronix.de&gt;
Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: coda: fix mpeg2 sequence number handling</title>
<updated>2019-07-26T07:12:40Z</updated>
<author>
<name>Philipp Zabel</name>
<email>p.zabel@pengutronix.de</email>
</author>
<published>2019-06-18T16:45:10Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=b6a853dd743b13f559ad153ce6083b331d4b908c'/>
<id>urn:sha1:b6a853dd743b13f559ad153ce6083b331d4b908c</id>
<content type='text'>
[ Upstream commit 56d159a4ec6d8da7313aac6fcbb95d8fffe689ba ]

Sequence number handling assumed that the BIT processor frame number
starts counting at 1, but this is not true for the MPEG-2 decoder,
which starts at 0. Fix the sequence counter offset detection to handle
this.

Signed-off-by: Philipp Zabel &lt;p.zabel@pengutronix.de&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: s5p-mfc: Make additional clocks optional</title>
<updated>2019-07-26T07:12:39Z</updated>
<author>
<name>Marek Szyprowski</name>
<email>m.szyprowski@samsung.com</email>
</author>
<published>2019-06-13T10:48:34Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=c98a3afe2b8d87ea35225851ac03ebee47855c91'/>
<id>urn:sha1:c98a3afe2b8d87ea35225851ac03ebee47855c91</id>
<content type='text'>
[ Upstream commit e08efef8fe7db87206314c19b341612c719f891a ]

Since the beginning the second clock ('special', 'sclk') was optional and
it is not available on some variants of Exynos SoCs (i.e. Exynos5420 with
v7 of MFC hardware).

However commit 1bce6fb3edf1 ("[media] s5p-mfc: Rework clock handling")
made handling of all specified clocks mandatory. This patch restores
original behavior of the driver and fixes its operation on
Exynos5420 SoCs.

Fixes: 1bce6fb3edf1 ("[media] s5p-mfc: Rework clock handling")
Signed-off-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: s5p-mfc: fix reading min scratch buffer size on MFC v6/v7</title>
<updated>2019-07-26T07:12:34Z</updated>
<author>
<name>Marek Szyprowski</name>
<email>m.szyprowski@samsung.com</email>
</author>
<published>2019-06-12T13:57:57Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=1e1b35441b5ff628fdb29d06de11a493c070e658'/>
<id>urn:sha1:1e1b35441b5ff628fdb29d06de11a493c070e658</id>
<content type='text'>
[ Upstream commit be22203aec440c1761ce8542c2636ac6c8951e3a ]

MFC v6 and v7 has no register to read min scratch buffer size, so it has
to be read conditionally only if hardware supports it. This fixes following
NULL pointer exception on SoCs with MFC v6/v7:

8&lt;--- cut here ---
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = f25837f9
[00000000] *pgd=bd93d835
Internal error: Oops: 17 [#1] PREEMPT SMP ARM
Modules linked in: btmrvl_sdio btmrvl bluetooth mwifiex_sdio mwifiex ecdh_generic ecc
Hardware name: SAMSUNG EXYNOS (Flattened Device Tree)
PC is at s5p_mfc_get_min_scratch_buf_size+0x30/0x3c
LR is at s5p_mfc_get_min_scratch_buf_size+0x28/0x3c
...
[&lt;c074f998&gt;] (s5p_mfc_get_min_scratch_buf_size) from [&lt;c0745bc0&gt;] (s5p_mfc_irq+0x814/0xa5c)
[&lt;c0745bc0&gt;] (s5p_mfc_irq) from [&lt;c019a218&gt;] (__handle_irq_event_percpu+0x64/0x3f8)
[&lt;c019a218&gt;] (__handle_irq_event_percpu) from [&lt;c019a5d8&gt;] (handle_irq_event_percpu+0x2c/0x7c)
[&lt;c019a5d8&gt;] (handle_irq_event_percpu) from [&lt;c019a660&gt;] (handle_irq_event+0x38/0x5c)
[&lt;c019a660&gt;] (handle_irq_event) from [&lt;c019ebc4&gt;] (handle_fasteoi_irq+0xc4/0x180)
[&lt;c019ebc4&gt;] (handle_fasteoi_irq) from [&lt;c0199270&gt;] (generic_handle_irq+0x24/0x34)
[&lt;c0199270&gt;] (generic_handle_irq) from [&lt;c0199888&gt;] (__handle_domain_irq+0x7c/0xec)
[&lt;c0199888&gt;] (__handle_domain_irq) from [&lt;c04ac298&gt;] (gic_handle_irq+0x58/0x9c)
[&lt;c04ac298&gt;] (gic_handle_irq) from [&lt;c0101ab0&gt;] (__irq_svc+0x70/0xb0)
Exception stack(0xe73ddc60 to 0xe73ddca8)
...
[&lt;c0101ab0&gt;] (__irq_svc) from [&lt;c01967d8&gt;] (console_unlock+0x5a8/0x6a8)
[&lt;c01967d8&gt;] (console_unlock) from [&lt;c01981d0&gt;] (vprintk_emit+0x118/0x2d8)
[&lt;c01981d0&gt;] (vprintk_emit) from [&lt;c01983b0&gt;] (vprintk_default+0x20/0x28)
[&lt;c01983b0&gt;] (vprintk_default) from [&lt;c01989b4&gt;] (printk+0x30/0x54)
[&lt;c01989b4&gt;] (printk) from [&lt;c07500b8&gt;] (s5p_mfc_init_decode_v6+0x1d4/0x284)
[&lt;c07500b8&gt;] (s5p_mfc_init_decode_v6) from [&lt;c07230d0&gt;] (vb2_start_streaming+0x24/0x150)
[&lt;c07230d0&gt;] (vb2_start_streaming) from [&lt;c0724e4c&gt;] (vb2_core_streamon+0x11c/0x15c)
[&lt;c0724e4c&gt;] (vb2_core_streamon) from [&lt;c07478b8&gt;] (vidioc_streamon+0x64/0xa0)
[&lt;c07478b8&gt;] (vidioc_streamon) from [&lt;c0709640&gt;] (__video_do_ioctl+0x28c/0x45c)
[&lt;c0709640&gt;] (__video_do_ioctl) from [&lt;c0709bc8&gt;] (video_usercopy+0x260/0x8a4)
[&lt;c0709bc8&gt;] (video_usercopy) from [&lt;c02b3820&gt;] (do_vfs_ioctl+0xb0/0x9fc)
[&lt;c02b3820&gt;] (do_vfs_ioctl) from [&lt;c02b41a0&gt;] (ksys_ioctl+0x34/0x58)
[&lt;c02b41a0&gt;] (ksys_ioctl) from [&lt;c0101000&gt;] (ret_fast_syscall+0x0/0x28)
Exception stack(0xe73ddfa8 to 0xe73ddff0)
...
---[ end trace 376cf5ba6e0bee93 ]---

Signed-off-by: Marek Szyprowski &lt;m.szyprowski@samsung.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: davinci: vpif_capture: fix memory leak in vpif_probe()</title>
<updated>2019-07-26T07:12:34Z</updated>
<author>
<name>Young Xiao</name>
<email>92siuyang@gmail.com</email>
</author>
<published>2019-06-04T12:26:33Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=472a012407aec0a14ec3b17ad58eeee3d2eda4b7'/>
<id>urn:sha1:472a012407aec0a14ec3b17ad58eeee3d2eda4b7</id>
<content type='text'>
[ Upstream commit 64f883cd98c6d43013fb0cea788b63e50ebc068c ]

If vpif_probe() fails on v4l2_device_register() and vpif_probe_complete(),
then memory allocated at initialize_vpif() for global vpif_obj.dev[i]
become unreleased.

The patch adds deallocation of vpif_obj.dev[i] on the error path.

Signed-off-by: Young Xiao &lt;92siuyang@gmail.com&gt;
Acked-by: Lad, Prabhakar &lt;prabhakar.csengg@gmail.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: fdp1: Support M3N and E3 platforms</title>
<updated>2019-07-26T07:12:33Z</updated>
<author>
<name>Kieran Bingham</name>
<email>kieran.bingham+renesas@ideasonboard.com</email>
</author>
<published>2019-05-15T15:39:12Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=f7604fc3eae78eb4a4357f123b54ae87a390be7a'/>
<id>urn:sha1:f7604fc3eae78eb4a4357f123b54ae87a390be7a</id>
<content type='text'>
[ Upstream commit 4e8c120de9268fc26f583268b9d22e7d37c4595f ]

New Gen3 R-Car platforms incorporate the FDP1 with an updated version
register. No code change is required to support these targets, but they
will currently report an error stating that the device can not be
identified.

Update the driver to match against the new device types.

Signed-off-by: Kieran Bingham &lt;kieran.bingham+renesas@ideasonboard.com&gt;
Signed-off-by: Laurent Pinchart &lt;laurent.pinchart+renesas@ideasonboard.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: aspeed: change irq to threaded irq</title>
<updated>2019-07-26T07:12:30Z</updated>
<author>
<name>Jae Hyun Yoo</name>
<email>jae.hyun.yoo@linux.intel.com</email>
</author>
<published>2019-05-31T22:15:41Z</published>
<link rel='alternate' type='text/html' href='https://universe.0xinfinity.dev/distro/kernel/commit/?id=467d4560aea39bfc630049f5a39b053966a9fb14'/>
<id>urn:sha1:467d4560aea39bfc630049f5a39b053966a9fb14</id>
<content type='text'>
[ Upstream commit 12ae1c1bf5db2f33fcd9092a96f630291c4b181a ]

Differently from other Aspeed drivers, this driver calls clock
control APIs in interrupt context. Since ECLK is coupled with a
reset bit in clk-aspeed module, aspeed_clk_enable will make 10ms of
busy waiting delay for triggering the reset and it will eventually
disturb other drivers' interrupt handling. To fix this issue, this
commit changes this driver's irq to threaded irq so that the delay
can be happened in a thread context.

Signed-off-by: Jae Hyun Yoo &lt;jae.hyun.yoo@linux.intel.com&gt;
Reviewed-by: Eddie James &lt;eajames@linux.ibm.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
</feed>
