* [linux-next:master 3022/4407] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:300:23: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
@ 2021-01-19 18:03 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-01-19 18:03 UTC (permalink / raw)
To: Huang Rui
Cc: kbuild-all, Linux Memory Management List, Alex Deucher, Evan Quan
[-- Attachment #1: Type: text/plain, Size: 5408 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b4bb878f3eb3e604ebfe83bbc17eb7af8d99cbf4
commit: 517cb957c43be3a60d3ffebe980653ebb8e83fe3 [3022/4407] drm/amd/pm: implement the processor clocks which read by metric
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=517cb957c43be3a60d3ffebe980653ebb8e83fe3
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 517cb957c43be3a60d3ffebe980653ebb8e83fe3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: the linux-next/master HEAD b4bb878f3eb3e604ebfe83bbc17eb7af8d99cbf4 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function 'vangogh_get_smu_metrics_data':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:300:23: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
300 | boot_cpu_data.x86_max_cores * sizeof(uint16_t));
| ^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: At top level:
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:577:6: warning: no previous prototype for 'vangogh_clk_dpm_is_enabled' [-Wmissing-prototypes]
577 | bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function 'vangogh_read_sensor':
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:1266:24: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
1266 | *size = boot_cpu_data.x86_max_cores * sizeof(uint16_t);
| ^
--
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c: In function 'amdgpu_debugfs_prints_cpu_info':
>> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:3633:32: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
3633 | p_val = kcalloc(boot_cpu_data.x86_max_cores, sizeof(uint16_t),
| ^
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:3638:33: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
3638 | for (i = 0; i < boot_cpu_data.x86_max_cores; i++)
| ^
vim +300 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c
235
236 static int vangogh_get_smu_metrics_data(struct smu_context *smu,
237 MetricsMember_t member,
238 uint32_t *value)
239 {
240 struct smu_table_context *smu_table = &smu->smu_table;
241
242 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table;
243 int ret = 0;
244
245 mutex_lock(&smu->metrics_lock);
246
247 ret = smu_cmn_get_metrics_table_locked(smu,
248 NULL,
249 false);
250 if (ret) {
251 mutex_unlock(&smu->metrics_lock);
252 return ret;
253 }
254
255 switch (member) {
256 case METRICS_AVERAGE_GFXCLK:
257 *value = metrics->GfxclkFrequency;
258 break;
259 case METRICS_AVERAGE_SOCCLK:
260 *value = metrics->SocclkFrequency;
261 break;
262 case METRICS_AVERAGE_VCLK:
263 *value = metrics->VclkFrequency;
264 break;
265 case METRICS_AVERAGE_DCLK:
266 *value = metrics->DclkFrequency;
267 break;
268 case METRICS_AVERAGE_UCLK:
269 *value = metrics->MemclkFrequency;
270 break;
271 case METRICS_AVERAGE_GFXACTIVITY:
272 *value = metrics->GfxActivity / 100;
273 break;
274 case METRICS_AVERAGE_VCNACTIVITY:
275 *value = metrics->UvdActivity;
276 break;
277 case METRICS_AVERAGE_SOCKETPOWER:
278 *value = (metrics->CurrentSocketPower << 8) /
279 1000 ;
280 break;
281 case METRICS_TEMPERATURE_EDGE:
282 *value = metrics->GfxTemperature / 100 *
283 SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
284 break;
285 case METRICS_TEMPERATURE_HOTSPOT:
286 *value = metrics->SocTemperature / 100 *
287 SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
288 break;
289 case METRICS_THROTTLER_STATUS:
290 *value = metrics->ThrottlerStatus;
291 break;
292 case METRICS_VOLTAGE_VDDGFX:
293 *value = metrics->Voltage[2];
294 break;
295 case METRICS_VOLTAGE_VDDSOC:
296 *value = metrics->Voltage[1];
297 break;
298 case METRICS_AVERAGE_CPUCLK:
299 memcpy(value, &metrics->CoreFrequency[0],
> 300 boot_cpu_data.x86_max_cores * sizeof(uint16_t));
301 break;
302 default:
303 *value = UINT_MAX;
304 break;
305 }
306
307 mutex_unlock(&smu->metrics_lock);
308
309 return ret;
310 }
311
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 69169 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [linux-next:master 3022/4407] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:300:23: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
@ 2021-01-19 18:03 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-01-19 18:03 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5538 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b4bb878f3eb3e604ebfe83bbc17eb7af8d99cbf4
commit: 517cb957c43be3a60d3ffebe980653ebb8e83fe3 [3022/4407] drm/amd/pm: implement the processor clocks which read by metric
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=517cb957c43be3a60d3ffebe980653ebb8e83fe3
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 517cb957c43be3a60d3ffebe980653ebb8e83fe3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Note: the linux-next/master HEAD b4bb878f3eb3e604ebfe83bbc17eb7af8d99cbf4 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function 'vangogh_get_smu_metrics_data':
>> drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:300:23: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
300 | boot_cpu_data.x86_max_cores * sizeof(uint16_t));
| ^
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: At top level:
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:577:6: warning: no previous prototype for 'vangogh_clk_dpm_is_enabled' [-Wmissing-prototypes]
577 | bool vangogh_clk_dpm_is_enabled(struct smu_context *smu,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c: In function 'vangogh_read_sensor':
drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:1266:24: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
1266 | *size = boot_cpu_data.x86_max_cores * sizeof(uint16_t);
| ^
--
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c: In function 'amdgpu_debugfs_prints_cpu_info':
>> drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:3633:32: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
3633 | p_val = kcalloc(boot_cpu_data.x86_max_cores, sizeof(uint16_t),
| ^
drivers/gpu/drm/amd/amdgpu/../pm/amdgpu_pm.c:3638:33: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores'
3638 | for (i = 0; i < boot_cpu_data.x86_max_cores; i++)
| ^
vim +300 drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c
235
236 static int vangogh_get_smu_metrics_data(struct smu_context *smu,
237 MetricsMember_t member,
238 uint32_t *value)
239 {
240 struct smu_table_context *smu_table = &smu->smu_table;
241
242 SmuMetrics_t *metrics = (SmuMetrics_t *)smu_table->metrics_table;
243 int ret = 0;
244
245 mutex_lock(&smu->metrics_lock);
246
247 ret = smu_cmn_get_metrics_table_locked(smu,
248 NULL,
249 false);
250 if (ret) {
251 mutex_unlock(&smu->metrics_lock);
252 return ret;
253 }
254
255 switch (member) {
256 case METRICS_AVERAGE_GFXCLK:
257 *value = metrics->GfxclkFrequency;
258 break;
259 case METRICS_AVERAGE_SOCCLK:
260 *value = metrics->SocclkFrequency;
261 break;
262 case METRICS_AVERAGE_VCLK:
263 *value = metrics->VclkFrequency;
264 break;
265 case METRICS_AVERAGE_DCLK:
266 *value = metrics->DclkFrequency;
267 break;
268 case METRICS_AVERAGE_UCLK:
269 *value = metrics->MemclkFrequency;
270 break;
271 case METRICS_AVERAGE_GFXACTIVITY:
272 *value = metrics->GfxActivity / 100;
273 break;
274 case METRICS_AVERAGE_VCNACTIVITY:
275 *value = metrics->UvdActivity;
276 break;
277 case METRICS_AVERAGE_SOCKETPOWER:
278 *value = (metrics->CurrentSocketPower << 8) /
279 1000 ;
280 break;
281 case METRICS_TEMPERATURE_EDGE:
282 *value = metrics->GfxTemperature / 100 *
283 SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
284 break;
285 case METRICS_TEMPERATURE_HOTSPOT:
286 *value = metrics->SocTemperature / 100 *
287 SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
288 break;
289 case METRICS_THROTTLER_STATUS:
290 *value = metrics->ThrottlerStatus;
291 break;
292 case METRICS_VOLTAGE_VDDGFX:
293 *value = metrics->Voltage[2];
294 break;
295 case METRICS_VOLTAGE_VDDSOC:
296 *value = metrics->Voltage[1];
297 break;
298 case METRICS_AVERAGE_CPUCLK:
299 memcpy(value, &metrics->CoreFrequency[0],
> 300 boot_cpu_data.x86_max_cores * sizeof(uint16_t));
301 break;
302 default:
303 *value = UINT_MAX;
304 break;
305 }
306
307 mutex_unlock(&smu->metrics_lock);
308
309 return ret;
310 }
311
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 69169 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-19 18:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 18:03 [linux-next:master 3022/4407] drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/vangogh_ppt.c:300:23: error: 'struct cpuinfo_mips' has no member named 'x86_max_cores' kernel test robot
2021-01-19 18:03 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.