linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Huang Rui <ray.huang@amd.com>
Cc: kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Alex Deucher <alexander.deucher@amd.com>,
	Evan Quan <evan.quan@amd.com>
Subject: [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'
Date: Wed, 20 Jan 2021 02:03:51 +0800	[thread overview]
Message-ID: <202101200246.xOrBhWnz-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-01-19 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202101200246.xOrBhWnz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=evan.quan@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=ray.huang@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