<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/mtk-vcodec, branch linux-4.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-05-28T17:23:02Z</updated>
<entry>
<title>mtk-vcodec: Use designated initializers</title>
<updated>2017-05-28T17:23:02Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2017-05-06T08:10:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=243dd05d39aa14fac2ffde75cc66dee3270896f8'/>
<id>urn:sha1:243dd05d39aa14fac2ffde75cc66dee3270896f8</id>
<content type='text'>
The randstruct plugin requires designated initializers for structures
that are entirely function pointers.

Cc: Wu-Cheng Li &lt;wuchengli@chromium.org&gt;
Cc: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Cc: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: avoid warnings because of empty macros</title>
<updated>2017-04-19T10:48:56Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2017-04-19T10:48:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5bc3ebc3c6f57c2b30126f113bc35ec95c6f5b5d'/>
<id>urn:sha1:5bc3ebc3c6f57c2b30126f113bc35ec95c6f5b5d</id>
<content type='text'>
Remove those gcc warnings:

	drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c: In function 'mtk_vcodec_dec_pw_on':
	drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_pm.c:114:51: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
	   mtk_v4l2_err("pm_runtime_get_sync fail %d", ret);
	                                                   ^

By adding braces.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] media: mtk-vcodec: remove informative log</title>
<updated>2017-04-19T10:42:45Z</updated>
<author>
<name>Minghsiu Tsai</name>
</author>
<published>2017-04-05T10:54:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=83bb5869859d5f88f85f7b29c47ba7fe877a1b34'/>
<id>urn:sha1:83bb5869859d5f88f85f7b29c47ba7fe877a1b34</id>
<content type='text'>
Driver is stable. Remove DEBUG definition from driver.

There are debug message in /var/log/messages if DEBUG is defined,
such as:
[MTK_V4L2] level=0 fops_vcodec_open(),170: decoder capability 0
[MTK_V4L2] level=0 fops_vcodec_open(),177: 16000000.vcodec decoder [0]
[MTK_V4L2] level=0 fops_vcodec_release(),200: [0] decoder

Signed-off-by: Minghsiu Tsai &lt;minghsiu.tsai@mediatek.com&gt;
Acked-by: Tiffany Lin &lt;Tiffany.lin@mediatek.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] vcodec: mediatek: Remove double parentheses</title>
<updated>2017-04-05T18:09:20Z</updated>
<author>
<name>Matthias Kaehlcke</name>
</author>
<published>2017-03-17T21:01:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1085cbf271e4f9fe8c4064877d39335d327e662f'/>
<id>urn:sha1:1085cbf271e4f9fe8c4064877d39335d327e662f</id>
<content type='text'>
The extra pairs of parentheses are not needed and cause clang
warnings like this:

drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
                if ((inst-&gt;work_bufs[i].size == 0))
                     ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: remove extraneous parentheses around the comparison to silence this warning
                if ((inst-&gt;work_bufs[i].size == 0))
                    ~                        ^   ~
drivers/media/platform/mtk-vcodec/venc/venc_vp8_if.c:158:32: note: use '=' to turn this equality comparison into an assignment
                if ((inst-&gt;work_bufs[i].size == 0))
                                             ^~
                                             =

Signed-off-by: Matthias Kaehlcke &lt;mka@chromium.org&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: check the vp9 decoder buffer index from VPU</title>
<updated>2017-03-22T14:26:47Z</updated>
<author>
<name>Wu-Cheng Li</name>
</author>
<published>2017-03-08T03:40:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8a2a41ee290c35e118f7a372454401e5a0f8b51'/>
<id>urn:sha1:e8a2a41ee290c35e118f7a372454401e5a0f8b51</id>
<content type='text'>
VPU firmware has a bug and may return invalid buffer index for
some vp9 videos. Check the buffer indexes before accessing the
buffer.

Signed-off-by: Wu-Cheng Li &lt;wuchengli@chromium.org&gt;
Acked-by: Tiffany Lin &lt;Tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: remove redundant return value check of platform_get_resource()</title>
<updated>2017-03-22T14:23:20Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2017-02-07T15:16:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3876420a88807e7d21057920d571ca9daf5fa615'/>
<id>urn:sha1:3876420a88807e7d21057920d571ca9daf5fa615</id>
<content type='text'>
Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource().

Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Acked-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: fix build warnings without DEBUG</title>
<updated>2017-02-08T14:08:20Z</updated>
<author>
<name>Minghsiu Tsai</name>
</author>
<published>2017-02-08T02:09:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9eeb0ed0f30938f31a3d9135a88b9502192c18dd'/>
<id>urn:sha1:9eeb0ed0f30938f31a3d9135a88b9502192c18dd</id>
<content type='text'>
After removing DEBUG from mtk_vcodec_util.h, some build warnings are
generated as the following:
.../drivers/media/platform/mtk-vcodec/vdec_vpu_if.c: In function 'vcodec_vpu_send_msg':
.../drivers/media/platform/mtk-vcodec/vdec_vpu_if.c:73:11: warning: unused variable 'msg_id' [-Wunused-variable]
  uint32_t msg_id = *(uint32_t *)msg;
           ^
.../drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c: In function 'vb2ops_vdec_buf_queue':
.../drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c:1129:7: warning: unused variable 'log_level' [-Wunused-variable]
   int log_level = ret ? 0 : 1;
       ^
.../drivers/media/platform/mtk-vcodec/venc_vpu_if.c: In function 'vpu_enc_send_msg':
.../drivers/media/platform/mtk-vcodec/venc_vpu_if.c:82:12: warning: unused variable 'msg_id' [-Wunused-variable]
   uint32_t msg_id = *(uint32_t *)msg;
            ^

It is because mtk_vcodec_debug() and mtk_vcodec_err() are defined as empty
macros. Without DEBUG definition, the variable for debugging is not used
anymore. Fixing build warnings by moving the assignment of the
variable to the argument of mtk_vcodec_debug() and mtk_vcodec_err().
Within the patch, build pass with/without DEBUG definition, and functions
still work fine.

Signed-off-by: Minghsiu Tsai &lt;minghsiu.tsai@mediatek.com&gt;
Reviewed-by: Daniel Kurtz &lt;djkurtz@chromium.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: use V4L2_DEC_CMD_STOP to implement flush</title>
<updated>2017-02-03T09:49:24Z</updated>
<author>
<name>Tiffany Lin</name>
</author>
<published>2016-12-02T02:38:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=4865fffa834884ffc49a551bb3c7ac8a76e8585d'/>
<id>urn:sha1:4865fffa834884ffc49a551bb3c7ac8a76e8585d</id>
<content type='text'>
Also remove the code using size-0 OUTPUT buffer to flush.

Signed-off-by: Tiffany Lin &lt;tiffany.lin@mediatek.com&gt;
Signed-off-by: Wu-Cheng Li &lt;wuchengli@chromium.org&gt;
Reviewed-by: Kuang-che Wu &lt;kcwu@chromium.org&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: use designated initializers</title>
<updated>2017-01-31T09:42:56Z</updated>
<author>
<name>Kees Cook</name>
</author>
<published>2016-12-17T01:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6351db2b4df3e086793b2472cc124fb9ae8d8458'/>
<id>urn:sha1:6351db2b4df3e086793b2472cc124fb9ae8d8458</id>
<content type='text'>
Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, with most initializer fixes
extracted from grsecurity.

Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: add index check in decoder vidioc_qbuf</title>
<updated>2016-11-16T17:27:43Z</updated>
<author>
<name>Wu-Cheng Li</name>
</author>
<published>2016-11-10T05:24:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b7ccb9fb7994d0340314a5d467a8c4d3e37d6531'/>
<id>urn:sha1:b7ccb9fb7994d0340314a5d467a8c4d3e37d6531</id>
<content type='text'>
vb2_qbuf will check the buffer index. If a driver overrides
vidioc_qbuf and use the buffer index, the driver needs to check
the index.

Signed-off-by: Wu-Cheng Li &lt;wuchengli@chromium.org&gt;
Signed-off-by: Hans Verkuil &lt;hans.verkuil@cisco.com&gt;
Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
</feed>
