[PATCH] Make system_reset_pSeries relocatable

kbuild test robot lkp at intel.com
Wed Jul 27 20:12:42 AEST 2016


Hi,

[auto build test ERROR on v4.7-rc7]
[cannot apply to powerpc/next next-20160727]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Balbir-Singh/Make-system_reset_pSeries-relocatable/20160727-153638
config: powerpc-ps3_defconfig (attached as .config)
compiler: powerpc64-linux-gnu-gcc (Debian 5.4.0-6) 5.4.0 20160609
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All errors (new ones prefixed by >>):

   arch/powerpc/kernel/head_64.o: In function `power7_wakeup_common':
>> arch/powerpc/kernel/exceptions-64s.S:1438: undefined reference to `PACA_THREAD_IDLE_STATE'
>> arch/powerpc/kernel/exceptions-64s.S:1439: undefined reference to `PNV_THREAD_NAP'
>> arch/powerpc/kernel/exceptions-64s.S:1446: undefined reference to `PNV_THREAD_RUNNING'
   arch/powerpc/kernel/exceptions-64s.S:1447: undefined reference to `PACA_THREAD_IDLE_STATE'
>> arch/powerpc/kernel/exceptions-64s.S:1464: undefined reference to `power7_wakeup_noloss'
>> arch/powerpc/kernel/exceptions-64s.S:1465: undefined reference to `power7_wakeup_loss'
>> arch/powerpc/kernel/exceptions-64s.S:1469: undefined reference to `power7_wakeup_tb_loss'

vim +1438 arch/powerpc/kernel/exceptions-64s.S

  1432	
  1433		.align 7
  1434	_GLOBAL(power7_wakeup_common)
  1435	#ifdef CONFIG_RELOCATABLE
  1436		mtctr	r11
  1437	#endif
> 1438		lbz	r0,PACA_THREAD_IDLE_STATE(r13)
> 1439		cmpwi   cr2,r0,PNV_THREAD_NAP
  1440		bgt     cr2,8f				/* Either sleep or Winkle */
  1441	
  1442		/* Waking up from nap should not cause hypervisor state loss */
  1443		bgt	cr3,.
  1444	
  1445		/* Waking up from nap */
> 1446		li	r0,PNV_THREAD_RUNNING
  1447		stb	r0,PACA_THREAD_IDLE_STATE(r13)	/* Clear thread state */
  1448	
  1449	#ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE
  1450		li	r0,KVM_HWTHREAD_IN_KERNEL
  1451		stb	r0,HSTATE_HWTHREAD_STATE(r13)
  1452		/* Order setting hwthread_state vs. testing hwthread_req */
  1453		sync
  1454		lbz	r0,HSTATE_HWTHREAD_REQ(r13)
  1455		cmpwi	r0,0
  1456		beq	1f
  1457		b	kvm_start_guest
  1458	1:
  1459	#endif
  1460	
  1461		/* Return SRR1 from power7_nap() */
  1462		mfspr	r3,SPRN_SRR1
  1463		beq	cr3,2f
> 1464		b	power7_wakeup_noloss
> 1465	2:	b	power7_wakeup_loss
  1466	
  1467		/* Fast Sleep wakeup on PowerNV */
  1468	8:	GET_PACA(r13)
> 1469		b 	power7_wakeup_tb_loss
  1470	
  1471	/*
  1472	 * Hash table stuff

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 14011 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20160727/f28cdc41/attachment-0001.obj>


More information about the Linuxppc-dev mailing list