2022-06-10 00:59:10

by kernel test robot

[permalink] [raw]
Subject: {standard input}:3978: Error: value 178 out of range

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 6bfb56e93bcef41859c2d5ab234ffd80b691be35
commit: 43ca110050988c7a0e581d24ce212ef34a4cdf29 scsi: mpi3mr: Add support for PEL commands
date: 5 weeks ago
config: m68k-randconfig-r036-20220608 (https://download.01.org/0day-ci/archive/20220610/[email protected]/config)
compiler: m68k-linux-gcc (GCC) 11.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=43ca110050988c7a0e581d24ce212ef34a4cdf29
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 43ca110050988c7a0e581d24ce212ef34a4cdf29
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

{standard input}: Assembler messages:
>> {standard input}:3978: Error: value 178 out of range
>> {standard input}:3978: Error: value of 178 too large for field of 1 byte at 00000fdb

--
0-DAY CI Kernel Test Service
https://01.org/lkp


2022-06-10 09:04:47

by Geert Uytterhoeven

[permalink] [raw]
Subject: Re: {standard input}:3978: Error: value 178 out of range

On Fri, Jun 10, 2022 at 2:47 AM kernel test robot <[email protected]> wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 6bfb56e93bcef41859c2d5ab234ffd80b691be35
> commit: 43ca110050988c7a0e581d24ce212ef34a4cdf29 scsi: mpi3mr: Add support for PEL commands
> date: 5 weeks ago
> config: m68k-randconfig-r036-20220608 (https://download.01.org/0day-ci/archive/20220610/[email protected]/config)
> compiler: m68k-linux-gcc (GCC) 11.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=43ca110050988c7a0e581d24ce212ef34a4cdf29
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 43ca110050988c7a0e581d24ce212ef34a4cdf29
> # save the config file
> mkdir build_dir && cp config build_dir/.config
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag where applicable
> Reported-by: kernel test robot <[email protected]>
>
> All errors (new ones prefixed by >>):
>
> {standard input}: Assembler messages:
> >> {standard input}:3978: Error: value 178 out of range
> >> {standard input}:3978: Error: value of 178 too large for field of 1 byte at 00000fdb

This failure happens while building drivers/scsi/mpi3mr/mpi3mr_fw.o.

How to check:

make ARCH=m68k drivers/scsi/mpi3mr/mpi3mr_fw.s
make ARCH=m68k V=1 drivers/scsi/mpi3mr/mpi3mr_fw.o

Run the output from the last command with mpi3mr_fw.c by mpi3mr_fw.s,
so you will get sensible line numbers:

drivers/scsi/mpi3mr/mpi3mr_fw.s: Assembler messages:
drivers/scsi/mpi3mr/mpi3mr_fw.s:1849: Error: value -168 out of range
drivers/scsi/mpi3mr/mpi3mr_fw.s:1849: Error: value of -168 too
large for field of 1 byte at 3175

Note that the value differs, but I'm using a different compiler
(gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04)).

The offending instruction is:

| drivers/scsi/mpi3mr/mpi3mr_fw.c:299: switch (host_tag) {
mvz.w %d2,%d0 | tmp160, host_tag
mov3q.l #5,%d1 |,
cmp.l %d0,%d1 | host_tag,
jcs .L154 |
tst.w %d6 | host_tag
jeq .L133 |
subq.l #2,%d2 |, tmp238
mvz.w %d2,%d2 | tmp238, tmp240
mov3q.l #3,%d0 |,
cmp.l %d2,%d0 | tmp240,
jcs .L140 |
add.l %d2,%d2 | tmp244
>>> move.w .L155(%pc,%d2.l),%d0 |, tmp245
jra .L186 |

And the table L155 is just too far from the above instruction, so
the displacement is too large, causing the failure.

Looks like a compiler bug to me?

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

2022-06-10 10:44:44

by Andreas Schwab

[permalink] [raw]
Subject: Re: {standard input}:3978: Error: value 178 out of range

On Jun 10 2022, Geert Uytterhoeven wrote:

> The offending instruction is:
>
> | drivers/scsi/mpi3mr/mpi3mr_fw.c:299: switch (host_tag) {
> mvz.w %d2,%d0 | tmp160, host_tag
> mov3q.l #5,%d1 |,
> cmp.l %d0,%d1 | host_tag,
> jcs .L154 |
> tst.w %d6 | host_tag
> jeq .L133 |
> subq.l #2,%d2 |, tmp238
> mvz.w %d2,%d2 | tmp238, tmp240
> mov3q.l #3,%d0 |,
> cmp.l %d2,%d0 | tmp240,
> jcs .L140 |
> add.l %d2,%d2 | tmp244
>>>> move.w .L155(%pc,%d2.l),%d0 |, tmp245
> jra .L186 |
>
> And the table L155 is just too far from the above instruction, so
> the displacement is too large, causing the failure.
>
> Looks like a compiler bug to me?

Yes, it's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028.

--
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."

2022-06-10 11:35:44

by Chen, Rong A

[permalink] [raw]
Subject: Re: [kbuild-all] Re: {standard input}:3978: Error: value 178 out of range



On 6/10/2022 5:47 PM, Andreas Schwab wrote:
> On Jun 10 2022, Geert Uytterhoeven wrote:
>
>> The offending instruction is:
>>
>> | drivers/scsi/mpi3mr/mpi3mr_fw.c:299: switch (host_tag) {
>> mvz.w %d2,%d0 | tmp160, host_tag
>> mov3q.l #5,%d1 |,
>> cmp.l %d0,%d1 | host_tag,
>> jcs .L154 |
>> tst.w %d6 | host_tag
>> jeq .L133 |
>> subq.l #2,%d2 |, tmp238
>> mvz.w %d2,%d2 | tmp238, tmp240
>> mov3q.l #3,%d0 |,
>> cmp.l %d2,%d0 | tmp240,
>> jcs .L140 |
>> add.l %d2,%d2 | tmp244
>>>>> move.w .L155(%pc,%d2.l),%d0 |, tmp245
>> jra .L186 |
>>
>> And the table L155 is just too far from the above instruction, so
>> the displacement is too large, causing the failure.
>>
>> Looks like a compiler bug to me?
>
> Yes, it's https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028.
>

Thanks for the information, we have added the commit 43ca110050
to ignore list to avoid reporting it again.

Best Regards,
Rong Chen