Hi Giovanni,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on tip/x86/core]
[also build test ERROR on tip/master v5.10-rc3 next-20201110]
[cannot apply to bp/for-next]
[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]
url:
https://github.com/0day-ci/linux/commits/Giovanni-Gherdovich/Add-support-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
238c91115cd05c71447ea071624a4c9fe661f970
config: x86_64-randconfig-s021-20201110 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-76-gf680124b-dirty
#
https://github.com/0day-ci/linux/commit/5a6d809273fed25f523b18d553f61b6d7...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Giovanni-Gherdovich/Add-support-for-frequency-invariance-to-AMD-EPYC-Zen2/20201110-164202
git checkout 5a6d809273fed25f523b18d553f61b6d746eed76
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: arch/x86/kernel/smpboot.o: in function `amd_set_max_freq_ratio':
> arch/x86/kernel/smpboot.c:2042: undefined reference to
`cppc_get_perf_caps'
vim +2042 arch/x86/kernel/smpboot.c
2033
2034 #ifdef CONFIG_ACPI
2035 static bool amd_set_max_freq_ratio(void)
2036 {
2037 struct cppc_perf_caps perf_caps;
2038 u64 highest_perf, nominal_perf;
2039 u64 perf_ratio;
2040 int rc;
2041
2042 rc = cppc_get_perf_caps(0, &perf_caps);
2043 if
(rc) {
2044 pr_debug("Could not retrieve perf counters (%d)\n", rc);
2045 return false;
2046 }
2047
2048 highest_perf = perf_caps.highest_perf;
2049 nominal_perf = perf_caps.nominal_perf;
2050
2051 if (!highest_perf || !nominal_perf) {
2052 pr_debug("Could not retrieve highest or nominal performance\n");
2053 return false;
2054 }
2055
2056 perf_ratio = div_u64(highest_perf * SCHED_CAPACITY_SCALE, nominal_perf);
2057 if (!perf_ratio) {
2058 pr_debug("Non-zero highest/nominal perf values led to a 0 ratio\n");
2059 return false;
2060 }
2061
2062 arch_turbo_freq_ratio = perf_ratio;
2063 arch_set_max_freq_ratio(false);
2064
2065 return true;
2066 }
2067 #else
2068 static bool amd_set_max_freq_ratio(void)
2069 {
2070 return false;
2071 }
2072 #endif
2073
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org