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] [thread-next>] [day] [month] [year] [list]
Message-ID: <202109300257.J3LjPBBM-lkp@intel.com>
Date:   Thu, 30 Sep 2021 02:43:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Necip Fazil Yildiran <fazilyildiran@...il.com>, rjw@...ysocki.net
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org, rui.zhang@...el.com,
        linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org,
        paul@...zz.com, jeho@...utexas.edu, julianbraha@...il.com,
        Necip Fazil Yildiran <fazilyildiran@...il.com>
Subject: Re: [PATCH v2] PM: Kconfig: fix unmet dependency for PM_SLEEP_SMP

Hi Necip,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.15-rc3 next-20210922]
[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/Necip-Fazil-Yildiran/PM-Kconfig-fix-unmet-dependency-for-PM_SLEEP_SMP/20210929-162901
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git a4e6f95a891ac08bd09d62e3e6dae239b150f4c1
config: i386-randconfig-c001-20210929 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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://github.com/0day-ci/linux/commit/761d2cbd7ffe7612fdc9084465070e008edd48a7
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Necip-Fazil-Yildiran/PM-Kconfig-fix-unmet-dependency-for-PM_SLEEP_SMP/20210929-162901
        git checkout 761d2cbd7ffe7612fdc9084465070e008edd48a7
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> arch/x86/power/cpu.c:313:8: error: implicit declaration of function 'freeze_secondary_cpus' [-Werror,-Wimplicit-function-declaration]
           ret = freeze_secondary_cpus(0);
                 ^
   arch/x86/power/cpu.c:313:8: note: did you mean 'thaw_secondary_cpus'?
   include/linux/cpu.h:165:20: note: 'thaw_secondary_cpus' declared here
   static inline void thaw_secondary_cpus(void) {}
                      ^
   arch/x86/power/cpu.c:288:5: warning: no previous prototype for function 'hibernate_resume_nonboot_cpu_disable' [-Wmissing-prototypes]
   int hibernate_resume_nonboot_cpu_disable(void)
       ^
   arch/x86/power/cpu.c:288:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int hibernate_resume_nonboot_cpu_disable(void)
   ^
   static 
   1 warning and 1 error generated.


vim +/freeze_secondary_cpus +313 arch/x86/power/cpu.c

406f992e4a372da Rafael J. Wysocki 2016-07-14  287  
406f992e4a372da Rafael J. Wysocki 2016-07-14  288  int hibernate_resume_nonboot_cpu_disable(void)
406f992e4a372da Rafael J. Wysocki 2016-07-14  289  {
406f992e4a372da Rafael J. Wysocki 2016-07-14  290  	void (*play_dead)(void) = smp_ops.play_dead;
406f992e4a372da Rafael J. Wysocki 2016-07-14  291  	int ret;
406f992e4a372da Rafael J. Wysocki 2016-07-14  292  
406f992e4a372da Rafael J. Wysocki 2016-07-14  293  	/*
406f992e4a372da Rafael J. Wysocki 2016-07-14  294  	 * Ensure that MONITOR/MWAIT will not be used in the "play dead" loop
406f992e4a372da Rafael J. Wysocki 2016-07-14  295  	 * during hibernate image restoration, because it is likely that the
406f992e4a372da Rafael J. Wysocki 2016-07-14  296  	 * monitored address will be actually written to at that time and then
406f992e4a372da Rafael J. Wysocki 2016-07-14  297  	 * the "dead" CPU will attempt to execute instructions again, but the
406f992e4a372da Rafael J. Wysocki 2016-07-14  298  	 * address in its instruction pointer may not be possible to resolve
406f992e4a372da Rafael J. Wysocki 2016-07-14  299  	 * any more at that point (the page tables used by it previously may
406f992e4a372da Rafael J. Wysocki 2016-07-14  300  	 * have been overwritten by hibernate image data).
ec527c318036a65 Jiri Kosina       2019-05-30  301  	 *
ec527c318036a65 Jiri Kosina       2019-05-30  302  	 * First, make sure that we wake up all the potentially disabled SMT
ec527c318036a65 Jiri Kosina       2019-05-30  303  	 * threads which have been initially brought up and then put into
ec527c318036a65 Jiri Kosina       2019-05-30  304  	 * mwait/cpuidle sleep.
ec527c318036a65 Jiri Kosina       2019-05-30  305  	 * Those will be put to proper (not interfering with hibernation
ec527c318036a65 Jiri Kosina       2019-05-30  306  	 * resume) sleep afterwards, and the resumed kernel will decide itself
ec527c318036a65 Jiri Kosina       2019-05-30  307  	 * what to do with them.
406f992e4a372da Rafael J. Wysocki 2016-07-14  308  	 */
ec527c318036a65 Jiri Kosina       2019-05-30  309  	ret = cpuhp_smt_enable();
ec527c318036a65 Jiri Kosina       2019-05-30  310  	if (ret)
ec527c318036a65 Jiri Kosina       2019-05-30  311  		return ret;
406f992e4a372da Rafael J. Wysocki 2016-07-14  312  	smp_ops.play_dead = resume_play_dead;
565558558985b1d Qais Yousef       2020-04-30 @313  	ret = freeze_secondary_cpus(0);
406f992e4a372da Rafael J. Wysocki 2016-07-14  314  	smp_ops.play_dead = play_dead;
406f992e4a372da Rafael J. Wysocki 2016-07-14  315  	return ret;
406f992e4a372da Rafael J. Wysocki 2016-07-14  316  }
406f992e4a372da Rafael J. Wysocki 2016-07-14  317  #endif
406f992e4a372da Rafael J. Wysocki 2016-07-14  318  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (36451 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ