From: kernel test robot <lkp@intel.com>
To: Yunfei Dong <yunfei.dong@mediatek.com>,
Alexandre Courbot <acourbot@chromium.org>,
Hans Verkuil <hverkuil@xs4all.nl>,
Tzung-Bi Shih <tzungbi@chromium.org>,
Tiffany Lin <tiffany.lin@mediatek.com>,
Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-media@vger.kernel.org
Subject: Re: [PATCH v8, 06/17] media: mtk-vcodec: Manage multi hardware information
Date: Fri, 29 Oct 2021 19:02:40 +0800 [thread overview]
Message-ID: <202110291927.P9pdC0We-lkp@intel.com> (raw)
In-Reply-To: <20211029035527.454-7-yunfei.dong@mediatek.com>
[-- Attachment #1: Type: text/plain, Size: 3601 bytes --]
Hi Yunfei,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on media-tree/master]
[also build test WARNING on next-20211028]
[cannot apply to v5.15-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Yunfei-Dong/Support-multi-hardware-decode-using-of_platform_populate/20211029-115813
base: git://linuxtv.org/media_tree.git master
config: riscv-randconfig-r042-20211028 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/0day-ci/linux/commit/7a1387f1cbc2b5bd93234353927e1e588a06adc3
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Yunfei-Dong/Support-multi-hardware-decode-using-of_platform_populate/20211029-115813
git checkout 7a1387f1cbc2b5bd93234353927e1e588a06adc3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c:51:14: warning: cast to smaller integer type 'enum mtk_vdec_hw_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
comp_idx = (enum mtk_vdec_hw_id)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
--
>> drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_hw.c:138:13: warning: cast to smaller integer type 'enum mtk_vdec_hw_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
comp_idx = (enum mtk_vdec_hw_id)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +51 drivers/media/platform/mtk-vcodec/mtk_vcodec_dec_drv.c
28
29 static int mtk_vcodec_comp_device_check(struct mtk_vcodec_ctx *ctx)
30 {
31 struct mtk_vcodec_dev *vdec_dev = ctx->dev;
32 struct platform_device *pdev = vdec_dev->plat_dev;
33 struct device_node *comp_node;
34 enum mtk_vdec_hw_id comp_idx;
35 const struct of_device_id *of_id;
36 int i;
37
38 for (i = 0; i < ARRAY_SIZE(mtk_vdec_hw_match); i++) {
39 of_id = &mtk_vdec_hw_match[i];
40 comp_node = of_find_compatible_node(NULL, NULL,
41 of_id->compatible);
42 if (!comp_node)
43 continue;
44
45 if (!of_device_is_available(comp_node)) {
46 of_node_put(comp_node);
47 dev_err(&pdev->dev, "Fail to get MMSYS node\n");
48 continue;
49 }
50
> 51 comp_idx = (enum mtk_vdec_hw_id)of_id->data;
52 vdec_dev->component_node[comp_idx] = comp_node;
53
54 if (!test_bit(comp_idx, vdec_dev->hardware_bitmap)) {
55 dev_err(&pdev->dev, "Vdec comp_idx is not ready %d.",
56 comp_idx);
57 return -EINVAL;
58 }
59 }
60
61 return 0;
62 }
63
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 41477 bytes --]
next prev parent reply other threads:[~2021-10-29 11:03 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 3:55 [PATCH v8, 00/17] Support multi hardware decode using of_platform_populate Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 01/17] media: mtk-vcodec: Get numbers of register bases from DT Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 02/17] media: mtk-vcodec: Align vcodec wake up interrupt interface Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 03/17] media: mtk-vcodec: Refactor vcodec pm interface Yunfei Dong
2021-10-29 11:35 ` Dafna Hirschfeld
2021-10-30 9:02 ` yunfei.dong
2021-11-09 10:21 ` yunfei.dong
2021-10-29 3:55 ` [PATCH v8, 04/17] media: mtk-vcodec: Build decoder pm file as module Yunfei Dong
2021-10-29 11:42 ` Dafna Hirschfeld
2021-10-30 8:50 ` yunfei.dong
2021-11-09 10:19 ` yunfei.dong
2021-10-29 3:55 ` [PATCH v8, 05/17] media: mtk-vcodec: Support MT8192 Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 06/17] media: mtk-vcodec: Manage multi hardware information Yunfei Dong
2021-10-29 11:02 ` kernel test robot [this message]
2021-10-29 3:55 ` [PATCH v8, 07/17] dt-bindings: media: mtk-vcodec: Separate video encoder and decoder dt-bindings Yunfei Dong
2021-10-29 11:49 ` Dafna Hirschfeld
2021-10-30 8:45 ` yunfei.dong
2021-11-09 10:17 ` yunfei.dong
2021-10-29 3:55 ` [PATCH v8, 08/17] media: mtk-vcodec: Use pure single core for MT8183 Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 09/17] media: mtk-vcodec: Add irq interface for multi hardware Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 10/17] media: mtk-vcodec: Add msg queue feature for lat and core architecture Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 11/17] media: mtk-vcodec: Generalize power and clock on/off interfaces Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 12/17] media: mtk-vcodec: Add new interface to lock different hardware Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 13/17] media: mtk-vcodec: Add work queue for core hardware decode Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 14/17] media: mtk-vcodec: Support 34bits dma address for vdec Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 15/17] dt-bindings: media: mtk-vcodec: Adds decoder dt-bindings for mt8192 Yunfei Dong
2021-11-02 13:51 ` Rob Herring
2021-10-29 3:55 ` [PATCH v8, 16/17] media: mtk-vcodec: Add core dec and dec end ipi msg Yunfei Dong
2021-10-29 3:55 ` [PATCH v8, 17/17] media: mtk-vcodec: Use codec type to separate different hardware Yunfei Dong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202110291927.P9pdC0We-lkp@intel.com \
--to=lkp@intel.com \
--cc=acourbot@chromium.org \
--cc=andrew-ct.chen@mediatek.com \
--cc=hverkuil@xs4all.nl \
--cc=kbuild-all@lists.01.org \
--cc=linux-media@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=robh+dt@kernel.org \
--cc=tiffany.lin@mediatek.com \
--cc=tzungbi@chromium.org \
--cc=yunfei.dong@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox