2016-04-18 15:27:43

by Fengguang Wu

[permalink] [raw]
Subject: arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'

Hi Piet,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c3b46c73264b03000d1e18b22f5caf63332547c9
commit: 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9 xtensa: add Three Core HiFi-2 MX Variant.
date: 5 weeks ago
config: xtensa-smp_lx200_defconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9
# save the attached .config to linux build tree
make.cross ARCH=xtensa

All errors (new ones prefixed by >>):

arch/xtensa/include/asm/processor.h: Assembler messages:
>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
--
arch/xtensa/kernel/coprocessor.S: Assembler messages:
>> arch/xtensa/kernel/coprocessor.S:93: Error: invalid register number (240) for 'rur240'
>> arch/xtensa/kernel/coprocessor.S:93: Error: invalid register number (241) for 'rur241'
>> arch/xtensa/kernel/coprocessor.S:93: Error: invalid register number (242) for 'rur242'
>> arch/xtensa/kernel/coprocessor.S:93: Error: invalid register number (243) for 'rur243'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sp24x2s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sq56s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sq56s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sq56s.i'
>> arch/xtensa/kernel/coprocessor.S:93: Error: unknown opcode or format name 'ae_sq56s.i'
>> arch/xtensa/kernel/coprocessor.S:102: Error: invalid register number (240) for 'wur240'
>> arch/xtensa/kernel/coprocessor.S:102: Error: invalid register number (241) for 'wur241'
>> arch/xtensa/kernel/coprocessor.S:102: Error: invalid register number (242) for 'wur242'
>> arch/xtensa/kernel/coprocessor.S:102: Error: invalid register number (243) for 'wur243'
--
arch/xtensa/include/asm/processor.h: Assembler messages:
>> arch/xtensa/include/asm/processor.h:233: Error: unknown opcode or format name 'rer'
>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>> arch/xtensa/include/asm/processor.h:233: Error: unknown opcode or format name 'rer'
>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>> arch/xtensa/include/asm/processor.h:233: Error: unknown opcode or format name 'rer'
>> arch/xtensa/include/asm/processor.h:233: Error: unknown opcode or format name 'rer'
>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>> arch/xtensa/include/asm/processor.h:233: Error: unknown opcode or format name 'rer'
>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>> arch/xtensa/include/asm/processor.h:233: Error: unknown opcode or format name 'rer'
>> arch/xtensa/include/asm/processor.h:233: Error: unknown opcode or format name 'rer'
--
arch/xtensa/kernel/head.S: Assembler messages:
>> arch/xtensa/kernel/head.S:187: Error: unknown opcode or format name 'wer'
arch/xtensa/kernel/head.S:317: Error: unknown opcode or format name 'wer'

vim +/wer +227 arch/xtensa/include/asm/processor.h

26a8e96a Max Filippov 2013-12-01 221 #endif
26a8e96a Max Filippov 2013-12-01 222
26a8e96a Max Filippov 2013-12-01 223 #if XCHAL_HAVE_EXTERN_REGS
26a8e96a Max Filippov 2013-12-01 224
26a8e96a Max Filippov 2013-12-01 225 static inline void set_er(unsigned long value, unsigned long addr)
26a8e96a Max Filippov 2013-12-01 226 {
26a8e96a Max Filippov 2013-12-01 @227 asm volatile ("wer %0, %1" : : "a" (value), "a" (addr) : "memory");
26a8e96a Max Filippov 2013-12-01 228 }
26a8e96a Max Filippov 2013-12-01 229
26a8e96a Max Filippov 2013-12-01 230 static inline unsigned long get_er(unsigned long addr)
26a8e96a Max Filippov 2013-12-01 231 {
26a8e96a Max Filippov 2013-12-01 232 register unsigned long value;
26a8e96a Max Filippov 2013-12-01 @233 asm volatile ("rer %0, %1" : "=a" (value) : "a" (addr) : "memory");
26a8e96a Max Filippov 2013-12-01 234 return value;
26a8e96a Max Filippov 2013-12-01 235 }
26a8e96a Max Filippov 2013-12-01 236

:::::: The code at line 227 was first introduced by commit
:::::: 26a8e96a8b37e8070fa9dcb1b7490cf4d4492d50 xtensa: add MX irqchip

:::::: TO: Max Filippov <[email protected]>
:::::: CC: Chris Zankel <[email protected]>

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


Attachments:
(No filename) (5.41 kB)
.config.gz (9.87 kB)
Download all attachments

2016-04-18 15:52:59

by Max Filippov

[permalink] [raw]
Subject: Re: arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'

Hi Fengguang,

On Mon, Apr 18, 2016 at 6:29 PM, kbuild test robot
<[email protected]> wrote:
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: c3b46c73264b03000d1e18b22f5caf63332547c9
> commit: 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9 xtensa: add Three Core HiFi-2 MX Variant.
> date: 5 weeks ago
> config: xtensa-smp_lx200_defconfig (attached as .config)
> reproduce:
> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> git checkout 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9
> # save the attached .config to linux build tree
> make.cross ARCH=xtensa
>
> All errors (new ones prefixed by >>):
>
> arch/xtensa/include/asm/processor.h: Assembler messages:
>>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'

As I said before these are not errors in the linux code, that's
a result of using a compiler not configured for this specific xtensa core.

How can I help to fix it?

--
Thanks.
-- Max

2016-04-19 01:40:35

by Philip Li

[permalink] [raw]
Subject: Re: arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'

On Mon, Apr 18, 2016 at 06:52:57PM +0300, Max Filippov wrote:
> Hi Fengguang,
>
> On Mon, Apr 18, 2016 at 6:29 PM, kbuild test robot
> <[email protected]> wrote:
> > FYI, the error/warning still remains.
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: c3b46c73264b03000d1e18b22f5caf63332547c9
> > commit: 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9 xtensa: add Three Core HiFi-2 MX Variant.
> > date: 5 weeks ago
> > config: xtensa-smp_lx200_defconfig (attached as .config)
> > reproduce:
> > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> > chmod +x ~/bin/make.cross
> > git checkout 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9
> > # save the attached .config to linux build tree
> > make.cross ARCH=xtensa
> >
> > All errors (new ones prefixed by >>):
> >
> > arch/xtensa/include/asm/processor.h: Assembler messages:
> >>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
> >>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
> >>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>
> As I said before these are not errors in the linux code, that's
> a result of using a compiler not configured for this specific xtensa core.
>
sorry for the noise Max, let me follow up this in early next week.

> How can I help to fix it?
>
> --
> Thanks.
> -- Max
>

2016-04-19 01:52:24

by Fengguang Wu

[permalink] [raw]
Subject: Re: [kbuild-all] arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'

Sorry Filippov!

Philip, how about giving more priority to this issue?

Thanks,
Fengguang

On Mon, Apr 18, 2016 at 06:52:57PM +0300, Max Filippov wrote:
> Hi Fengguang,
>
> On Mon, Apr 18, 2016 at 6:29 PM, kbuild test robot
> <[email protected]> wrote:
> > FYI, the error/warning still remains.
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: c3b46c73264b03000d1e18b22f5caf63332547c9
> > commit: 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9 xtensa: add Three Core HiFi-2 MX Variant.
> > date: 5 weeks ago
> > config: xtensa-smp_lx200_defconfig (attached as .config)
> > reproduce:
> > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> > chmod +x ~/bin/make.cross
> > git checkout 2c684d892bb2ee31cc48f4a8b91e86a0f15e82f9
> > # save the attached .config to linux build tree
> > make.cross ARCH=xtensa
> >
> > All errors (new ones prefixed by >>):
> >
> > arch/xtensa/include/asm/processor.h: Assembler messages:
> >>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
> >>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
> >>> arch/xtensa/include/asm/processor.h:227: Error: unknown opcode or format name 'wer'
>
> As I said before these are not errors in the linux code, that's
> a result of using a compiler not configured for this specific xtensa core.
>
> How can I help to fix it?
>
> --
> Thanks.
> -- Max
> _______________________________________________
> kbuild-all mailing list
> [email protected]
> https://lists.01.org/mailman/listinfo/kbuild-all