<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/media/platform/mtk-vcodec, branch linux-4.13.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.13.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-06-20T11:51:56Z</updated>
<entry>
<title>Merge tag 'v4.12-rc6' into patchwork</title>
<updated>2017-06-20T11:51:56Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2017-06-20T11:51:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ff6ccad361df4dfda42b60897cb7e55b3ba13439'/>
<id>urn:sha1:ff6ccad361df4dfda42b60897cb7e55b3ba13439</id>
<content type='text'>
Linux 4.12-rc6

* tag 'v4.12-rc6': (813 commits)
  Linux 4.12-rc6
  mm: larger stack guard gap, between vmas
  virtio_balloon: disable VIOMMU support
  mm: correct the comment when reclaimed pages exceed the scanned pages
  userfaultfd: shmem: handle coredumping in handle_userfault()
  mm: numa: avoid waiting on freed migrated pages
  swap: cond_resched in swap_cgroup_prepare()
  mm/memory-failure.c: use compound_head() flags for huge pages
  perf unwind: Report module before querying isactivation in dwfl unwind
  fs: pass on flags in compat_writev
  objtool: Add fortify_panic as __noreturn function
  powerpc/debug: Add missing warn flag to WARN_ON's non-builtin path
  USB: gadgetfs, dummy-hcd, net2280: fix locking for callbacks
  drm: mxsfb_crtc: Reset the eLCDIF controller
  drm/mgag200: Fix to always set HiPri for G200e4 V2
  i2c: ismt: fix wrong device address when unmap the data buffer
  i2c: rcar: use correct length when unmapping DMA
  powerpc/xive: Fix offset for store EOI MMIOs
  drm/tegra: Correct idr_alloc() minimum id
  drm/tegra: Fix lockup on a use of staging API
  ...

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&gt;
</content>
</entry>
<entry>
<title>[media] mtk-vcodec: Show mtk driver error without DEBUG definition</title>
<updated>2017-06-07T15:32:57Z</updated>
<author>
<name>Hirokazu Honda</name>
</author>
<published>2017-05-30T09:53:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a9fad21ab7f0b83f27f53544111cd43a2fbca034'/>
<id>urn:sha1:a9fad21ab7f0b83f27f53544111cd43a2fbca034</id>
<content type='text'>
A driver error message is shown without DEBUG definition
to find an error and debug easily.

Signed-off-by: Hirokazu Honda &lt;hiroh@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>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_dec: return error at mtk_vdec_pic_info_update()</title>
<updated>2017-05-19T10:12:05Z</updated>
<author>
<name>Mauro Carvalho Chehab</name>
</author>
<published>2017-05-18T13:48:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=36bcba973ad478042d1ffc6e89afd92e8bd17030'/>
<id>urn:sha1:36bcba973ad478042d1ffc6e89afd92e8bd17030</id>
<content type='text'>
Gcc 7.1 complains that:

	drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c: In function 'mtk_vdec_pic_info_update':
	drivers/media/platform/mtk-vcodec/mtk_vcodec_dec.c:284:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
	  int ret;
	      ^~~

Indeed, if debug is disabled, "ret" is never used. The best
fix for it seems to make the fuction to return an error code.

Signed-off-by: Mauro Carvalho Chehab &lt;mchehab@s-opensource.com&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>
</feed>
