Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2006598rwr; Fri, 28 Apr 2023 05:05:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7JZMRvm/71XaHyUEu4QE3pQEh6fJWdEtb/ijUiImv1XkCLHuo+oQ8J1fZY+h1iEyzFeBv9 X-Received: by 2002:a05:6a20:c198:b0:f0:5f9a:f5d5 with SMTP id bg24-20020a056a20c19800b000f05f9af5d5mr5494992pzb.41.1682683548113; Fri, 28 Apr 2023 05:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682683548; cv=none; d=google.com; s=arc-20160816; b=RtL8u0xJxN57CmJV2mzTp58Yued8cWGivlvgbdwVfCR2XEwl7Tb6CqGqMTn79n63Px xkX1CapUqdA35aTIws0tBNFE/nbRKLQjX6hMvddI7TmI9maGtOsguTwh/pSbA1+KZXZ9 cPcHz2pkKyeyG+UcUi8RbCQ2UpSgphDzxxhWxZJ0Rmb5jYA6yG9iETRg49YIfQ6j5KRi XNQR2Ren1S0ZdbztXMkNKow6zCtjDCw9/+9IX3WOM4Az1X9dPdQrt5qKlf9/lcCEgcT5 gH2vvqQ1Q7kxiW73V9pjFQW80R4HhxJmfeqVdBxFlY0hd1bhLwIQ6UwV3VUTi4grr3m5 qRtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7D0+YocoeJvf1thUGaGSO463SdmHYCVEGmBaguCXaH0=; b=Zp2mdjVU31K0K+pYy98Vp15fcTbpNgEHZop5bvhAf6vsl3PLN/GPU0hU8ihOi3KxQZ 8WIkGuNpcZq8aM+zD34+/cX9JTu3wzB/bwbiTbiqVHl/w/KIHC/nxdOoIshme8Fr+5Ji 9c7a8hHUJWB8Jdl082muUJRx2VW7e4A3+iFxj+W0rNaa16R+kVyw/wM5FPSS1+5DrM5e SN8SjMEs3pIaItREbM4sVaPyBGG9UPKAWwlUlndT+/31dfl+RlAs0FTy1OZdQfHc6hKk mEapISpcYSNQT9Zyy/LF24X+6/cRZgj8pCrSkpWUI5vj6SFDeJwB7bxSJvryrlV+oGwT tMgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eXta0Jh3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l189-20020a6225c6000000b00640f04eb325si8580054pfl.229.2023.04.28.05.05.33; Fri, 28 Apr 2023 05:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eXta0Jh3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345907AbjD1Lpc (ORCPT + 99 others); Fri, 28 Apr 2023 07:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345888AbjD1Lp3 (ORCPT ); Fri, 28 Apr 2023 07:45:29 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A5B359FC; Fri, 28 Apr 2023 04:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682682321; x=1714218321; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=rBbdv+hk3UP8M0WMEzt4+wWIQYS5wnCgtva4F2d/DLY=; b=eXta0Jh3H6+9xn8MRC/gAGsDxuTbZYhDeYhbikCeHMbXr7C2I/8PObww 2gjDsaRRLkAxlu/suco67pWL2EHiPaEIRc1LluNevvIq6Kd/RTBFihS/p Tt5mriybMZvmS899f0/ietktWJtluqbgbpJ0agHEncfxsqsLdszpoyRL4 +nr7KJSrGua1lw+5PZyYIexYKlPkdJvxq3Ry2H2u+6qai9/3Wip3a+a6N HgJOkq/DvIgrRD25YmtJ/kltZdBen5aI0HFQtzW3Ry4Lbg2UnGacC5yHK SHIJAfLjBNjdTmnaSj+XShnf5OByWtNjE3Nj8Vgv6RpldyBd4y7MgFvRB g==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="349750747" X-IronPort-AV: E=Sophos;i="5.99,234,1677571200"; d="scan'208";a="349750747" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2023 04:42:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="645092016" X-IronPort-AV: E=Sophos;i="5.99,234,1677571200"; d="scan'208";a="645092016" Received: from lkp-server01.sh.intel.com (HELO 5bad9d2b7fcb) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 28 Apr 2023 04:42:31 -0700 Received: from kbuild by 5bad9d2b7fcb with local (Exim 4.96) (envelope-from ) id 1psMUh-0000Ov-0s; Fri, 28 Apr 2023 11:42:31 +0000 Date: Fri, 28 Apr 2023 19:41:55 +0800 From: kernel test robot To: Yunfei Dong , Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , "Nicolas F . R . A . Prado" Cc: oe-kbuild-all@lists.linux.dev, Matthias Brugger , Yunfei Dong , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Subject: Re: [PATCH v2] media: mediatek: vcodec: support stateless hevc decoder Message-ID: <202304281935.cHbo4d1P-lkp@intel.com> References: <20230428082329.28606-1-yunfei.dong@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230428082329.28606-1-yunfei.dong@mediatek.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yunfei, kernel test robot noticed the following build warnings: [auto build test WARNING on media-tree/master] [also build test WARNING on linus/master v6.3 next-20230427] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Yunfei-Dong/media-mediatek-vcodec-support-stateless-hevc-decoder/20230428-162427 base: git://linuxtv.org/media_tree.git master patch link: https://lore.kernel.org/r/20230428082329.28606-1-yunfei.dong%40mediatek.com patch subject: [PATCH v2] media: mediatek: vcodec: support stateless hevc decoder config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230428/202304281935.cHbo4d1P-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 12.1.0 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 # https://github.com/intel-lab-lkp/linux/commit/193b8e8eece4506c90eac97b973ef059aaf5c0e1 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Yunfei-Dong/media-mediatek-vcodec-support-stateless-hevc-decoder/20230428-162427 git checkout 193b8e8eece4506c90eac97b973ef059aaf5c0e1 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/media/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304281935.cHbo4d1P-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c: In function 'vdec_hevc_fill_dpb_info': >> drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c:412:24: warning: ordered comparison of pointer with integer zero [-Wextra] 412 | if (vb < 0) { | ^ drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c: In function 'vdec_hevc_copy_decode_params': drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c:587:63: error: 'const struct v4l2_ctrl_hevc_decode_params' has no member named 'num_delta_pocs_of_ref_rps_idx' 587 | dst_params->num_delta_pocs_of_ref_rps_idx = src_params->num_delta_pocs_of_ref_rps_idx; | ^~ drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c: In function 'vdec_hevc_slice_fill_decode_parameters': drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c:630:27: error: 'const struct v4l2_ctrl_hevc_decode_params' has no member named 'num_delta_pocs_of_ref_rps_idx' 630 | dec_params->num_delta_pocs_of_ref_rps_idx; | ^~ vim +412 drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c 395 396 static void vdec_hevc_fill_dpb_info(struct mtk_vcodec_ctx *ctx, 397 struct slice_api_hevc_decode_param *decode_params, 398 struct mtk_hevc_dpb_info *hevc_dpb_info) 399 { 400 const struct slice_hevc_dpb_entry *dpb; 401 struct vb2_queue *vq; 402 struct vb2_buffer *vb; 403 int index; 404 405 vq = v4l2_m2m_get_vq(ctx->m2m_ctx, V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE); 406 for (index = 0; index < V4L2_HEVC_DPB_ENTRIES_NUM_MAX; index++) { 407 dpb = &decode_params->dpb[index]; 408 if (index >= decode_params->num_active_dpb_entries) 409 continue; 410 411 vb = vb2_find_buffer(vq, dpb->timestamp); > 412 if (vb < 0) { 413 dev_err(&ctx->dev->plat_dev->dev, 414 "Reference invalid: dpb_index(%d) timestamp(%lld)", 415 index, dpb->timestamp); 416 continue; 417 } 418 419 hevc_dpb_info[index].field = dpb->field_pic; 420 421 hevc_dpb_info[index].y_dma_addr = vb2_dma_contig_plane_dma_addr(vb, 0); 422 if (ctx->q_data[MTK_Q_DATA_DST].fmt->num_planes == 2) 423 hevc_dpb_info[index].c_dma_addr = vb2_dma_contig_plane_dma_addr(vb, 1); 424 else 425 hevc_dpb_info[index].c_dma_addr = 426 hevc_dpb_info[index].y_dma_addr + ctx->picinfo.fb_sz[0]; 427 } 428 } 429 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests