<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/vicodec, branch linux-5.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2019-05-31T13:43:53Z</updated>
<entry>
<title>media: vicodec: avoid clang frame size warning</title>
<updated>2019-05-31T13:43:53Z</updated>
<author>
<name>Arnd Bergmann</name>
</author>
<published>2019-02-22T14:50:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f5cbd513bb8b64e8a8bb350454fe7318021dfd68'/>
<id>urn:sha1:f5cbd513bb8b64e8a8bb350454fe7318021dfd68</id>
<content type='text'>
[ Upstream commit e855165f3dae6f71da859a5f00b85d5368641d61 ]

Clang-9 makes some different inlining decisions compared to gcc, which
leads to a warning about a possible stack overflow problem when building
with CONFIG_KASAN, including when setting asan-stack=0, which avoids
most other frame overflow warnings:

drivers/media/platform/vicodec/codec-fwht.c:673:12: error: stack frame size of 2224 bytes in function 'encode_plane'

Manually adding noinline_for_stack annotations in those functions
called by encode_plane() or decode_plane() that require a significant
amount of kernel stack makes this impossible to happen with any
compiler.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.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: vicodec: reset last_src/dst_buf based on the IS_OUTPUT</title>
<updated>2019-05-31T13:43:51Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-03-13T14:47:13Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=37e27e4fd8f493981977776a9bc4052ce4322b1b'/>
<id>urn:sha1:37e27e4fd8f493981977776a9bc4052ce4322b1b</id>
<content type='text'>
[ Upstream commit 76eb24fc233b8c94b2156ead5811e08d2046ad58 ]

When start_streaming was called both last_src_buf and last_dst_buf
pointers were set to NULL, but this depends on whether the capture
or output queue starts streaming.

When decoding with resolution changes in between the capture queue
has to restart streaming whenever a resolution change occurs. And
that would reset last_src_buf as well, which causes a problem if
the decoder was stopped by the application. Since last_src_buf
is now NULL, the LAST flag is never set for the last capture
buffer.

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: vicodec: bugfix - call v4l2_m2m_buf_copy_metadata also if decoding fails</title>
<updated>2019-05-31T13:43:49Z</updated>
<author>
<name>Dafna Hirschfeld</name>
</author>
<published>2019-03-06T21:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3f0fe090c40333a2f9fa42fb220dbbff9afb8683'/>
<id>urn:sha1:3f0fe090c40333a2f9fa42fb220dbbff9afb8683</id>
<content type='text'>
[ Upstream commit 8eead25cbdf911e17cff321903bd3397bc6ea22c ]

The function 'v4l2_m2m_buf_copy_metadata' should
be called even if decoding/encoding ends with
status VB2_BUF_STATE_ERROR, so that the metadata
is copied from the source buffer to the dest buffer.

Signed-off-by: Dafna Hirschfeld &lt;dafna3@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: vicodec: Add a flag for I-frames in fwht header</title>
<updated>2019-02-18T20:36:23Z</updated>
<author>
<name>Dafna Hirschfeld</name>
</author>
<published>2019-02-15T20:58:53Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=75e3e5b85da199e0c9a885c800933d74ee53ce3c'/>
<id>urn:sha1:75e3e5b85da199e0c9a885c800933d74ee53ce3c</id>
<content type='text'>
Add a flag 'FWHT_FL_I_FRAME' that indicates that
this is an I-frame. This requires incrementing
to version 3

This flag is needed for the upcoming stateless FWHT
decoder since it has to know if an encoded frame is
an I or a P frame.

Signed-off-by: Dafna Hirschfeld &lt;dafna3@gmail.com&gt;
[hverkuil-cisco@xs4all.nl: added the last paragraph of the commit msg]
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: v4l2-mem2mem: Rename v4l2_m2m_buf_copy_data to v4l2_m2m_buf_copy_metadata</title>
<updated>2019-02-07T17:36:33Z</updated>
<author>
<name>Ezequiel Garcia</name>
</author>
<published>2019-02-05T21:20:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4d3d61254d3645d8de738102c3c473b176180a5'/>
<id>urn:sha1:a4d3d61254d3645d8de738102c3c473b176180a5</id>
<content type='text'>
The v4l2_m2m_buf_copy_data helper is used to copy the buffer
metadata, such as its timestamp and its flags.

Therefore, the v4l2_m2m_buf_copy_metadata name is more clear
and avoids confusion with a payload data copy.

Signed-off-by: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
[hverkuil-cisco@xs4all.nl: also fix cedrus_dec.c]
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vicodec: support SOURCE_CHANGE event for decoders only</title>
<updated>2019-02-07T16:51:08Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-01-31T13:21:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=69a9005789ad18806490bd8dc70dd6458319cd28'/>
<id>urn:sha1:69a9005789ad18806490bd8dc70dd6458319cd28</id>
<content type='text'>
The SOURCE_CHANGE event is decoder specific, so don't allow it for
encoders.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vicodec: fill in bus_info in media_device_info</title>
<updated>2019-02-07T16:50:17Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-01-30T13:38:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0247c75b19c0e9554307d842fa1ad914d59a41b1'/>
<id>urn:sha1:0247c75b19c0e9554307d842fa1ad914d59a41b1</id>
<content type='text'>
It is good practice to fill in bus_info.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vicodec: check type in g/s_selection</title>
<updated>2019-02-07T16:49:53Z</updated>
<author>
<name>Hans Verkuil</name>
</author>
<published>2019-01-30T07:33:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=db9a01b32ca9406394e6e7d19c4cdfcf1cbb5058'/>
<id>urn:sha1:db9a01b32ca9406394e6e7d19c4cdfcf1cbb5058</id>
<content type='text'>
Check that the selection buf_type is valid before calling get_q_data() to
avoid hitting the WARN(1) in that function if the buffer type is not valid.

Signed-off-by: Hans Verkuil &lt;hverkuil-cisco@xs4all.nl&gt;
Reported-by: syzbot+44b24cff6bf96006ecfa@syzkaller.appspotmail.com
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vicodec: get_next_header is static</title>
<updated>2019-01-26T11:12:59Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2019-01-26T11:12:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c9d06df612977a88c484668ad0a37bc8e4463b22'/>
<id>urn:sha1:c9d06df612977a88c484668ad0a37bc8e4463b22</id>
<content type='text'>
drivers/media/platform/vicodec/vicodec-core.c:drivers/media/platform/vicodec/vicodec-core.c:210:23:  warning: symbol 'get_next_header' was not declared. Should it be static?
drivers/media/platform/vicodec/vicodec-core.c:210:23: warning: no previous prototype for 'get_next_header' [-Wmissing-prototypes]
 enum vb2_buffer_state get_next_header(struct vicodec_ctx *ctx, u8 **pp, u32 sz)
                       ^~~~~~~~~~~~~~~

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
</content>
</entry>
<entry>
<title>media: vicodec: ensure comp frame pointer kept in range</title>
<updated>2019-01-26T11:10:26Z</updated>
<author>
<name>Dafna Hirschfeld</name>
</author>
<published>2019-01-24T09:51:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f863f222b49a9c7a6cfcc72f1ac74ab14c7a7258'/>
<id>urn:sha1:f863f222b49a9c7a6cfcc72f1ac74ab14c7a7258</id>
<content type='text'>
Make sure that the pointer to the compressed frame does not
get out of the buffer.

Signed-off-by: Dafna Hirschfeld &lt;dafna3@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;
</content>
</entry>
</feed>
