All of lore.kernel.org
 help / color / mirror / Atom feed
* hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-16 14:36 ` kernel test robot
  0 siblings, 0 replies; 24+ messages in thread
From: kernel test robot @ 2021-01-16 14:36 UTC (permalink / raw)
  To: Nick Desaulniers; +Cc: kbuild-all, linux-kernel, Ingo Molnar, Kees Cook

[-- Attachment #1: Type: text/plain, Size: 16518 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1d94330a437a573cfdf848f6743b1ed169242c8a
commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
date:   5 months ago
config: parisc-randconfig-r032-20210116 (attached as .config)
compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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

All errors (new ones prefixed by >>):

   hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
   hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
   hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
   hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
   hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
   hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
>> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
   hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
   hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
   hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
   hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
   hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
   hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3

---
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: 25145 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-16 14:36 ` kernel test robot
  0 siblings, 0 replies; 24+ messages in thread
From: kernel test robot @ 2021-01-16 14:36 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 16746 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   1d94330a437a573cfdf848f6743b1ed169242c8a
commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
date:   5 months ago
config: parisc-randconfig-r032-20210116 (attached as .config)
compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc 

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

All errors (new ones prefixed by >>):

   hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
   hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
   hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
   hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
   hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
   hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
   hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
>> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
   hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
   hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
   hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
   hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
   hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
   hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
   hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
   hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3

---
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: 25145 bytes --]

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-16 14:36 ` kernel test robot
@ 2021-01-25 17:54   ` Nick Desaulniers
  -1 siblings, 0 replies; 24+ messages in thread
From: Nick Desaulniers @ 2021-01-25 17:54 UTC (permalink / raw)
  To: James Bottomley, deller, linux-parisc
  Cc: kbuild-all, LKML, Ingo Molnar, Kees Cook, kernel test robot

I suspect that adding some more sections here makes the distance
between other sections too large to encode?  IIRC, arm (32b) linker
can emit "range extending thunks" to help jump large distances.  Not
sure what to make of this report; I wouldn't have expected this GCC
randconfig to generate code in any of the sections that were added to
the linkerscript in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f.

On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
> date:   5 months ago
> config: parisc-randconfig-r032-20210116 (attached as .config)
> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
> >> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
>    hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
>    hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 17:54   ` Nick Desaulniers
  0 siblings, 0 replies; 24+ messages in thread
From: Nick Desaulniers @ 2021-01-25 17:54 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 17796 bytes --]

I suspect that adding some more sections here makes the distance
between other sections too large to encode?  IIRC, arm (32b) linker
can emit "range extending thunks" to help jump large distances.  Not
sure what to make of this report; I wouldn't have expected this GCC
randconfig to generate code in any of the sections that were added to
the linkerscript in
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f.

On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
> date:   5 months ago
> config: parisc-randconfig-r032-20210116 (attached as .config)
> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
>    hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
> >> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
>    hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
>    hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org



-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 17:54   ` Nick Desaulniers
@ 2021-01-25 18:34     ` John David Anglin
  -1 siblings, 0 replies; 24+ messages in thread
From: John David Anglin @ 2021-01-25 18:34 UTC (permalink / raw)
  To: Nick Desaulniers, James Bottomley, deller, linux-parisc
  Cc: kbuild-all, LKML, Ingo Molnar, Kees Cook, kernel test robot

For calls, this issue can be avoided with -mlong-calls option.  Without this, 64-bit calls are limited to
a 22-bit pc-relative offset (8 MB).  This does make branches somewhat less efficient.  At the moment,
the 64-bit linker does not support adding branch extending stubs.

Thunks are currently limited to a 17-bit pc-relative offset.

Regards,
Dave

On 2021-01-25 12:54 p.m., Nick Desaulniers wrote:
> I suspect that adding some more sections here makes the distance
> between other sections too large to encode?  IIRC, arm (32b) linker
> can emit "range extending thunks" to help jump large distances.  Not
> sure what to make of this report; I wouldn't have expected this GCC
> randconfig to generate code in any of the sections that were added to
> the linkerscript in
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f.
>
> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>> date:   5 months ago
>> config: parisc-randconfig-r032-20210116 (attached as .config)
>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>         git fetch --no-tags linus master
>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>         # save the attached .config to linux build tree
>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>> All errors (new ones prefixed by >>):
>>
>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
>>>> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
>>    hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
>>    hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3
>>
>> ---
>> 0-DAY CI Kernel Test Service, Intel Corporation
>> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>
>


-- 
John David Anglin  dave.anglin@bell.net



^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 18:34     ` John David Anglin
  0 siblings, 0 replies; 24+ messages in thread
From: John David Anglin @ 2021-01-25 18:34 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 18473 bytes --]

For calls, this issue can be avoided with -mlong-calls option.  Without this, 64-bit calls are limited to
a 22-bit pc-relative offset (8 MB).  This does make branches somewhat less efficient.  At the moment,
the 64-bit linker does not support adding branch extending stubs.

Thunks are currently limited to a 17-bit pc-relative offset.

Regards,
Dave

On 2021-01-25 12:54 p.m., Nick Desaulniers wrote:
> I suspect that adding some more sections here makes the distance
> between other sections too large to encode?  IIRC, arm (32b) linker
> can emit "range extending thunks" to help jump large distances.  Not
> sure what to make of this report; I wouldn't have expected this GCC
> randconfig to generate code in any of the sections that were added to
> the linkerscript in
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f.
>
> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>> date:   5 months ago
>> config: parisc-randconfig-r032-20210116 (attached as .config)
>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>         git fetch --no-tags linus master
>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>         # save the attached .config to linux build tree
>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>> All errors (new ones prefixed by >>):
>>
>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
>>>> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
>>    hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
>>    hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3
>>
>> ---
>> 0-DAY CI Kernel Test Service, Intel Corporation
>> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
>
>


-- 
John David Anglin  dave.anglin(a)bell.net


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 18:34     ` John David Anglin
@ 2021-01-25 19:25       ` Helge Deller
  -1 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 19:25 UTC (permalink / raw)
  To: John David Anglin, Nick Desaulniers, James Bottomley, linux-parisc
  Cc: kbuild-all, LKML, Ingo Molnar, Kees Cook, kernel test robot

On 1/25/21 7:34 PM, John David Anglin wrote:
> For calls, this issue can be avoided with -mlong-calls option.  Without this, 64-bit calls are limited to
> a 22-bit pc-relative offset (8 MB).  This does make branches somewhat less efficient.  At the moment,
> the 64-bit linker does not support adding branch extending stubs.
>
> Thunks are currently limited to a 17-bit pc-relative offset.

When using huge pages, I've tried to set up a lds layout in which
all init functions are in one page which can be deleted afterwards.
I assume that's why they can't be reached.

I'll look into the issue if I can reproduce it.
Will keep you updated.

Helge

> Regards,
> Dave
>
> On 2021-01-25 12:54 p.m., Nick Desaulniers wrote:
>> I suspect that adding some more sections here makes the distance
>> between other sections too large to encode?  IIRC, arm (32b) linker
>> can emit "range extending thunks" to help jump large distances.  Not
>> sure what to make of this report; I wouldn't have expected this GCC
>> randconfig to generate code in any of the sections that were added to
>> the linkerscript in
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f.
>>
>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>> date:   5 months ago
>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>         git fetch --no-tags linus master
>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>         # save the attached .config to linux build tree
>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>
>>> If you fix the issue, kindly add following tag as appropriate
>>> Reported-by: kernel test robot <lkp@intel.com>
>>>
>>> All errors (new ones prefixed by >>):
>>>
>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
>>>>> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
>>>    hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
>>>    hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3
>>>
>>> ---
>>> 0-DAY CI Kernel Test Service, Intel Corporation
>>> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
>>
>>
>
>


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 19:25       ` Helge Deller
  0 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 19:25 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 18990 bytes --]

On 1/25/21 7:34 PM, John David Anglin wrote:
> For calls, this issue can be avoided with -mlong-calls option.  Without this, 64-bit calls are limited to
> a 22-bit pc-relative offset (8 MB).  This does make branches somewhat less efficient.  At the moment,
> the 64-bit linker does not support adding branch extending stubs.
>
> Thunks are currently limited to a 17-bit pc-relative offset.

When using huge pages, I've tried to set up a lds layout in which
all init functions are in one page which can be deleted afterwards.
I assume that's why they can't be reached.

I'll look into the issue if I can reproduce it.
Will keep you updated.

Helge

> Regards,
> Dave
>
> On 2021-01-25 12:54 p.m., Nick Desaulniers wrote:
>> I suspect that adding some more sections here makes the distance
>> between other sections too large to encode?  IIRC, arm (32b) linker
>> can emit "range extending thunks" to help jump large distances.  Not
>> sure what to make of this report; I wouldn't have expected this GCC
>> randconfig to generate code in any of the sections that were added to
>> the linkerscript in
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f.
>>
>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>> date:   5 months ago
>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>         git fetch --no-tags linus master
>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>         # save the attached .config to linux build tree
>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>
>>> If you fix the issue, kindly add following tag as appropriate
>>> Reported-by: kernel test robot <lkp@intel.com>
>>>
>>> All errors (new ones prefixed by >>):
>>>
>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x140): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e0): cannot reach memmove
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x314): cannot reach memmove
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x428): cannot reach memmove
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x5d4): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xb20): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xce8): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd30): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xd4c): cannot reach memcpy
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1130): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x11e0): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x16d8): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1788): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e04): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0x1e2c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x24): cannot reach strstr
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x100): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x118): cannot reach dump_stack
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x220): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x48c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x55c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x62c): cannot reach printk
>>>    hppa64-linux-ld: mm/memblock.o(.init.text+0x720): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x580): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x690): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x768): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7c8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x938): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x980): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xaf8): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xb60): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xbd0): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xc38): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcd8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xcf0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xd7c): cannot reach __next_node_in
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xdb4): cannot reach __next_node_in
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xeb8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xec8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0xf58): cannot reach sprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1638): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x16d8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1764): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x17d0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1974): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1990): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19b4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x19d4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1d88): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x1db0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2588): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2658): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26a8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x26e4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x27b0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2964): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2984): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x29bc): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a00): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2a40): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b38): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2b58): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c14): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2c8c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ccc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2df4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2ed8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f38): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f60): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2f84): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x2fc8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3018): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3044): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3218): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3308): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x340c): cannot reach __xchg64
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3580): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x35b0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3604): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3aa0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3b00): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x3efc): cannot reach down_write
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4484): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x46ac): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4814): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x485c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x48cc): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a1c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4a88): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4b14): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4c0c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4cc0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4d18): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4dd4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x4ed4): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5008): cannot reach sprintf
>>>>> hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x51bc): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5348): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x535c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53d8): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x53ec): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x565c): cannot reach down_read
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5890): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x58d4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x59f4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5b94): cannot reach _raw_spin_lock_irqsave
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5bf4): cannot reach _raw_spin_unlock_irqrestore
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c14): cannot reach _raw_spin_lock_irqsave
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5c34): cannot reach _raw_spin_unlock_irqrestore
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5f58): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x5fdc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x613c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6248): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x643c): cannot reach down_write
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x64c0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6690): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x66c0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69a0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69c0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x69d0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a00): cannot reach ___ratelimit
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a28): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6a80): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6bf4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6d98): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6de0): cannot reach down_read
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x6df4): cannot reach mutex_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x705c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7344): cannot reach down_read
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74ac): cannot reach mutex_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x74e0): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7708): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x77b0): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7830): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x794c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7978): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7998): cannot reach mutex_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7b14): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7bfc): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7ce4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7e84): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x7f0c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8068): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8084): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x80b4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8240): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8314): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8518): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x85e0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8624): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x87a8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8868): cannot reach down_write
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x889c): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x88ec): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d40): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d60): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8d9c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8db8): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8e78): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ea0): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8ec0): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x8fd0): cannot reach __warn_printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9074): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90a4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x90d4): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x92ec): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9334): cannot reach __cmpxchg_u32
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x93dc): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9454): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x9558): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x969c): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.text+0x96ac): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x248): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x26c): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x36c): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3d0): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x3ec): cannot reach sscanf
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x568): cannot reach snprintf
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x728): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x744): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x8d4): cannot reach _raw_spin_lock
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0x900): cannot reach _raw_spin_unlock
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa40): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xa70): cannot reach kobject_create_and_add
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb64): cannot reach kobject_create_and_add
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xb9c): cannot reach kobject_put
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xbb4): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xc84): cannot reach __muldi3
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xde8): cannot reach memparse
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xec0): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xef0): cannot reach unknown
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xf94): cannot reach memparse
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfcc): cannot reach printk
>>>    hppa64-linux-ld: mm/hugetlb.o(.init.text+0xfe4): cannot reach unknown
>>>    hppa64-linux-ld: mm/slab.o(.text+0x490): cannot reach __udivdi3
>>>    hppa64-linux-ld: mm/slab.o(.text+0x4ac): cannot reach __umoddi3
>>>
>>> ---
>>> 0-DAY CI Kernel Test Service, Intel Corporation
>>> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
>>
>>
>
>

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 19:25       ` Helge Deller
@ 2021-01-25 20:47         ` Helge Deller
  -1 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 20:47 UTC (permalink / raw)
  To: Helge Deller
  Cc: John David Anglin, Nick Desaulniers, James Bottomley,
	linux-parisc, kbuild-all, LKML, Ingo Molnar, Kees Cook,
	kernel test robot

> >> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
> >>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> >>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
> >>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
> >>> date:   5 months ago
> >>> config: parisc-randconfig-r032-20210116 (attached as .config)
> >>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
> >>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> >>>         git fetch --no-tags linus master
> >>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
> >>>         # save the attached .config to linux build tree
> >>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
> >>>
> >>> If you fix the issue, kindly add following tag as appropriate
> >>> Reported-by: kernel test robot <lkp@intel.com>
> >>>
> >>> All errors (new ones prefixed by >>):
> >>>
> >>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
> >>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
> >>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
....

The problem with this .config is, that both CONFIG_MODULES and
CONFIG_MLONGCALLS are set to "n".
The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
this case.


This patch fixes it for me:

[PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES

When building a kernel without module support, the CONFIG_MLONGCALL
option needs to be enabled. This patch fixes the autodetection in the
Kconfig script and uses a far call to preempt_schedule_irq() in
intr_do_preempt().

Signed-off-by: Helge Deller <deller@gmx.de>
Reported-by: kernel test robot <lkp@intel.com>

---

diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 78b17621ee4a..278462186ac4 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
@@ -202,9 +202,8 @@ config PREFETCH
 	depends on PA8X00 || PA7200

 config MLONGCALLS
-	bool "Enable the -mlong-calls compiler option for big kernels"
-	default y if !MODULES || UBSAN || FTRACE
-	default n
+	def_bool y if !MODULES || UBSAN || FTRACE
+	bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
 	depends on PA8X00
 	help
 	  If you configure the kernel to include many drivers built-in instead
diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index beba9816cc6c..6320f6a8397c 100644
--- a/arch/parisc/kernel/entry.S
+++ b/arch/parisc/kernel/entry.S
@@ -997,10 +997,19 @@ intr_do_preempt:
 	bb,<,n	%r20, 31 - PSW_SM_I, intr_restore
 	nop

-	BL	preempt_schedule_irq, %r2
-	nop
+	/* ssm PSW_SM_I done later in intr_restore */
+#ifdef CONFIG_MLONGCALLS
+	ldil    L%intr_restore, %r2
+	load32	preempt_schedule_irq, %r1
+	bv	%r0(%r1)
+	ldo     R%intr_restore(%r2), %r2
+#else
+	ldil    L%intr_restore, %r2
+	BL	preempt_schedule_irq
+	ldo     R%intr_restore(%r2), %r2
+#endif
+

-	b,n	intr_restore		/* ssm PSW_SM_I done by intr_restore */
 #endif /* CONFIG_PREEMPTION */

 	/*



^ permalink raw reply related	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 20:47         ` Helge Deller
  0 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 20:47 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3563 bytes --]

> >> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
> >>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> >>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
> >>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
> >>> date:   5 months ago
> >>> config: parisc-randconfig-r032-20210116 (attached as .config)
> >>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
> >>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> >>>         git fetch --no-tags linus master
> >>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
> >>>         # save the attached .config to linux build tree
> >>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
> >>>
> >>> If you fix the issue, kindly add following tag as appropriate
> >>> Reported-by: kernel test robot <lkp@intel.com>
> >>>
> >>> All errors (new ones prefixed by >>):
> >>>
> >>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
> >>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
> >>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
....

The problem with this .config is, that both CONFIG_MODULES and
CONFIG_MLONGCALLS are set to "n".
The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
this case.


This patch fixes it for me:

[PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES

When building a kernel without module support, the CONFIG_MLONGCALL
option needs to be enabled. This patch fixes the autodetection in the
Kconfig script and uses a far call to preempt_schedule_irq() in
intr_do_preempt().

Signed-off-by: Helge Deller <deller@gmx.de>
Reported-by: kernel test robot <lkp@intel.com>

---

diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
index 78b17621ee4a..278462186ac4 100644
--- a/arch/parisc/Kconfig
+++ b/arch/parisc/Kconfig
@@ -202,9 +202,8 @@ config PREFETCH
 	depends on PA8X00 || PA7200

 config MLONGCALLS
-	bool "Enable the -mlong-calls compiler option for big kernels"
-	default y if !MODULES || UBSAN || FTRACE
-	default n
+	def_bool y if !MODULES || UBSAN || FTRACE
+	bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
 	depends on PA8X00
 	help
 	  If you configure the kernel to include many drivers built-in instead
diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index beba9816cc6c..6320f6a8397c 100644
--- a/arch/parisc/kernel/entry.S
+++ b/arch/parisc/kernel/entry.S
@@ -997,10 +997,19 @@ intr_do_preempt:
 	bb,<,n	%r20, 31 - PSW_SM_I, intr_restore
 	nop

-	BL	preempt_schedule_irq, %r2
-	nop
+	/* ssm PSW_SM_I done later in intr_restore */
+#ifdef CONFIG_MLONGCALLS
+	ldil    L%intr_restore, %r2
+	load32	preempt_schedule_irq, %r1
+	bv	%r0(%r1)
+	ldo     R%intr_restore(%r2), %r2
+#else
+	ldil    L%intr_restore, %r2
+	BL	preempt_schedule_irq
+	ldo     R%intr_restore(%r2), %r2
+#endif
+

-	b,n	intr_restore		/* ssm PSW_SM_I done by intr_restore */
 #endif /* CONFIG_PREEMPTION */

 	/*


^ permalink raw reply related	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 20:47         ` Helge Deller
@ 2021-01-25 20:58           ` Nick Desaulniers
  -1 siblings, 0 replies; 24+ messages in thread
From: Nick Desaulniers @ 2021-01-25 20:58 UTC (permalink / raw)
  To: Helge Deller
  Cc: John David Anglin, James Bottomley, linux-parisc, kbuild-all,
	LKML, Ingo Molnar, Kees Cook, kernel test robot, Masahiro Yamada

On Mon, Jan 25, 2021 at 12:47 PM Helge Deller <deller@gmx.de> wrote:
>
> > >> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
> > >>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > >>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
> > >>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
> > >>> date:   5 months ago
> > >>> config: parisc-randconfig-r032-20210116 (attached as .config)
> > >>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
> > >>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > >>>         git fetch --no-tags linus master
> > >>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
> > >>>         # save the attached .config to linux build tree
> > >>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
> > >>>
> > >>> If you fix the issue, kindly add following tag as appropriate
> > >>> Reported-by: kernel test robot <lkp@intel.com>
> > >>>
> > >>> All errors (new ones prefixed by >>):
> > >>>
> > >>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
> > >>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
> > >>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
> ....
>
> The problem with this .config is, that both CONFIG_MODULES and
> CONFIG_MLONGCALLS are set to "n".
> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
> this case.
>
>
> This patch fixes it for me:
>
> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>
> When building a kernel without module support, the CONFIG_MLONGCALL
> option needs to be enabled. This patch fixes the autodetection in the
> Kconfig script and uses a far call to preempt_schedule_irq() in
> intr_do_preempt().
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> Reported-by: kernel test robot <lkp@intel.com>
>
> ---
>
> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
> index 78b17621ee4a..278462186ac4 100644
> --- a/arch/parisc/Kconfig
> +++ b/arch/parisc/Kconfig
> @@ -202,9 +202,8 @@ config PREFETCH
>         depends on PA8X00 || PA7200
>
>  config MLONGCALLS
> -       bool "Enable the -mlong-calls compiler option for big kernels"
> -       default y if !MODULES || UBSAN || FTRACE
> -       default n
> +       def_bool y if !MODULES || UBSAN || FTRACE
> +       bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE

^ this looks like the same constraints specified twice?  Am I
understanding that correctly? (I don't understand why this isn't
specified _once_).

>         depends on PA8X00
>         help
>           If you configure the kernel to include many drivers built-in instead
> diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
> index beba9816cc6c..6320f6a8397c 100644
> --- a/arch/parisc/kernel/entry.S
> +++ b/arch/parisc/kernel/entry.S
> @@ -997,10 +997,19 @@ intr_do_preempt:
>         bb,<,n  %r20, 31 - PSW_SM_I, intr_restore
>         nop
>
> -       BL      preempt_schedule_irq, %r2
> -       nop
> +       /* ssm PSW_SM_I done later in intr_restore */
> +#ifdef CONFIG_MLONGCALLS
> +       ldil    L%intr_restore, %r2
> +       load32  preempt_schedule_irq, %r1
> +       bv      %r0(%r1)
> +       ldo     R%intr_restore(%r2), %r2
> +#else
> +       ldil    L%intr_restore, %r2
> +       BL      preempt_schedule_irq
> +       ldo     R%intr_restore(%r2), %r2
> +#endif
> +
>
> -       b,n     intr_restore            /* ssm PSW_SM_I done by intr_restore */
>  #endif /* CONFIG_PREEMPTION */
>
>         /*
>
>


-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 20:58           ` Nick Desaulniers
  0 siblings, 0 replies; 24+ messages in thread
From: Nick Desaulniers @ 2021-01-25 20:58 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4165 bytes --]

On Mon, Jan 25, 2021 at 12:47 PM Helge Deller <deller@gmx.de> wrote:
>
> > >> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
> > >>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > >>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
> > >>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
> > >>> date:   5 months ago
> > >>> config: parisc-randconfig-r032-20210116 (attached as .config)
> > >>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
> > >>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > >>>         git fetch --no-tags linus master
> > >>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
> > >>>         # save the attached .config to linux build tree
> > >>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
> > >>>
> > >>> If you fix the issue, kindly add following tag as appropriate
> > >>> Reported-by: kernel test robot <lkp@intel.com>
> > >>>
> > >>> All errors (new ones prefixed by >>):
> > >>>
> > >>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
> > >>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
> > >>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
> ....
>
> The problem with this .config is, that both CONFIG_MODULES and
> CONFIG_MLONGCALLS are set to "n".
> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
> this case.
>
>
> This patch fixes it for me:
>
> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>
> When building a kernel without module support, the CONFIG_MLONGCALL
> option needs to be enabled. This patch fixes the autodetection in the
> Kconfig script and uses a far call to preempt_schedule_irq() in
> intr_do_preempt().
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> Reported-by: kernel test robot <lkp@intel.com>
>
> ---
>
> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
> index 78b17621ee4a..278462186ac4 100644
> --- a/arch/parisc/Kconfig
> +++ b/arch/parisc/Kconfig
> @@ -202,9 +202,8 @@ config PREFETCH
>         depends on PA8X00 || PA7200
>
>  config MLONGCALLS
> -       bool "Enable the -mlong-calls compiler option for big kernels"
> -       default y if !MODULES || UBSAN || FTRACE
> -       default n
> +       def_bool y if !MODULES || UBSAN || FTRACE
> +       bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE

^ this looks like the same constraints specified twice?  Am I
understanding that correctly? (I don't understand why this isn't
specified _once_).

>         depends on PA8X00
>         help
>           If you configure the kernel to include many drivers built-in instead
> diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
> index beba9816cc6c..6320f6a8397c 100644
> --- a/arch/parisc/kernel/entry.S
> +++ b/arch/parisc/kernel/entry.S
> @@ -997,10 +997,19 @@ intr_do_preempt:
>         bb,<,n  %r20, 31 - PSW_SM_I, intr_restore
>         nop
>
> -       BL      preempt_schedule_irq, %r2
> -       nop
> +       /* ssm PSW_SM_I done later in intr_restore */
> +#ifdef CONFIG_MLONGCALLS
> +       ldil    L%intr_restore, %r2
> +       load32  preempt_schedule_irq, %r1
> +       bv      %r0(%r1)
> +       ldo     R%intr_restore(%r2), %r2
> +#else
> +       ldil    L%intr_restore, %r2
> +       BL      preempt_schedule_irq
> +       ldo     R%intr_restore(%r2), %r2
> +#endif
> +
>
> -       b,n     intr_restore            /* ssm PSW_SM_I done by intr_restore */
>  #endif /* CONFIG_PREEMPTION */
>
>         /*
>
>


-- 
Thanks,
~Nick Desaulniers

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 20:47         ` Helge Deller
@ 2021-01-25 20:59           ` Helge Deller
  -1 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 20:59 UTC (permalink / raw)
  Cc: John David Anglin, Nick Desaulniers, James Bottomley,
	linux-parisc, kbuild-all, LKML, Ingo Molnar, Kees Cook,
	kernel test robot

On 1/25/21 9:47 PM, Helge Deller wrote:
>>>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>>>> date:   5 months ago
>>>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>>>         git fetch --no-tags linus master
>>>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>         # save the attached .config to linux build tree
>>>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>>>
>>>>> If you fix the issue, kindly add following tag as appropriate
>>>>> Reported-by: kernel test robot <lkp@intel.com>
>>>>>
>>>>> All errors (new ones prefixed by >>):
>>>>>
>>>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
> ....
>
> The problem with this .config is, that both CONFIG_MODULES and
> CONFIG_MLONGCALLS are set to "n".
> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
> this case.
>
>
> This patch fixes it for me:
>
> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>
> When building a kernel without module support, the CONFIG_MLONGCALL
> option needs to be enabled. This patch fixes the autodetection in the
> Kconfig script and uses a far call to preempt_schedule_irq() in
> intr_do_preempt().
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> Reported-by: kernel test robot <lkp@intel.com>

There's a small bug in the code below:
	BL	preempt_schedule_irq
needs to be
	BL	preempt_schedule_irq, %r0

I'll do some more testing and will push the final version
through the parisc tree.

Helge


> ---
>
> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
> index 78b17621ee4a..278462186ac4 100644
> --- a/arch/parisc/Kconfig
> +++ b/arch/parisc/Kconfig
> @@ -202,9 +202,8 @@ config PREFETCH
>  	depends on PA8X00 || PA7200
>
>  config MLONGCALLS
> -	bool "Enable the -mlong-calls compiler option for big kernels"
> -	default y if !MODULES || UBSAN || FTRACE
> -	default n
> +	def_bool y if !MODULES || UBSAN || FTRACE
> +	bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
>  	depends on PA8X00
>  	help
>  	  If you configure the kernel to include many drivers built-in instead
> diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
> index beba9816cc6c..6320f6a8397c 100644
> --- a/arch/parisc/kernel/entry.S
> +++ b/arch/parisc/kernel/entry.S
> @@ -997,10 +997,19 @@ intr_do_preempt:
>  	bb,<,n	%r20, 31 - PSW_SM_I, intr_restore
>  	nop
>
> -	BL	preempt_schedule_irq, %r2
> -	nop
> +	/* ssm PSW_SM_I done later in intr_restore */
> +#ifdef CONFIG_MLONGCALLS
> +	ldil    L%intr_restore, %r2
> +	load32	preempt_schedule_irq, %r1
> +	bv	%r0(%r1)
> +	ldo     R%intr_restore(%r2), %r2
> +#else
> +	ldil    L%intr_restore, %r2
> +	BL	preempt_schedule_irq
> +	ldo     R%intr_restore(%r2), %r2
> +#endif
> +
>
> -	b,n	intr_restore		/* ssm PSW_SM_I done by intr_restore */
>  #endif /* CONFIG_PREEMPTION */
>
>  	/*
>
>


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 20:59           ` Helge Deller
  0 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 20:59 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3935 bytes --]

On 1/25/21 9:47 PM, Helge Deller wrote:
>>>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>>>> date:   5 months ago
>>>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>>>         git fetch --no-tags linus master
>>>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>         # save the attached .config to linux build tree
>>>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>>>
>>>>> If you fix the issue, kindly add following tag as appropriate
>>>>> Reported-by: kernel test robot <lkp@intel.com>
>>>>>
>>>>> All errors (new ones prefixed by >>):
>>>>>
>>>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
> ....
>
> The problem with this .config is, that both CONFIG_MODULES and
> CONFIG_MLONGCALLS are set to "n".
> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
> this case.
>
>
> This patch fixes it for me:
>
> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>
> When building a kernel without module support, the CONFIG_MLONGCALL
> option needs to be enabled. This patch fixes the autodetection in the
> Kconfig script and uses a far call to preempt_schedule_irq() in
> intr_do_preempt().
>
> Signed-off-by: Helge Deller <deller@gmx.de>
> Reported-by: kernel test robot <lkp@intel.com>

There's a small bug in the code below:
	BL	preempt_schedule_irq
needs to be
	BL	preempt_schedule_irq, %r0

I'll do some more testing and will push the final version
through the parisc tree.

Helge


> ---
>
> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
> index 78b17621ee4a..278462186ac4 100644
> --- a/arch/parisc/Kconfig
> +++ b/arch/parisc/Kconfig
> @@ -202,9 +202,8 @@ config PREFETCH
>  	depends on PA8X00 || PA7200
>
>  config MLONGCALLS
> -	bool "Enable the -mlong-calls compiler option for big kernels"
> -	default y if !MODULES || UBSAN || FTRACE
> -	default n
> +	def_bool y if !MODULES || UBSAN || FTRACE
> +	bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
>  	depends on PA8X00
>  	help
>  	  If you configure the kernel to include many drivers built-in instead
> diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
> index beba9816cc6c..6320f6a8397c 100644
> --- a/arch/parisc/kernel/entry.S
> +++ b/arch/parisc/kernel/entry.S
> @@ -997,10 +997,19 @@ intr_do_preempt:
>  	bb,<,n	%r20, 31 - PSW_SM_I, intr_restore
>  	nop
>
> -	BL	preempt_schedule_irq, %r2
> -	nop
> +	/* ssm PSW_SM_I done later in intr_restore */
> +#ifdef CONFIG_MLONGCALLS
> +	ldil    L%intr_restore, %r2
> +	load32	preempt_schedule_irq, %r1
> +	bv	%r0(%r1)
> +	ldo     R%intr_restore(%r2), %r2
> +#else
> +	ldil    L%intr_restore, %r2
> +	BL	preempt_schedule_irq
> +	ldo     R%intr_restore(%r2), %r2
> +#endif
> +
>
> -	b,n	intr_restore		/* ssm PSW_SM_I done by intr_restore */
>  #endif /* CONFIG_PREEMPTION */
>
>  	/*
>
>

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 20:58           ` Nick Desaulniers
@ 2021-01-25 21:05             ` Helge Deller
  -1 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 21:05 UTC (permalink / raw)
  To: Nick Desaulniers
  Cc: John David Anglin, James Bottomley, linux-parisc, kbuild-all,
	LKML, Ingo Molnar, Kees Cook, kernel test robot, Masahiro Yamada

On 1/25/21 9:58 PM, Nick Desaulniers wrote:
> On Mon, Jan 25, 2021 at 12:47 PM Helge Deller <deller@gmx.de> wrote:
>>
>>>>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>>>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>>>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>>>>> date:   5 months ago
>>>>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>>>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>>>>         git fetch --no-tags linus master
>>>>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         # save the attached .config to linux build tree
>>>>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>>>>
>>>>>> If you fix the issue, kindly add following tag as appropriate
>>>>>> Reported-by: kernel test robot <lkp@intel.com>
>>>>>>
>>>>>> All errors (new ones prefixed by >>):
>>>>>>
>>>>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>> ....
>>
>> The problem with this .config is, that both CONFIG_MODULES and
>> CONFIG_MLONGCALLS are set to "n".
>> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
>> this case.
>>
>>
>> This patch fixes it for me:
>>
>> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>>
>> When building a kernel without module support, the CONFIG_MLONGCALL
>> option needs to be enabled. This patch fixes the autodetection in the
>> Kconfig script and uses a far call to preempt_schedule_irq() in
>> intr_do_preempt().
>>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>> ---
>>
>> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
>> index 78b17621ee4a..278462186ac4 100644
>> --- a/arch/parisc/Kconfig
>> +++ b/arch/parisc/Kconfig
>> @@ -202,9 +202,8 @@ config PREFETCH
>>         depends on PA8X00 || PA7200
>>
>>  config MLONGCALLS
>> -       bool "Enable the -mlong-calls compiler option for big kernels"
>> -       default y if !MODULES || UBSAN || FTRACE
>> -       default n
>> +       def_bool y if !MODULES || UBSAN || FTRACE
>> +       bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
>
> ^ this looks like the same constraints specified twice?  Am I
> understanding that correctly? (I don't understand why this isn't
> specified _once_).

The logic is:
- if (!MODULES || UBSAN || FTRACE) then don't ask and always set to Y,
- otherwise show menu entry but leave default as N.

If this can be done in one line I'm happy to correct it.

Helge

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 21:05             ` Helge Deller
  0 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 21:05 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3380 bytes --]

On 1/25/21 9:58 PM, Nick Desaulniers wrote:
> On Mon, Jan 25, 2021 at 12:47 PM Helge Deller <deller@gmx.de> wrote:
>>
>>>>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>>>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>>>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>>>>> date:   5 months ago
>>>>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>>>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>>>>         git fetch --no-tags linus master
>>>>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         # save the attached .config to linux build tree
>>>>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>>>>
>>>>>> If you fix the issue, kindly add following tag as appropriate
>>>>>> Reported-by: kernel test robot <lkp@intel.com>
>>>>>>
>>>>>> All errors (new ones prefixed by >>):
>>>>>>
>>>>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>> ....
>>
>> The problem with this .config is, that both CONFIG_MODULES and
>> CONFIG_MLONGCALLS are set to "n".
>> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
>> this case.
>>
>>
>> This patch fixes it for me:
>>
>> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>>
>> When building a kernel without module support, the CONFIG_MLONGCALL
>> option needs to be enabled. This patch fixes the autodetection in the
>> Kconfig script and uses a far call to preempt_schedule_irq() in
>> intr_do_preempt().
>>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>> ---
>>
>> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
>> index 78b17621ee4a..278462186ac4 100644
>> --- a/arch/parisc/Kconfig
>> +++ b/arch/parisc/Kconfig
>> @@ -202,9 +202,8 @@ config PREFETCH
>>         depends on PA8X00 || PA7200
>>
>>  config MLONGCALLS
>> -       bool "Enable the -mlong-calls compiler option for big kernels"
>> -       default y if !MODULES || UBSAN || FTRACE
>> -       default n
>> +       def_bool y if !MODULES || UBSAN || FTRACE
>> +       bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
>
> ^ this looks like the same constraints specified twice?  Am I
> understanding that correctly? (I don't understand why this isn't
> specified _once_).

The logic is:
- if (!MODULES || UBSAN || FTRACE) then don't ask and always set to Y,
- otherwise show menu entry but leave default as N.

If this can be done in one line I'm happy to correct it.

Helge

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 20:59           ` Helge Deller
@ 2021-01-25 21:08             ` John David Anglin
  -1 siblings, 0 replies; 24+ messages in thread
From: John David Anglin @ 2021-01-25 21:08 UTC (permalink / raw)
  To: Helge Deller
  Cc: Nick Desaulniers, James Bottomley, linux-parisc, kbuild-all,
	LKML, Ingo Molnar, Kees Cook, kernel test robot

I would suggest the following for this hunk:

+    ldil    L%intr_restore, %r2
+    BL    preempt_schedule_irq
+    ldo     R%intr_restore(%r2), %r2

    ldil    L%intr_restore, %r1
    b,l    preempt_schedule_irq,%r2
    ldo     R%intr_restore(%r1), %r2

On PA 2.0 hardware that gives a 22-bit call.

Dave

On 2021-01-25 3:59 p.m., Helge Deller wrote:
> On 1/25/21 9:47 PM, Helge Deller wrote:
>>>>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>>>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>>>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>>>>> date:   5 months ago
>>>>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>>>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>>>>         git fetch --no-tags linus master
>>>>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         # save the attached .config to linux build tree
>>>>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>>>>
>>>>>> If you fix the issue, kindly add following tag as appropriate
>>>>>> Reported-by: kernel test robot <lkp@intel.com>
>>>>>>
>>>>>> All errors (new ones prefixed by >>):
>>>>>>
>>>>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>> ....
>>
>> The problem with this .config is, that both CONFIG_MODULES and
>> CONFIG_MLONGCALLS are set to "n".
>> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
>> this case.
>>
>>
>> This patch fixes it for me:
>>
>> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>>
>> When building a kernel without module support, the CONFIG_MLONGCALL
>> option needs to be enabled. This patch fixes the autodetection in the
>> Kconfig script and uses a far call to preempt_schedule_irq() in
>> intr_do_preempt().
>>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>> Reported-by: kernel test robot <lkp@intel.com>
> There's a small bug in the code below:
> 	BL	preempt_schedule_irq
> needs to be
> 	BL	preempt_schedule_irq, %r0
>
> I'll do some more testing and will push the final version
> through the parisc tree.
>
> Helge
>
>
>> ---
>>
>> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
>> index 78b17621ee4a..278462186ac4 100644
>> --- a/arch/parisc/Kconfig
>> +++ b/arch/parisc/Kconfig
>> @@ -202,9 +202,8 @@ config PREFETCH
>>  	depends on PA8X00 || PA7200
>>
>>  config MLONGCALLS
>> -	bool "Enable the -mlong-calls compiler option for big kernels"
>> -	default y if !MODULES || UBSAN || FTRACE
>> -	default n
>> +	def_bool y if !MODULES || UBSAN || FTRACE
>> +	bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
>>  	depends on PA8X00
>>  	help
>>  	  If you configure the kernel to include many drivers built-in instead
>> diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
>> index beba9816cc6c..6320f6a8397c 100644
>> --- a/arch/parisc/kernel/entry.S
>> +++ b/arch/parisc/kernel/entry.S
>> @@ -997,10 +997,19 @@ intr_do_preempt:
>>  	bb,<,n	%r20, 31 - PSW_SM_I, intr_restore
>>  	nop
>>
>> -	BL	preempt_schedule_irq, %r2
>> -	nop
>> +	/* ssm PSW_SM_I done later in intr_restore */
>> +#ifdef CONFIG_MLONGCALLS
>> +	ldil    L%intr_restore, %r2
>> +	load32	preempt_schedule_irq, %r1
>> +	bv	%r0(%r1)
>> +	ldo     R%intr_restore(%r2), %r2
>> +#else
>> +	ldil    L%intr_restore, %r2
>> +	BL	preempt_schedule_irq
>> +	ldo     R%intr_restore(%r2), %r2
>> +#endif
>> +
>>
>> -	b,n	intr_restore		/* ssm PSW_SM_I done by intr_restore */
>>  #endif /* CONFIG_PREEMPTION */
>>
>>  	/*
>>
>>


-- 
John David Anglin  dave.anglin@bell.net


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 21:08             ` John David Anglin
  0 siblings, 0 replies; 24+ messages in thread
From: John David Anglin @ 2021-01-25 21:08 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4502 bytes --]

I would suggest the following for this hunk:

+    ldil    L%intr_restore, %r2
+    BL    preempt_schedule_irq
+    ldo     R%intr_restore(%r2), %r2

    ldil    L%intr_restore, %r1
    b,l    preempt_schedule_irq,%r2
    ldo     R%intr_restore(%r1), %r2

On PA 2.0 hardware that gives a 22-bit call.

Dave

On 2021-01-25 3:59 p.m., Helge Deller wrote:
> On 1/25/21 9:47 PM, Helge Deller wrote:
>>>>> On Sat, Jan 16, 2021 at 6:37 AM kernel test robot <lkp@intel.com> wrote:
>>>>>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
>>>>>> head:   1d94330a437a573cfdf848f6743b1ed169242c8a
>>>>>> commit: eff8728fe69880d3f7983bec3fb6cea4c306261f vmlinux.lds.h: Add PGO and AutoFDO input sections
>>>>>> date:   5 months ago
>>>>>> config: parisc-randconfig-r032-20210116 (attached as .config)
>>>>>> compiler: hppa64-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/torvalds/linux.git/commit/?id=eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>>>>>>         git fetch --no-tags linus master
>>>>>>         git checkout eff8728fe69880d3f7983bec3fb6cea4c306261f
>>>>>>         # save the attached .config to linux build tree
>>>>>>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
>>>>>>
>>>>>> If you fix the issue, kindly add following tag as appropriate
>>>>>> Reported-by: kernel test robot <lkp@intel.com>
>>>>>>
>>>>>> All errors (new ones prefixed by >>):
>>>>>>
>>>>>>    hppa64-linux-ld: mm/page_alloc.o(.ref.text+0x110): cannot reach unknown
>>>>>>    hppa64-linux-ld: mm/memblock.o(.text+0x27c): cannot reach __warn_printk
>>>>>>    hppa64-linux-ld: mm/memblock.o(.meminit.text+0xc4): cannot reach printk
>> ....
>>
>> The problem with this .config is, that both CONFIG_MODULES and
>> CONFIG_MLONGCALLS are set to "n".
>> The Kconfig autodetection needs fixing to enable CONFIG_MLONGCALLS in
>> this case.
>>
>>
>> This patch fixes it for me:
>>
>> [PATCH] Require -mlong-calls gcc option for !CONFIG_MODULES
>>
>> When building a kernel without module support, the CONFIG_MLONGCALL
>> option needs to be enabled. This patch fixes the autodetection in the
>> Kconfig script and uses a far call to preempt_schedule_irq() in
>> intr_do_preempt().
>>
>> Signed-off-by: Helge Deller <deller@gmx.de>
>> Reported-by: kernel test robot <lkp@intel.com>
> There's a small bug in the code below:
> 	BL	preempt_schedule_irq
> needs to be
> 	BL	preempt_schedule_irq, %r0
>
> I'll do some more testing and will push the final version
> through the parisc tree.
>
> Helge
>
>
>> ---
>>
>> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig
>> index 78b17621ee4a..278462186ac4 100644
>> --- a/arch/parisc/Kconfig
>> +++ b/arch/parisc/Kconfig
>> @@ -202,9 +202,8 @@ config PREFETCH
>>  	depends on PA8X00 || PA7200
>>
>>  config MLONGCALLS
>> -	bool "Enable the -mlong-calls compiler option for big kernels"
>> -	default y if !MODULES || UBSAN || FTRACE
>> -	default n
>> +	def_bool y if !MODULES || UBSAN || FTRACE
>> +	bool "Enable the -mlong-calls compiler option for big kernels" if MODULES && !UBSAN && !FTRACE
>>  	depends on PA8X00
>>  	help
>>  	  If you configure the kernel to include many drivers built-in instead
>> diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
>> index beba9816cc6c..6320f6a8397c 100644
>> --- a/arch/parisc/kernel/entry.S
>> +++ b/arch/parisc/kernel/entry.S
>> @@ -997,10 +997,19 @@ intr_do_preempt:
>>  	bb,<,n	%r20, 31 - PSW_SM_I, intr_restore
>>  	nop
>>
>> -	BL	preempt_schedule_irq, %r2
>> -	nop
>> +	/* ssm PSW_SM_I done later in intr_restore */
>> +#ifdef CONFIG_MLONGCALLS
>> +	ldil    L%intr_restore, %r2
>> +	load32	preempt_schedule_irq, %r1
>> +	bv	%r0(%r1)
>> +	ldo     R%intr_restore(%r2), %r2
>> +#else
>> +	ldil    L%intr_restore, %r2
>> +	BL	preempt_schedule_irq
>> +	ldo     R%intr_restore(%r2), %r2
>> +#endif
>> +
>>
>> -	b,n	intr_restore		/* ssm PSW_SM_I done by intr_restore */
>>  #endif /* CONFIG_PREEMPTION */
>>
>>  	/*
>>
>>


-- 
John David Anglin  dave.anglin(a)bell.net

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 21:08             ` John David Anglin
@ 2021-01-25 21:13               ` Helge Deller
  -1 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 21:13 UTC (permalink / raw)
  To: John David Anglin
  Cc: Nick Desaulniers, James Bottomley, linux-parisc, kbuild-all,
	LKML, Ingo Molnar, Kees Cook, kernel test robot

On 1/25/21 10:08 PM, John David Anglin wrote:
> I would suggest the following for this hunk:
>
> +    ldil    L%intr_restore, %r2
> +    BL    preempt_schedule_irq
> +    ldo     R%intr_restore(%r2), %r2
>
>     ldil    L%intr_restore, %r1
>     b,l    preempt_schedule_irq,%r2
>     ldo     R%intr_restore(%r1), %r2
>
> On PA 2.0 hardware that gives a 22-bit call.

"BL" is already using "b,l", see #define in arch/parisc/include/asm/assembly.h

The 22-bit weren't sufficient, that's why I changed it too.

Helge

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 21:13               ` Helge Deller
  0 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 21:13 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

On 1/25/21 10:08 PM, John David Anglin wrote:
> I would suggest the following for this hunk:
>
> +    ldil    L%intr_restore, %r2
> +    BL    preempt_schedule_irq
> +    ldo     R%intr_restore(%r2), %r2
>
>     ldil    L%intr_restore, %r1
>     b,l    preempt_schedule_irq,%r2
>     ldo     R%intr_restore(%r1), %r2
>
> On PA 2.0 hardware that gives a 22-bit call.

"BL" is already using "b,l", see #define in arch/parisc/include/asm/assembly.h

The 22-bit weren't sufficient, that's why I changed it too.

Helge

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 21:13               ` Helge Deller
@ 2021-01-25 21:17                 ` John David Anglin
  -1 siblings, 0 replies; 24+ messages in thread
From: John David Anglin @ 2021-01-25 21:17 UTC (permalink / raw)
  To: Helge Deller
  Cc: Nick Desaulniers, James Bottomley, linux-parisc, kbuild-all,
	LKML, Ingo Molnar, Kees Cook, kernel test robot

On 2021-01-25 4:13 p.m., Helge Deller wrote:
> On 1/25/21 10:08 PM, John David Anglin wrote:
>> I would suggest the following for this hunk:
>>
>> +    ldil    L%intr_restore, %r2
>> +    BL    preempt_schedule_irq
>> +    ldo     R%intr_restore(%r2), %r2
>>
>>     ldil    L%intr_restore, %r1
>>     b,l    preempt_schedule_irq,%r2
>>     ldo     R%intr_restore(%r1), %r2
>>
>> On PA 2.0 hardware that gives a 22-bit call.
> "BL" is already using "b,l", see #define in arch/parisc/include/asm/assembly.h
>
> The 22-bit weren't sufficient, that's why I changed it too.
Okay but "b,l" only provides a 22-bit branch with %r2 as link register.  You also need to use %r1 in the ldil and ldo instructions.

Dave

-- 
John David Anglin  dave.anglin@bell.net


^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 21:17                 ` John David Anglin
  0 siblings, 0 replies; 24+ messages in thread
From: John David Anglin @ 2021-01-25 21:17 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]

On 2021-01-25 4:13 p.m., Helge Deller wrote:
> On 1/25/21 10:08 PM, John David Anglin wrote:
>> I would suggest the following for this hunk:
>>
>> +    ldil    L%intr_restore, %r2
>> +    BL    preempt_schedule_irq
>> +    ldo     R%intr_restore(%r2), %r2
>>
>>     ldil    L%intr_restore, %r1
>>     b,l    preempt_schedule_irq,%r2
>>     ldo     R%intr_restore(%r1), %r2
>>
>> On PA 2.0 hardware that gives a 22-bit call.
> "BL" is already using "b,l", see #define in arch/parisc/include/asm/assembly.h
>
> The 22-bit weren't sufficient, that's why I changed it too.
Okay but "b,l" only provides a 22-bit branch with %r2 as link register.  You also need to use %r1 in the ldil and ldo instructions.

Dave

-- 
John David Anglin  dave.anglin(a)bell.net

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
  2021-01-25 21:17                 ` John David Anglin
@ 2021-01-25 21:37                   ` Helge Deller
  -1 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 21:37 UTC (permalink / raw)
  To: John David Anglin
  Cc: Nick Desaulniers, James Bottomley, linux-parisc, kbuild-all,
	LKML, Ingo Molnar, Kees Cook, kernel test robot

On 1/25/21 10:17 PM, John David Anglin wrote:
> On 2021-01-25 4:13 p.m., Helge Deller wrote:
>> On 1/25/21 10:08 PM, John David Anglin wrote:
>>> I would suggest the following for this hunk:
>>>
>>> +    ldil    L%intr_restore, %r2
>>> +    BL    preempt_schedule_irq
>>> +    ldo     R%intr_restore(%r2), %r2
>>>
>>>     ldil    L%intr_restore, %r1
>>>     b,l    preempt_schedule_irq,%r2
>>>     ldo     R%intr_restore(%r1), %r2
>>>
>>> On PA 2.0 hardware that gives a 22-bit call.
>> "BL" is already using "b,l", see #define in arch/parisc/include/asm/assembly.h
>>
>> The 22-bit weren't sufficient, that's why I changed it too.
> Okay but "b,l" only provides a 22-bit branch with %r2 as link register. 

Argh. Yes. Didn't know.
We have BL,%r25 in the same file.

> You also need to use %r1 in the ldil and ldo instructions.

Ok, will fix.

Helge

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk
@ 2021-01-25 21:37                   ` Helge Deller
  0 siblings, 0 replies; 24+ messages in thread
From: Helge Deller @ 2021-01-25 21:37 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 914 bytes --]

On 1/25/21 10:17 PM, John David Anglin wrote:
> On 2021-01-25 4:13 p.m., Helge Deller wrote:
>> On 1/25/21 10:08 PM, John David Anglin wrote:
>>> I would suggest the following for this hunk:
>>>
>>> +    ldil    L%intr_restore, %r2
>>> +    BL    preempt_schedule_irq
>>> +    ldo     R%intr_restore(%r2), %r2
>>>
>>>     ldil    L%intr_restore, %r1
>>>     b,l    preempt_schedule_irq,%r2
>>>     ldo     R%intr_restore(%r1), %r2
>>>
>>> On PA 2.0 hardware that gives a 22-bit call.
>> "BL" is already using "b,l", see #define in arch/parisc/include/asm/assembly.h
>>
>> The 22-bit weren't sufficient, that's why I changed it too.
> Okay but "b,l" only provides a 22-bit branch with %r2 as link register. 

Argh. Yes. Didn't know.
We have BL,%r25 in the same file.

> You also need to use %r1 in the ldil and ldo instructions.

Ok, will fix.

Helge

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2021-01-26 19:19 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-16 14:36 hppa64-linux-ld: mm/hugetlb.o(.text+0x50dc): cannot reach printk kernel test robot
2021-01-16 14:36 ` kernel test robot
2021-01-25 17:54 ` Nick Desaulniers
2021-01-25 17:54   ` Nick Desaulniers
2021-01-25 18:34   ` John David Anglin
2021-01-25 18:34     ` John David Anglin
2021-01-25 19:25     ` Helge Deller
2021-01-25 19:25       ` Helge Deller
2021-01-25 20:47       ` Helge Deller
2021-01-25 20:47         ` Helge Deller
2021-01-25 20:58         ` Nick Desaulniers
2021-01-25 20:58           ` Nick Desaulniers
2021-01-25 21:05           ` Helge Deller
2021-01-25 21:05             ` Helge Deller
2021-01-25 20:59         ` Helge Deller
2021-01-25 20:59           ` Helge Deller
2021-01-25 21:08           ` John David Anglin
2021-01-25 21:08             ` John David Anglin
2021-01-25 21:13             ` Helge Deller
2021-01-25 21:13               ` Helge Deller
2021-01-25 21:17               ` John David Anglin
2021-01-25 21:17                 ` John David Anglin
2021-01-25 21:37                 ` Helge Deller
2021-01-25 21:37                   ` Helge Deller

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.