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] [day] [month] [year] [list]
Date:   Sat, 10 Sep 2016 05:02:12 +0800
From:   kbuild test robot <lkp@...el.com>
To:     Harry Pan <harry.pan@...el.com>
Cc:     kbuild-all@...org, LKML <linux-kernel@...r.kernel.org>,
        gs0622@...il.com, Harry Pan <harry.pan@...el.com>,
        tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
        x86@...nel.org, peterz@...radead.org, bp@...en8.de,
        ray.huang@....com, srinivas.pandruvada@...ux.intel.com
Subject: Re: [PATCH 2/2] perf/x86/rapl: Enable Baytrail/Braswell RAPL support

Hi Harry,

[auto build test WARNING on v4.8-rc5]
[also build test WARNING on next-20160909]
[cannot apply to tip/x86/core]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
[Suggest to use git(>=2.9.0) format-patch --base=<commit> (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on]
[Check https://git-scm.com/docs/git-format-patch for more information]

url:    https://github.com/0day-ci/linux/commits/Harry-Pan/perf-x86-rapl-Enable-Apollo-Lake-RAPL-support/20160910-015650
config: x86_64-randconfig-x008-201636 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   arch/x86/events/intel/rapl.c: In function 'rapl_check_hw_unit':
>> arch/x86/events/intel/rapl.c:661:2: warning: enumeration value 'RAPL_NO_QUIRK' not handled in switch [-Wswitch]
     switch (apply_quirk) {
     ^~~~~~

vim +/RAPL_NO_QUIRK +661 arch/x86/events/intel/rapl.c

   645		rapl_hrtimer_init(pmu);
   646		rapl_pmus->pmus[topology_logical_package_id(cpu)] = pmu;
   647		return 0;
   648	}
   649	
   650	static int rapl_check_hw_unit(enum rapl_quirk apply_quirk)
   651	{
   652		u64 msr_rapl_power_unit_bits;
   653		int i;
   654	
   655		/* protect rdmsrl() to handle virtualization */
   656		if (rdmsrl_safe(MSR_RAPL_POWER_UNIT, &msr_rapl_power_unit_bits))
   657			return -1;
   658		for (i = 0; i < NR_RAPL_DOMAINS; i++)
   659			rapl_hw_unit[i] = (msr_rapl_power_unit_bits >> 8) & 0x1FULL;
   660	
 > 661		switch (apply_quirk) {
   662		case RAPL_HSX_QUIRK:
   663			/*
   664			 * DRAM domain on HSW server and KNL has fixed energy unit
   665			 * which can be different than the unit from power unit MSR.
   666			 * See "Intel Xeon Processor E5-1600 and E5-2600 v3 Product
   667			 * Families, V2 of 2. Datasheet, September 2014,
   668			 * Reference Number: 330784-001"
   669			 */

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/octet-stream" (21126 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ