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 74AEFECAAA1 for ; Mon, 12 Sep 2022 05:19:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A192F8D0002; Mon, 12 Sep 2022 01:19:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C93D8D0001; Mon, 12 Sep 2022 01:19:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 86A978D0002; Mon, 12 Sep 2022 01:19:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 76C8F8D0001 for ; Mon, 12 Sep 2022 01:19:38 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 28CF4401D5 for ; Mon, 12 Sep 2022 05:19:38 +0000 (UTC) X-FDA: 79902280836.23.6F4248D Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf27.hostedemail.com (Postfix) with ESMTP id D9C15400EB for ; Mon, 12 Sep 2022 05:19:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662959975; x=1694495975; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=BxxRcQMSTEbbHURVl8pLcFq/DH6w032884NkHFMniaE=; b=U3I9QFF7FAHADxyqiH3aGu8qT80ERkpktsUN/azsWH58vW1OJUL66YzL 1+DzkPjjJSi2TbDDjjPIhYb9TZotCojpExi+FIFHbIJh+cVJJRya0ukKA MTg0xQrQpWzCPSCmXvfJY1d9mkakuJcrhKQ2f2kdmRIP120Nz4xqMWE1+ C1DBuKJVIKddhYWynvCfJGOq8bMKJlbxsHhxRhe+7zhTOzyauY0jdZkNG kcyiC3KQQnxYlETyDdaQ2h3H6+5oLbzW6f6Y+LkU1EfCfMB8mlQnF5smt Gor9IMOXvPoociMc7lSnWQqAtd5va7qpubvcllK8riqWLH/UnYWkUgWWo Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10467"; a="359511667" X-IronPort-AV: E=Sophos;i="5.93,308,1654585200"; d="scan'208";a="359511667" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2022 22:19:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,308,1654585200"; d="scan'208";a="567037339" Received: from lkp-server02.sh.intel.com (HELO 4011df4f4fd3) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 11 Sep 2022 22:19:32 -0700 Received: from kbuild by 4011df4f4fd3 with local (Exim 4.96) (envelope-from ) id 1oXbr2-0002BL-0n; Mon, 12 Sep 2022 05:19:32 +0000 Date: Mon, 12 Sep 2022 13:18:45 +0800 From: kernel test robot To: =?iso-8859-1?Q?Ma=EDra?= Canal Cc: kbuild-all@lists.01.org, Linux Memory Management List , Javier Martinez Canillas Subject: [linux-next:master 190/6488] drivers/gpu/drm/tests/drm_format_test.c:271:1: warning: the frame size of 2568 bytes is larger than 1024 bytes Message-ID: <202209121324.f3axRLMT-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=U3I9QFF7; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1662959977; a=rsa-sha256; cv=none; b=d7OhAuadgsbYG6oXY/vVB8IuLcXNnsYHi7Tfo6BTRSeXHwfLMBxtPVU7nxZQrmXXL7yv8c poyo5Ff2TVlFu3RENVECF5Wz14OTqq6aOLFHUm6u+S4UzJTro4yV7UUfVDLGESjcKV8HnD VFRpk74DNhJDMzhYUxvZzblskpxhTIQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1662959977; 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: references:dkim-signature; bh=d0TAMkp5aJtofJlQ5wR2C1/Iy/l3mVIKFQfGco/WTwI=; b=t6PBE6YeZWMGY0L9hBIZNOGmXbIl36K2bhPQkNVaPAhO3hwFuzMRkdpDIclv7XlFApaMb0 Wzp+NYEgZppUib6V14oKkhhQZm8KS2pLHZOOd9IK5VXvu0plryf1PvjtbaXjCbWZ/KdWMn q1GK5VgChSuDM+jT3i4kKVxCMT9bT6o= Authentication-Results: imf27.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=U3I9QFF7; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspamd-Queue-Id: D9C15400EB X-Stat-Signature: qy59amji4z54jjkytacx43y9gxqcwrww X-Rspam-User: X-Rspamd-Server: rspam02 X-HE-Tag: 1662959975-409288 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: Hi Maíra, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 9a82ccda91ed2b40619cb3c10d446ae1f97bab6e commit: 0421bb0baa84fc93bbb659fe682e19266730f9f1 [190/6488] drm: selftest: convert drm_format selftest to KUnit config: i386-buildonly-randconfig-r002-20220912 (https://download.01.org/0day-ci/archive/20220912/202209121324.f3axRLMT-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=0421bb0baa84fc93bbb659fe682e19266730f9f1 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 0421bb0baa84fc93bbb659fe682e19266730f9f1 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/gpu/drm/tests/drm_format_test.c: In function 'igt_check_drm_format_min_pitch': >> drivers/gpu/drm/tests/drm_format_test.c:271:1: warning: the frame size of 2568 bytes is larger than 1024 bytes [-Wframe-larger-than=] 271 | } | ^ vim +271 drivers/gpu/drm/tests/drm_format_test.c 93 94 static void igt_check_drm_format_min_pitch(struct kunit *test) 95 { 96 const struct drm_format_info *info = NULL; 97 98 /* Test invalid arguments */ 99 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 100 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 101 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 102 103 /* Test 1 plane 8 bits per pixel format */ 104 info = drm_format_info(DRM_FORMAT_RGB332); 105 KUNIT_EXPECT_TRUE(test, info); 106 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 107 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 108 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 109 110 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 1); 111 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 2); 112 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 640); 113 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 1024); 114 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 1920); 115 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 4096); 116 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 671); 117 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), 118 (uint64_t)UINT_MAX); 119 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), 120 (uint64_t)(UINT_MAX - 1)); 121 122 /* Test 1 plane 16 bits per pixel format */ 123 info = drm_format_info(DRM_FORMAT_XRGB4444); 124 KUNIT_EXPECT_TRUE(test, info); 125 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 126 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 127 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 128 129 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 2); 130 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 4); 131 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 1280); 132 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 2048); 133 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 3840); 134 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 8192); 135 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 1342); 136 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), 137 (uint64_t)UINT_MAX * 2); 138 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), 139 (uint64_t)(UINT_MAX - 1) * 2); 140 141 /* Test 1 plane 24 bits per pixel format */ 142 info = drm_format_info(DRM_FORMAT_RGB888); 143 KUNIT_EXPECT_TRUE(test, info); 144 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 145 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 146 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 147 148 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 3); 149 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 6); 150 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 1920); 151 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 3072); 152 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 5760); 153 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 12288); 154 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 2013); 155 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), 156 (uint64_t)UINT_MAX * 3); 157 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), 158 (uint64_t)(UINT_MAX - 1) * 3); 159 160 /* Test 1 plane 32 bits per pixel format */ 161 info = drm_format_info(DRM_FORMAT_ABGR8888); 162 KUNIT_EXPECT_TRUE(test, info); 163 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 164 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 165 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 166 167 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 4); 168 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 8); 169 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 2560); 170 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 4096); 171 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 7680); 172 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 16384); 173 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 2684); 174 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), 175 (uint64_t)UINT_MAX * 4); 176 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), 177 (uint64_t)(UINT_MAX - 1) * 4); 178 179 /* Test 2 planes format */ 180 info = drm_format_info(DRM_FORMAT_NV12); 181 KUNIT_EXPECT_TRUE(test, info); 182 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 183 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 184 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 185 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 2, 0)); 186 187 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 1); 188 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 1), 2); 189 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 2); 190 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 1), 2); 191 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 640); 192 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 320), 640); 193 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 1024); 194 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 512), 1024); 195 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 1920); 196 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 960), 1920); 197 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 4096); 198 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 2048), 4096); 199 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 671); 200 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 336), 672); 201 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), 202 (uint64_t)UINT_MAX); 203 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, UINT_MAX / 2 + 1), 204 (uint64_t)UINT_MAX + 1); 205 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1)), 206 (uint64_t)(UINT_MAX - 1)); 207 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, (UINT_MAX - 1) / 2), 208 (uint64_t)(UINT_MAX - 1)); 209 210 /* Test 3 planes 8 bits per pixel format */ 211 info = drm_format_info(DRM_FORMAT_YUV422); 212 KUNIT_EXPECT_TRUE(test, info); 213 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 214 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 215 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 2, 0)); 216 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 217 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 3, 0)); 218 219 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 1); 220 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 1), 1); 221 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 1), 1); 222 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 2); 223 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 2), 2); 224 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 2), 2); 225 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 640); 226 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 320), 320); 227 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 320), 320); 228 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 1024); 229 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 512), 512); 230 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 512), 512); 231 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 1920); 232 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 960), 960); 233 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 960), 960); 234 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 4096); 235 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 2048), 2048); 236 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 2048), 2048); 237 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 671); 238 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, 336), 336); 239 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, 336), 336); 240 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), 241 (uint64_t)UINT_MAX); 242 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, UINT_MAX / 2 + 1), 243 (uint64_t)UINT_MAX / 2 + 1); 244 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, UINT_MAX / 2 + 1), 245 (uint64_t)UINT_MAX / 2 + 1); 246 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, (UINT_MAX - 1) / 2), 247 (uint64_t)(UINT_MAX - 1) / 2); 248 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 1, (UINT_MAX - 1) / 2), 249 (uint64_t)(UINT_MAX - 1) / 2); 250 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 2, (UINT_MAX - 1) / 2), 251 (uint64_t)(UINT_MAX - 1) / 2); 252 253 /* Test tiled format */ 254 info = drm_format_info(DRM_FORMAT_X0L2); 255 KUNIT_EXPECT_TRUE(test, info); 256 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 0, 0)); 257 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, -1, 0)); 258 KUNIT_EXPECT_FALSE(test, drm_format_info_min_pitch(info, 1, 0)); 259 260 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1), 2); 261 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 2), 4); 262 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 640), 1280); 263 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1024), 2048); 264 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 1920), 3840); 265 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 4096), 8192); 266 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, 671), 1342); 267 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX), 268 (uint64_t)UINT_MAX * 2); 269 KUNIT_EXPECT_EQ(test, drm_format_info_min_pitch(info, 0, UINT_MAX - 1), 270 (uint64_t)(UINT_MAX - 1) * 2); > 271 } 272 -- 0-DAY CI Kernel Test Service https://01.org/lkp