From: kernel test robot <lkp@intel.com>
To: Mario Limonciello <mario.limonciello@amd.com>,
Huang Rui <ray.huang@amd.com>,
Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Rafael J . Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>,
Robert Moore <robert.moore@intel.com>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pm@vger.kernel.org, devel@acpica.org,
Gautham Ranjal Shenoy <gautham.shenoy@amd.com>,
Wyes Karny <Wyes.Karny@amd.com>, Perry Yuan <perry.yuan@amd.com>,
Mario Limonciello <mario.limonciello@amd.com>
Subject: Re: [PATCH 4/4] cpufreq: intel_pstate: Use the acpi_pm_profile_server() symbol
Date: Tue, 13 Jun 2023 18:09:27 +0800 [thread overview]
Message-ID: <202306131736.HZQ9caR6-lkp@intel.com> (raw)
In-Reply-To: <20230605151133.2615-5-mario.limonciello@amd.com>
Hi Mario,
kernel test robot noticed the following build errors:
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on linus/master v6.4-rc6 next-20230613]
[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/Mario-Limonciello/ACPI-CPPC-Add-a-symbol-to-check-if-the-preferred-profile-is-a-server/20230605-231602
base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link: https://lore.kernel.org/r/20230605151133.2615-5-mario.limonciello%40amd.com
patch subject: [PATCH 4/4] cpufreq: intel_pstate: Use the acpi_pm_profile_server() symbol
config: i386-buildonly-randconfig-r006-20230612 (https://download.01.org/0day-ci/archive/20230613/202306131736.HZQ9caR6-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build):
mkdir -p ~/bin
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add rafael-pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git
git fetch rafael-pm linux-next
git checkout rafael-pm/linux-next
b4 shazam https://lore.kernel.org/r/20230605151133.2615-5-mario.limonciello@amd.com
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/cpufreq/
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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306131736.HZQ9caR6-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/cpufreq/intel_pstate.c:2397:8: error: call to undeclared function 'acpi_pm_profile_server'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
if (acpi_pm_profile_server())
^
1 error generated.
vim +/acpi_pm_profile_server +2397 drivers/cpufreq/intel_pstate.c
2376
2377 static int intel_pstate_init_cpu(unsigned int cpunum)
2378 {
2379 struct cpudata *cpu;
2380
2381 cpu = all_cpu_data[cpunum];
2382
2383 if (!cpu) {
2384 cpu = kzalloc(sizeof(*cpu), GFP_KERNEL);
2385 if (!cpu)
2386 return -ENOMEM;
2387
2388 WRITE_ONCE(all_cpu_data[cpunum], cpu);
2389
2390 cpu->cpu = cpunum;
2391
2392 cpu->epp_default = -EINVAL;
2393
2394 if (hwp_active) {
2395 intel_pstate_hwp_enable(cpu);
2396
> 2397 if (acpi_pm_profile_server())
2398 hwp_boost = true;
2399 }
2400 } else if (hwp_active) {
2401 /*
2402 * Re-enable HWP in case this happens after a resume from ACPI
2403 * S3 if the CPU was offline during the whole system/resume
2404 * cycle.
2405 */
2406 intel_pstate_hwp_reenable(cpu);
2407 }
2408
2409 cpu->epp_powersave = -EINVAL;
2410 cpu->epp_policy = 0;
2411
2412 intel_pstate_get_cpu_pstates(cpu);
2413
2414 pr_debug("controlling: cpu %d\n", cpunum);
2415
2416 return 0;
2417 }
2418
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-06-13 10:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 15:11 [PATCH 0/4] Enable amd-pstate active mode by default Mario Limonciello
2023-06-05 15:11 ` [PATCH 1/4] ACPI: CPPC: Add a symbol to check if the preferred profile is a server Mario Limonciello
2023-06-05 15:11 ` [PATCH 2/4] cpufreq: amd-pstate: Set a fallback policy based on preferred_profile Mario Limonciello
2023-06-05 15:11 ` [PATCH 3/4] cpufreq: amd-pstate: Add a kernel config option to set default mode Mario Limonciello
2023-06-05 15:11 ` [PATCH 4/4] cpufreq: intel_pstate: Use the acpi_pm_profile_server() symbol Mario Limonciello
2023-06-13 10:09 ` kernel test robot [this message]
2023-06-05 16:07 ` [PATCH 0/4] Enable amd-pstate active mode by default Yuan, Perry
2023-06-05 16:10 ` Yuan, Perry
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=202306131736.HZQ9caR6-lkp@intel.com \
--to=lkp@intel.com \
--cc=Wyes.Karny@amd.com \
--cc=devel@acpica.org \
--cc=gautham.shenoy@amd.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mario.limonciello@amd.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=perry.yuan@amd.com \
--cc=rafael@kernel.org \
--cc=ray.huang@amd.com \
--cc=robert.moore@intel.com \
--cc=srinivas.pandruvada@linux.intel.com \
--cc=viresh.kumar@linaro.org \
/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