mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tor Vic <torvic9@mailbox.org>
To: Perry Yuan <perry.yuan@amd.com>,
	rafael.j.wysocki@intel.com, Mario.Limonciello@amd.com,
	ray.huang@amd.com, viresh.kumar@linaro.org
Cc: Deepak.Sharma@amd.com, Nathan.Fontenot@amd.com,
	Alexander.Deucher@amd.com, Shimmer.Huang@amd.com,
	Xiaojian.Du@amd.com, Li.Meng@amd.com, wyes.karny@amd.com,
	linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v8 00/13] Implement AMD Pstate EPP Driver
Date: Tue, 20 Dec 2022 18:13:41 +0000	[thread overview]
Message-ID: <73b77acd-813a-458b-61e2-87116720cc38@mailbox.org> (raw)
In-Reply-To: <20221219064042.661122-1-perry.yuan@amd.com>


On 19.12.22 06:40, Perry Yuan wrote:
> Hi all,
> 
> This patchset implements one new AMD CPU frequency driver
> `amd-pstate-epp` instance for better performance and power control.
> CPPC has a parameter called energy preference performance (EPP).
> The EPP is used in the CCLK DPM controller to drive the frequency that a core
> is going to operate during short periods of activity.
> EPP values will be utilized for different OS profiles (balanced, performance, power savings).
> 

Using v8 and clang-15 on 6.1 I get:

---
ld.lld: error: undefined symbol: energy_perf_strings
 >>> referenced by amd-pstate.c:789 
(/tmp/makepkg/linux61-vd/src/linux-stable/drivers/cpufreq/amd-pstate.c:789)
 >>>               vmlinux.o:(show_energy_performance_preference)
 >>> referenced by amd-pstate.c:768 
(/tmp/makepkg/linux61-vd/src/linux-stable/drivers/cpufreq/amd-pstate.c:768)
 >>>               vmlinux.o:(store_energy_performance_preference)
 >>> referenced by amd-pstate.c:749 
(/tmp/makepkg/linux61-vd/src/linux-stable/drivers/cpufreq/amd-pstate.c:749)
 >>>               vmlinux.o:(show_energy_performance_available_preferences)
 >>> referenced 1 more times
 >>> did you mean: energy_perf_strings
 >>> defined in: vmlinux.o

ld.lld: error: undefined symbol: epp_values
 >>> referenced by amd-pstate.c:189 
(/tmp/makepkg/linux61-vd/src/linux-stable/drivers/cpufreq/amd-pstate.c:189)
 >>>               vmlinux.o:(store_energy_performance_preference)
---

and a few warnings:

---
drivers/cpufreq/amd-pstate.c:966:6: warning: variable 'ret' is used 
uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
         if (rc)
             ^~
drivers/cpufreq/amd-pstate.c:1025:9: note: uninitialized use occurs here
         return ret;
                ^~~
drivers/cpufreq/amd-pstate.c:966:2: note: remove the 'if' if its 
condition is always false
         if (rc)
         ^~~~~~~
drivers/cpufreq/amd-pstate.c:962:6: warning: variable 'ret' is used 
uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
         if (!dev)
             ^~~~
drivers/cpufreq/amd-pstate.c:1025:9: note: uninitialized use occurs here
         return ret;
                ^~~
drivers/cpufreq/amd-pstate.c:962:2: note: remove the 'if' if its 
condition is always false
         if (!dev)
         ^~~~~~~~~
drivers/cpufreq/amd-pstate.c:949:66: note: initialize the variable 'ret' 
to silence this warning
         int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret;
                                                                         ^
 
  = 0
drivers/cpufreq/amd-pstate.c:996:52: warning: variable 'value' is 
uninitialized when used here [-Wuninitialized]
         cpudata->epp_cached = amd_pstate_get_epp(cpudata, value);
                                                           ^~~~~
drivers/cpufreq/amd-pstate.c:953:11: note: initialize the variable 
'value' to silence this warning
         u64 value;
                  ^
                   = 0
drivers/cpufreq/amd-pstate.c:1085:6: warning: variable 'epp' is used 
uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
         if (cpudata->epp_policy == cpudata->policy)
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/cpufreq/amd-pstate.c:1110:30: note: uninitialized use occurs here
         amd_pstate_set_epp(cpudata, epp);
                                     ^~~
drivers/cpufreq/amd-pstate.c:1085:2: note: remove the 'if' if its 
condition is always false
         if (cpudata->epp_policy == cpudata->policy)
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/cpufreq/amd-pstate.c:1064:9: note: initialize the variable 'epp' 
to silence this warning
         s16 epp;
                ^
                 = 0
---

Cheers,

Tor Vic


  parent reply	other threads:[~2022-12-20 18:14 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-19  6:40 Perry Yuan
2022-12-19  6:40 ` [PATCH v8 01/13] ACPI: CPPC: Add AMD pstate energy performance preference cppc control Perry Yuan
2022-12-19 21:09   ` Limonciello, Mario
2022-12-23  2:16   ` Huang Rui
2022-12-23  3:19     ` Yuan, Perry
2022-12-23  9:06       ` Huang Rui
2022-12-25 16:41         ` Yuan, Perry
2022-12-19  6:40 ` [PATCH v8 02/13] Documentation: amd-pstate: add EPP profiles introduction Perry Yuan
2022-12-19 22:37   ` Limonciello, Mario
2022-12-19  6:40 ` [PATCH v8 03/13] cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP) Perry Yuan
2022-12-19 10:51   ` kernel test robot
2022-12-19 11:11   ` kernel test robot
2022-12-20  2:53   ` Mario Limonciello
2022-12-23  3:10   ` Huang Rui
2022-12-23  3:12     ` Yuan, Perry
2022-12-19  6:40 ` [PATCH v8 04/13] cpufreq: amd-pstate: fix kernel hang issue while amd-pstate unregistering Perry Yuan
2022-12-19 22:55   ` Limonciello, Mario
2022-12-19  6:40 ` [PATCH v8 05/13] cpufreq: amd-pstate: optimize driver working mode selection in amd_pstate_param() Perry Yuan
2022-12-19 10:11   ` kernel test robot
2022-12-19 23:01   ` Limonciello, Mario
2022-12-23  4:23   ` Huang Rui
2022-12-23  9:45   ` Wyes Karny
2022-12-25 16:41     ` Yuan, Perry
2022-12-19  6:40 ` [PATCH v8 06/13] cpufreq: amd-pstate: implement Pstate EPP support for the AMD processors Perry Yuan
2022-12-20  3:09   ` Mario Limonciello
2022-12-23  7:43   ` Huang Rui
2022-12-23  7:52     ` Yuan, Perry
2022-12-19  6:40 ` [PATCH v8 07/13] cpufreq: amd-pstate: implement amd pstate cpu online and offline callback Perry Yuan
2022-12-23  8:11   ` Huang Rui
2022-12-19  6:40 ` [PATCH v8 08/13] cpufreq: amd-pstate: implement suspend and resume callbacks Perry Yuan
2022-12-23  8:12   ` Huang Rui
2022-12-19  6:40 ` [PATCH v8 09/13] cpufreq: amd-pstate: add driver working mode switch support Perry Yuan
2022-12-19 23:38   ` Limonciello, Mario
2022-12-23  8:56   ` Huang Rui
2022-12-25 16:41     ` Yuan, Perry
2022-12-19  6:40 ` [PATCH v8 10/13] Documentation: amd-pstate: add amd pstate driver mode introduction Perry Yuan
2022-12-19 23:28   ` Limonciello, Mario
2022-12-19  6:40 ` [PATCH v8 11/13] Documentation: introduce amd pstate active mode kernel command line options Perry Yuan
2022-12-19 23:29   ` Limonciello, Mario
2022-12-19  6:40 ` [PATCH v8 12/13] cpufreq: amd-pstate: convert sprintf with sysfs_emit() Perry Yuan
2022-12-19 23:31   ` Limonciello, Mario
2022-12-25 16:42     ` Yuan, Perry
2022-12-23  7:45   ` Huang Rui
2022-12-19  6:40 ` [PATCH v8 13/13] Documentation: amd-pstate: introduce new global sysfs attributes Perry Yuan
2022-12-19 22:35   ` Limonciello, Mario
2022-12-20 18:13 ` Tor Vic [this message]
2022-12-20 18:52   ` [PATCH v8 00/13] Implement AMD Pstate EPP Driver Tor Vic
2022-12-21  3:08     ` 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=73b77acd-813a-458b-61e2-87116720cc38@mailbox.org \
    --to=torvic9@mailbox.org \
    --cc=Alexander.Deucher@amd.com \
    --cc=Deepak.Sharma@amd.com \
    --cc=Li.Meng@amd.com \
    --cc=Mario.Limonciello@amd.com \
    --cc=Nathan.Fontenot@amd.com \
    --cc=Shimmer.Huang@amd.com \
    --cc=Xiaojian.Du@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=perry.yuan@amd.com \
    --cc=rafael.j.wysocki@intel.com \
    --cc=ray.huang@amd.com \
    --cc=viresh.kumar@linaro.org \
    --cc=wyes.karny@amd.com \
    /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

all inboxes | Powered by JetHome®