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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77E54EB64D9 for ; Tue, 4 Jul 2023 07:25:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F107C280065; Tue, 4 Jul 2023 03:25:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id EBE4F280049; Tue, 4 Jul 2023 03:25:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DAE9C280065; Tue, 4 Jul 2023 03:25:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id CA775280049 for ; Tue, 4 Jul 2023 03:25:29 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 6FFAF1A0985 for ; Tue, 4 Jul 2023 07:25:29 +0000 (UTC) X-FDA: 80973093978.19.2806742 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by imf20.hostedemail.com (Postfix) with ESMTP id 773E21C0013 for ; Tue, 4 Jul 2023 07:25:27 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=YEAR3PQM; spf=pass (imf20.hostedemail.com: domain of benjamin.gaignard@collabora.com designates 46.235.227.172 as permitted sender) smtp.mailfrom=benjamin.gaignard@collabora.com; dmarc=pass (policy=quarantine) header.from=collabora.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688455527; a=rsa-sha256; cv=none; b=bKSpfX76X0wRSNLaYvxGT8JyjBWGsrL761Oq8l2T7Zbuw0P42f1CgqQerQ3hoL4V6qUV7C ozKoFKstCsX5UHDkrhMbBbY0xgbfhYgylEqlJzkt522cLhrObHJwjWjMuaLVThwNJmEsOm Nn6sh4LvHuiJVghLuvF7S+YLFt7jiXE= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=collabora.com header.s=mail header.b=YEAR3PQM; spf=pass (imf20.hostedemail.com: domain of benjamin.gaignard@collabora.com designates 46.235.227.172 as permitted sender) smtp.mailfrom=benjamin.gaignard@collabora.com; dmarc=pass (policy=quarantine) header.from=collabora.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688455527; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lzsO88ym4D5Jsq+0UTfYNt04Vym60J67VisVwXWr0No=; b=yZgnGJPUlHjjF3Mny0Uc6/OmkKi51o2PKIeNtPlpBfIx7KMIbE9Fn2ieGHjd92yR9EGbYR DAgoD4SkKB5KQq4fztNjFgdMTugZwPFC+ihSFezs86xJ0n962PRH1JMdiWRme9D8q09SBI Tp+p9txbQQ/WXv4+U8JFdwoicZjLNgw= Received: from [IPV6:2a01:e0a:120:3210:4004:7029:e9d0:4fb5] (unknown [IPv6:2a01:e0a:120:3210:4004:7029:e9d0:4fb5]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id A82F26606F62; Tue, 4 Jul 2023 08:25:25 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1688455525; bh=2q/4L5hciz2ggZ1t2Z3WwVMh1AIANxAxCXBk1pjMMOk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=YEAR3PQMyYh0gLR4d0SnDmZFC+Iv3RaXAuUtAxKKe/692jOINj0sAwIDkv92Syibh Fs7Zch9PulHSWesouSbvVuQHif9c9g+BSoQL/i1Xgz5LBrDqaSVfVLP6miI7BwwMRj cysKbHLVRq2EbWaSqRDsKK7Tu+HZaXDbe7VAEy73pereTMyy1riXYPnZSALZuU+Mqx 7/RHt7ylqI4X8gA3I7lA6QhLtucHwrBn4PggjqXNkcFvRIlSONRPXE87/27nK84//l nvuWKlHxudjjAZ09w/H+qil59pjGbaKEZGZ1SFwttaOjwxpnwm0V2E8M9DCfWBQfdo mzymAkYHRnJ6w== Message-ID: <408859fe-89b9-cfb6-ef5b-01513e64bee1@collabora.com> Date: Tue, 4 Jul 2023 09:25:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [linux-next:master 7313/12815] drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c:1888:5: warning: stack frame size (2208) exceeds limit (2048) in 'rockchip_vpu981_av1_dec_run' Content-Language: en-US To: kernel test robot Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Mauro Carvalho Chehab , linux-media@vger.kernel.org, Nicolas Dufresne , Hans Verkuil References: <202307010357.sY3iLanr-lkp@intel.com> From: Benjamin Gaignard In-Reply-To: <202307010357.sY3iLanr-lkp@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 773E21C0013 X-Stat-Signature: a3h1nhgfsid663q8k3ccmzetd5u513qx X-Rspam-User: X-HE-Tag: 1688455527-604995 X-HE-Meta: U2FsdGVkX18FhF9zATGUEn03aC+SjVYCpqA+JYw4BA2qkxWUgtOTMFTFSgygHvKmg4qQPlPFXXFN8C+ZvTppG1aa4lKbmx2kUMNjJ/UDORDWGkka/rK6mbZAmogaoYThlilDg03E3vCnai8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FiD+OtN0+ed75TRM4MlJPXM6nqlgFL4h8G76+PlPUWhKw1qVyE+IeRhxKLF/xfN6g4v/qv0fTy8Hns3GCkG5aRWXqhKMOKCWw47i+Hd9sa3SSSnOPfMWrMZZGkgX3GnXO5kqN/tG5Oxl7wIA3QSoE+Wv7GckbylMkSTXgtK25ldxBJHuWMOgoGpa/3i/kjkWXxyLK59n3mLo187cQ== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Le 30/06/2023 à 21:45, kernel test robot a écrit : > tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master > head: 6352a698ca5bf26a9199202666b16cf741f579f6 > commit: 727a400686a2c0d25015c9e44916a59b72882f83 [7313/12815] media: verisilicon: Add Rockchip AV1 decoder > config: riscv-randconfig-r021-20230701 (https://download.01.org/0day-ci/archive/20230701/202307010357.sY3iLanr-lkp@intel.com/config) > compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) > reproduce: (https://download.01.org/0day-ci/archive/20230701/202307010357.sY3iLanr-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/202307010357.sY3iLanr-lkp@intel.com/ Arnd have already send a patch to fix this kind of problem: https://lore.kernel.org/lkml/20230616144854.3818934-2-arnd@kernel.org/T/ Regards, Benjamin > > All warnings (new ones prefixed by >>): > >>> drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c:1888:5: warning: stack frame size (2208) exceeds limit (2048) in 'rockchip_vpu981_av1_dec_run' [-Wframe-larger-than] > int rockchip_vpu981_av1_dec_run(struct hantro_ctx *ctx) > ^ > 375/2208 (16.98%) spills, 1833/2208 (83.02%) variables > 1 warning generated. > > > vim +/rockchip_vpu981_av1_dec_run +1888 drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c > > 1887 >> 1888 int rockchip_vpu981_av1_dec_run(struct hantro_ctx *ctx) > 1889 { > 1890 struct hantro_dev *vpu = ctx->dev; > 1891 struct vb2_v4l2_buffer *vb2_src; > 1892 int ret; > 1893 > 1894 hantro_start_prepare_run(ctx); > 1895 > 1896 ret = rockchip_vpu981_av1_dec_prepare_run(ctx); > 1897 if (ret) > 1898 goto prepare_error; > 1899 > 1900 vb2_src = hantro_get_src_buf(ctx); > 1901 if (!vb2_src) { > 1902 ret = -EINVAL; > 1903 goto prepare_error; > 1904 } > 1905 > 1906 rockchip_vpu981_av1_dec_clean_refs(ctx); > 1907 rockchip_vpu981_av1_dec_frame_ref(ctx, vb2_src->vb2_buf.timestamp); > 1908 > 1909 rockchip_vpu981_av1_dec_set_parameters(ctx); > 1910 rockchip_vpu981_av1_dec_set_global_model(ctx); > 1911 rockchip_vpu981_av1_dec_set_tile_info(ctx); > 1912 rockchip_vpu981_av1_dec_set_reference_frames(ctx); > 1913 rockchip_vpu981_av1_dec_set_segmentation(ctx); > 1914 rockchip_vpu981_av1_dec_set_loopfilter(ctx); > 1915 rockchip_vpu981_av1_dec_set_picture_dimensions(ctx); > 1916 rockchip_vpu981_av1_dec_set_cdef(ctx); > 1917 rockchip_vpu981_av1_dec_set_lr(ctx); > 1918 rockchip_vpu981_av1_dec_set_prob(ctx); > 1919 > 1920 hantro_reg_write(vpu, &av1_dec_mode, AV1_DEC_MODE); > 1921 hantro_reg_write(vpu, &av1_dec_out_ec_byte_word, 0); > 1922 hantro_reg_write(vpu, &av1_write_mvs_e, 1); > 1923 hantro_reg_write(vpu, &av1_dec_out_ec_bypass, 1); > 1924 hantro_reg_write(vpu, &av1_dec_clk_gate_e, 1); > 1925 > 1926 hantro_reg_write(vpu, &av1_dec_abort_e, 0); > 1927 hantro_reg_write(vpu, &av1_dec_tile_int_e, 0); > 1928 > 1929 hantro_reg_write(vpu, &av1_dec_alignment, 64); > 1930 hantro_reg_write(vpu, &av1_apf_disable, 0); > 1931 hantro_reg_write(vpu, &av1_apf_threshold, 8); > 1932 hantro_reg_write(vpu, &av1_dec_buswidth, 2); > 1933 hantro_reg_write(vpu, &av1_dec_max_burst, 16); > 1934 hantro_reg_write(vpu, &av1_error_conceal_e, 0); > 1935 hantro_reg_write(vpu, &av1_axi_rd_ostd_threshold, 64); > 1936 hantro_reg_write(vpu, &av1_axi_wr_ostd_threshold, 64); > 1937 > 1938 hantro_reg_write(vpu, &av1_ext_timeout_cycles, 0xfffffff); > 1939 hantro_reg_write(vpu, &av1_ext_timeout_override_e, 1); > 1940 hantro_reg_write(vpu, &av1_timeout_cycles, 0xfffffff); > 1941 hantro_reg_write(vpu, &av1_timeout_override_e, 1); > 1942 > 1943 rockchip_vpu981_av1_dec_set_output_buffer(ctx); > 1944 rockchip_vpu981_av1_dec_set_input_buffer(ctx, vb2_src); > 1945 > 1946 hantro_end_prepare_run(ctx); > 1947 > 1948 hantro_reg_write(vpu, &av1_dec_e, 1); > 1949 > 1950 return 0; > 1951 > 1952 prepare_error: > 1953 hantro_end_prepare_run(ctx); > 1954 hantro_irq_done(vpu, VB2_BUF_STATE_ERROR); > 1955 return ret; > 1956 } > 1957 >