From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C47EEB64D9 for ; Thu, 29 Jun 2023 05:11:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0YdLl8/99MRVWFZDNzzHD24jSvyupCg1AADHHOEsY4w=; b=EjzuEqwfHDMgj/ PWFbJ8lwHRmKMu2AhC/NEoFN5dw3JioOUTS9XClUiJqXD0TUmHfUqWPZOgT80+LSXDEJggu2NyFwh aEYasTbEeyQbFpZi5DPdn8Vn/4ylb2iDguGMtNRZdemBuffg04bMGJwnG5YQGCH6BldwCqI8JuWQI TUTq/zLjp+SM3tr54xYMDY5E8qh4GWdSwtQsRRRtYUS/48ZulNtoHPNRuhA4qyWCySYjUvie3IHaL XGvMYvQkQnwlKKtxxFzbJ3a47wmSobbjkBM0kGXyNC27BgF6aLRmJKxx14hgX75tmm8qTX5NGSIZk 8+obVRYmu7o2jNCL3fsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qEjvL-00HZhc-07; Thu, 29 Jun 2023 05:10:31 +0000 Received: from mga17.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qEjvH-00HZew-22; Thu, 29 Jun 2023 05:10:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688015427; x=1719551427; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6LQAu91eVGZWW31xWhtJ43lX+y8sn/3qZXLOGp6FHk0=; b=mN5LjK0Ck8dKx099R4GHbh1MUPLrERaztto0yifO6dMvBTfzWasMiGVB E25UWXUDNPI+Sp6D90ks6/QJ5Xq+vXmMz6Ay6VZ154qJL2YAltgwHmSd0 kI8M6UwskjsWsEVCdAYXACk8tzoLCNtIGYKLohMHHUwUFR5oDlK3xv9nT Dmc2/cl+qQ7fR1dr8NGhjrX5bxekjKbT5N4Uhvwt0JqKT2FqKdKd6Buz9 bwroTsdPGtU71mCw1zh4YGXTDvk7NF/iux2R3DuhTgjsA07zzD+KT0NRN q34rvtilgbxPxwoaOk31ILZQK3Zu/BYHa3u0bENLCsTVIzX721B9E/G4S A==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="342362855" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="342362855" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 22:10:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="694496366" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="694496366" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 28 Jun 2023 22:10:11 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qEjv0-000DqN-1O; Thu, 29 Jun 2023 05:10:10 +0000 Date: Thu, 29 Jun 2023 13:09:26 +0800 From: kernel test robot To: Xiaoyong Lu , Yunfei Dong , Alexandre Courbot , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa Cc: oe-kbuild-all@lists.linux.dev, linux-media@vger.kernel.org, Irui Wang , George Sun , Steve Cho , devicetree@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com, linux-kernel@vger.kernel.org, dri-devel , Xiaoyong Lu , linux-mediatek@lists.infradead.org, Hsin-Yi Wang , Fritz Koenig , linux-arm-kernel@lists.infradead.org Subject: Re: media: mediatek: vcodec: fix AV1 decode fail for 36bit iova Message-ID: <202306291250.o5AmGFiC-lkp@intel.com> References: <20230628054111.8967-1-xiaoyong.lu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230628054111.8967-1-xiaoyong.lu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230628_221027_677371_86CC1581 X-CRM114-Status: GOOD ( 15.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Xiaoyong, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20230627] [cannot apply to media-tree/master v6.4 v6.4-rc7 v6.4-rc6 linus/master v6.4] [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/Xiaoyong-Lu/media-mediatek-vcodec-fix-AV1-decode-fail-for-36bit-iova/20230628-134327 base: next-20230627 patch link: https://lore.kernel.org/r/20230628054111.8967-1-xiaoyong.lu%40mediatek.com patch subject: media: mediatek: vcodec: fix AV1 decode fail for 36bit iova config: arm-allmodconfig (https://download.01.org/0day-ci/archive/20230629/202306291250.o5AmGFiC-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230629/202306291250.o5AmGFiC-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306291250.o5AmGFiC-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c: In function 'vdec_av1_slice_setup_tile_buffer': >> drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c:1676:91: warning: suggest parentheses around '+' inside '<<' [-Wparentheses] 1676 | tile_info_buf[tile_info_base + 1] = (unsigned int)(tile_buf_pa >> 4) << 4 + | ~~^ 1677 | ((unsigned int)(tile_buf_pa >> 32) & 0xf); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for SM_GCC_8350 Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] && (ARM64 || COMPILE_TEST [=n]) Selected by [m]: - SM_VIDEOCC_8350 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] WARNING: unmet direct dependencies detected for SM_GCC_8450 Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] && (ARM64 || COMPILE_TEST [=n]) Selected by [m]: - SM_GPUCC_8450 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] - SM_VIDEOCC_8450 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] WARNING: unmet direct dependencies detected for SM_GCC_8550 Depends on [n]: COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] && (ARM64 || COMPILE_TEST [=n]) Selected by [m]: - SM_GPUCC_8550 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] - SM_VIDEOCC_8550 [=m] && COMMON_CLK [=y] && COMMON_CLK_QCOM [=m] vim +1676 drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c 1649 1650 static void vdec_av1_slice_setup_tile_buffer(struct vdec_av1_slice_instance *instance, 1651 struct vdec_av1_slice_vsi *vsi, 1652 struct mtk_vcodec_mem *bs) 1653 { 1654 struct vdec_av1_slice_tile_group *tile_group = &instance->tile_group; 1655 struct vdec_av1_slice_uncompressed_header *uh = &vsi->frame.uh; 1656 struct vdec_av1_slice_tile *tile = &uh->tile; 1657 u32 tile_num, tile_row, tile_col; 1658 u32 allow_update_cdf = 0; 1659 u32 sb_boundary_x_m1 = 0, sb_boundary_y_m1 = 0; 1660 int tile_info_base; 1661 u64 tile_buf_pa; 1662 u32 *tile_info_buf = instance->tile.va; 1663 u64 pa = (u64)bs->dma_addr; 1664 1665 if (uh->disable_cdf_update == 0) 1666 allow_update_cdf = 1; 1667 1668 for (tile_num = 0; tile_num < tile_group->num_tiles; tile_num++) { 1669 /* each uint32 takes place of 4 bytes */ 1670 tile_info_base = (AV1_TILE_BUF_SIZE * tile_num) >> 2; 1671 tile_row = tile_num / tile->tile_cols; 1672 tile_col = tile_num % tile->tile_cols; 1673 tile_info_buf[tile_info_base + 0] = (tile_group->tile_size[tile_num] << 3); 1674 tile_buf_pa = pa + tile_group->tile_start_offset[tile_num]; 1675 > 1676 tile_info_buf[tile_info_base + 1] = (unsigned int)(tile_buf_pa >> 4) << 4 + 1677 ((unsigned int)(tile_buf_pa >> 32) & 0xf); 1678 tile_info_buf[tile_info_base + 2] = (tile_buf_pa % 16) << 3; 1679 1680 sb_boundary_x_m1 = 1681 (tile->mi_col_starts[tile_col + 1] - tile->mi_col_starts[tile_col] - 1) & 1682 0x3f; 1683 sb_boundary_y_m1 = 1684 (tile->mi_row_starts[tile_row + 1] - tile->mi_row_starts[tile_row] - 1) & 1685 0x1ff; 1686 1687 tile_info_buf[tile_info_base + 3] = (sb_boundary_y_m1 << 7) | sb_boundary_x_m1; 1688 tile_info_buf[tile_info_base + 4] = ((allow_update_cdf << 18) | (1 << 16)); 1689 1690 if (tile_num == tile->context_update_tile_id && 1691 uh->disable_frame_end_update_cdf == 0) 1692 tile_info_buf[tile_info_base + 4] |= (1 << 17); 1693 1694 mtk_vcodec_debug(instance, "// tile buf %d pos(%dx%d) offset 0x%x\n", 1695 tile_num, tile_row, tile_col, tile_info_base); 1696 mtk_vcodec_debug(instance, "// %08x %08x %08x %08x\n", 1697 tile_info_buf[tile_info_base + 0], 1698 tile_info_buf[tile_info_base + 1], 1699 tile_info_buf[tile_info_base + 2], 1700 tile_info_buf[tile_info_base + 3]); 1701 mtk_vcodec_debug(instance, "// %08x %08x %08x %08x\n", 1702 tile_info_buf[tile_info_base + 4], 1703 tile_info_buf[tile_info_base + 5], 1704 tile_info_buf[tile_info_base + 6], 1705 tile_info_buf[tile_info_base + 7]); 1706 } 1707 } 1708 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel