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 02E0DC433F5 for ; Tue, 10 May 2022 17:40:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 532976B0071; Tue, 10 May 2022 13:40:34 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4E14B6B0073; Tue, 10 May 2022 13:40:34 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3A8756B0074; Tue, 10 May 2022 13:40:34 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 27B716B0071 for ; Tue, 10 May 2022 13:40:34 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 4AAD43147D for ; Tue, 10 May 2022 17:40:32 +0000 (UTC) X-FDA: 79450547904.21.7F80582 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by imf19.hostedemail.com (Postfix) with ESMTP id 4B7F21A00A1 for ; Tue, 10 May 2022 17:40:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652204431; x=1683740431; h=date:from:to:cc:subject:message-id:mime-version; bh=SKYhWc6BCpgKoED4Q7RMuStn2TWZvN09RucYvqX+Klw=; b=AOgoS9SFToJFysjX4EX49GPj9gaAyEJtrtLXqspf1u3LPRQGNyBq4inK dSP0rtkWGBkLBLww2FzE5aLETZ4AMDcdoWSLknnfkz7SXEnT10maUUNLC zGTY/6naCq7YfNule+Rylc5As43x4eNofWOwS8qhHSFeyQrLBQALguLCG UY99NsKSBC9gPPRCoYJi40PK+EfvM782TFbW2NCFE0rfsqXZg1S/PNf3Z wmXxkN8PZ56YP/VpihX0XxqoxrGYnhPmGjWJd3n/b1PSh4nAry8AWdVxD rDAOUbjHc1x0uR7mJNAoyXVnSPmq+fK3DMRJiPm2C2OQm7YM4OV8y01Dg A==; X-IronPort-AV: E=McAfee;i="6400,9594,10343"; a="256991867" X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="256991867" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 10:40:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="657753732" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 10 May 2022 10:40:20 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1noTqN-000IDy-Fn; Tue, 10 May 2022 17:40:19 +0000 Date: Wed, 11 May 2022 01:39:24 +0800 From: kernel test robot To: Kenneth Feng Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Linux Memory Management List , Alex Deucher , Yang Wang Subject: [linux-next:master 9330/10661] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:1326:12: warning: stack frame size (1040) exceeds limit (1024) in 'smu_v13_0_7_get_power_profile_mode' Message-ID: <202205110148.mrGBBmTn-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AOgoS9SF; spf=none (imf19.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 134.134.136.20) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-Rspam-User: X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 4B7F21A00A1 X-Stat-Signature: i1txfp8a88h3hmuietcuy9wsgkpwsbq4 X-HE-Tag: 1652204422-187130 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 3bf222d317a20170ee17f082626c1e0f83537e13 commit: 334682ae81513638aa49da9615c2c0054a711ed4 [9330/10661] drm/amd/pm: enable workload type change on smu_v13_0_7 config: riscv-randconfig-r031-20220509 (https://download.01.org/0day-ci/archive/20220511/202205110148.mrGBBmTn-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 18dd123c56754edf62c7042dcf23185c3727610f) 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=334682ae81513638aa49da9615c2c0054a711ed4 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 334682ae81513638aa49da9615c2c0054a711ed4 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash drivers/gpu/drm/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:294:5: warning: no previous prototype for function 'smu_v13_0_7_check_fw_status' [-Wmissing-prototypes] int smu_v13_0_7_check_fw_status(struct smu_context *smu) { ^ drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:294:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int smu_v13_0_7_check_fw_status(struct smu_context *smu) { ^ static >> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c:1326:12: warning: stack frame size (1040) exceeds limit (1024) in 'smu_v13_0_7_get_power_profile_mode' [-Wframe-larger-than] static int smu_v13_0_7_get_power_profile_mode(struct smu_context *smu, char *buf) ^ 2 warnings generated. vim +/smu_v13_0_7_get_power_profile_mode +1326 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/smu_v13_0_7_ppt.c 1325 > 1326 static int smu_v13_0_7_get_power_profile_mode(struct smu_context *smu, char *buf) 1327 { 1328 DpmActivityMonitorCoeffIntExternal_t activity_monitor_external[PP_SMC_POWER_PROFILE_COUNT]; 1329 uint32_t i, j, size = 0; 1330 int16_t workload_type = 0; 1331 int result = 0; 1332 1333 if (!buf) 1334 return -EINVAL; 1335 1336 size += sysfs_emit_at(buf, size, " "); 1337 for (i = 0; i <= PP_SMC_POWER_PROFILE_WINDOW3D; i++) 1338 size += sysfs_emit_at(buf, size, "%-14s%s", amdgpu_pp_profile_name[i], 1339 (i == smu->power_profile_mode) ? "* " : " "); 1340 1341 size += sysfs_emit_at(buf, size, "\n"); 1342 1343 for (i = 0; i <= PP_SMC_POWER_PROFILE_WINDOW3D; i++) { 1344 /* conv PP_SMC_POWER_PROFILE* to WORKLOAD_PPLIB_*_BIT */ 1345 workload_type = smu_cmn_to_asic_specific_index(smu, 1346 CMN2ASIC_MAPPING_WORKLOAD, 1347 i); 1348 if (workload_type < 0) 1349 return -EINVAL; 1350 1351 result = smu_cmn_update_table(smu, 1352 SMU_TABLE_ACTIVITY_MONITOR_COEFF, workload_type, 1353 (void *)(&activity_monitor_external[i]), false); 1354 if (result) { 1355 dev_err(smu->adev->dev, "[%s] Failed to get activity monitor!", __func__); 1356 return result; 1357 } 1358 } 1359 -- 0-DAY CI Kernel Test Service https://01.org/lkp