llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kenneth Feng <kenneth.feng@amd.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alex Deucher <alexander.deucher@amd.com>,
	Yang Wang <kevinyang.wang@amd.com>
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'
Date: Wed, 11 May 2022 01:39:24 +0800	[thread overview]
Message-ID: <202205110148.mrGBBmTn-lkp@intel.com> (raw)

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 <lkp@intel.com>

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

                 reply	other threads:[~2022-05-10 17:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202205110148.mrGBBmTn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kenneth.feng@amd.com \
    --cc=kevinyang.wang@amd.com \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).