lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202301061708.s3JhGPs4-lkp@intel.com>
Date:   Fri, 6 Jan 2023 17:38:54 +0800
From:   kernel test robot <lkp@...el.com>
To:     Perry Yuan <perry.yuan@....com>, rafael.j.wysocki@...el.com,
        Mario.Limonciello@....com, ray.huang@....com,
        viresh.kumar@...aro.org
Cc:     oe-kbuild-all@...ts.linux.dev, Deepak.Sharma@....com,
        Nathan.Fontenot@....com, Alexander.Deucher@....com,
        Shimmer.Huang@....com, Xiaojian.Du@....com, Li.Meng@....com,
        wyes.karny@....com, linux-pm@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH v10 03/12] cpufreq: intel_pstate: use common macro
 definition for Energy Preference Performance(EPP)

Hi Perry,

I love your patch! Yet something to improve:

[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on linus/master v6.2-rc2 next-20230106]
[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/Perry-Yuan/ACPI-CPPC-Add-AMD-pstate-energy-performance-preference-cppc-control/20230106-141924
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20230106061420.95715-4-perry.yuan%40amd.com
patch subject: [PATCH v10 03/12] cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP)
config: x86_64-randconfig-a004
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel-lab-lkp/linux/commit/f43a51c9a7f805b5fd089878fafe7cf9b06b68f0
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Perry-Yuan/ACPI-CPPC-Add-AMD-pstate-energy-performance-preference-cppc-control/20230106-141924
        git checkout f43a51c9a7f805b5fd089878fafe7cf9b06b68f0
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   ld: vmlinux.o: in function `intel_pstate_update_epp_defaults':
>> drivers/cpufreq/intel_pstate.c:1629: undefined reference to `epp_values'
>> ld: drivers/cpufreq/intel_pstate.c:1629: undefined reference to `epp_values'
   ld: drivers/cpufreq/intel_pstate.c:1640: undefined reference to `epp_values'
>> ld: drivers/cpufreq/intel_pstate.c:1629: undefined reference to `epp_values'
   ld: vmlinux.o: in function `show_energy_performance_preference':
>> drivers/cpufreq/intel_pstate.c:812: undefined reference to `energy_perf_strings'
>> ld: drivers/cpufreq/intel_pstate.c:812: undefined reference to `energy_perf_strings'
   ld: vmlinux.o: in function `intel_pstate_get_energy_pref_index':
   drivers/cpufreq/intel_pstate.c:628: undefined reference to `epp_values'
   ld: drivers/cpufreq/intel_pstate.c:628: undefined reference to `epp_values'
   ld: drivers/cpufreq/intel_pstate.c:630: undefined reference to `epp_values'
   ld: drivers/cpufreq/intel_pstate.c:630: undefined reference to `epp_values'
   ld: drivers/cpufreq/intel_pstate.c:632: undefined reference to `epp_values'
   ld: vmlinux.o:drivers/cpufreq/intel_pstate.c:632: more undefined references to `epp_values' follow
   ld: vmlinux.o: in function `show_energy_performance_available_preferences':
   drivers/cpufreq/intel_pstate.c:721: undefined reference to `energy_perf_strings'
   ld: drivers/cpufreq/intel_pstate.c:721: undefined reference to `energy_perf_strings'
   ld: drivers/cpufreq/intel_pstate.c:721: undefined reference to `energy_perf_strings'
   ld: drivers/cpufreq/intel_pstate.c:721: undefined reference to `energy_perf_strings'
   ld: drivers/cpufreq/intel_pstate.c:721: undefined reference to `energy_perf_strings'
   ld: vmlinux.o:drivers/cpufreq/intel_pstate.c:746: more undefined references to `energy_perf_strings' follow
   ld: vmlinux.o: in function `store_energy_performance_preference':
   drivers/cpufreq/intel_pstate.c:781: undefined reference to `epp_values'
   ld: drivers/cpufreq/intel_pstate.c:781: undefined reference to `epp_values'
   ld: vmlinux.o: in function `intel_pstate_set_energy_pref_index':
   drivers/cpufreq/intel_pstate.c:695: undefined reference to `epp_values'
   ld: drivers/cpufreq/intel_pstate.c:695: undefined reference to `epp_values'
   ld: vmlinux.o: in function `intel_pstate_init':
   drivers/cpufreq/intel_pstate.c:3421: undefined reference to `epp_values'
   ld: vmlinux.o:drivers/cpufreq/intel_pstate.c:3421: more undefined references to `epp_values' follow


vim +1629 drivers/cpufreq/intel_pstate.c

57577c996d731c Srinivas Pandruvada 2021-09-28  1620  
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1621  static void intel_pstate_update_epp_defaults(struct cpudata *cpudata)
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1622  {
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1623  	cpudata->epp_default = intel_pstate_get_epp(cpudata, 0);
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1624  
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1625  	/*
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1626  	 * If this CPU gen doesn't call for change in balance_perf
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1627  	 * EPP return.
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1628  	 */
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10 @1629  	if (epp_values[EPP_INDEX_BALANCE_PERFORMANCE] == HWP_EPP_BALANCE_PERFORMANCE)
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1630  		return;
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1631  
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1632  	/*
21cdb6c18f85fe Srinivas Pandruvada 2022-10-27  1633  	 * If the EPP is set by firmware, which means that firmware enabled HWP
21cdb6c18f85fe Srinivas Pandruvada 2022-10-27  1634  	 * - Is equal or less than 0x80 (default balance_perf EPP)
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1635  	 * - But less performance oriented than performance EPP
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1636  	 *   then use this as new balance_perf EPP.
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1637  	 */
21cdb6c18f85fe Srinivas Pandruvada 2022-10-27  1638  	if (hwp_forced && cpudata->epp_default <= HWP_EPP_BALANCE_PERFORMANCE &&
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1639  	    cpudata->epp_default > HWP_EPP_PERFORMANCE) {
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1640  		epp_values[EPP_INDEX_BALANCE_PERFORMANCE] = cpudata->epp_default;
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1641  		return;
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1642  	}
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1643  
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1644  	/*
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1645  	 * Use hard coded value per gen to update the balance_perf
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1646  	 * and default EPP.
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1647  	 */
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1648  	cpudata->epp_default = epp_values[EPP_INDEX_BALANCE_PERFORMANCE];
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1649  	intel_pstate_set_epp(cpudata, cpudata->epp_default);
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1650  }
3d13058ed2a6d0 Srinivas Pandruvada 2022-03-10  1651  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

View attachment "config" of type "text/plain" (140622 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ