2021-05-13 22:11:54

by kernel test robot

[permalink] [raw]
Subject: arch/riscv/errata/sifive/errata_cip_453.S:25: Error: Improper shift amount (38)

Hi Vincent,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c06a2ba62fc401b7aaefd23f5d0bc06d2457ccc1
commit: 800149a77c2cb8746a94457939b1ba1e37d2c14e riscv: sifive: Apply errata "cip-453" patch
date: 2 weeks ago
config: riscv-randconfig-r023-20210513 (attached as .config)
compiler: riscv32-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=800149a77c2cb8746a94457939b1ba1e37d2c14e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 800149a77c2cb8746a94457939b1ba1e37d2c14e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=riscv

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

All errors (new ones prefixed by >>):

arch/riscv/errata/sifive/errata_cip_453.S: Assembler messages:
>> arch/riscv/errata/sifive/errata_cip_453.S:25: Error: Improper shift amount (38)
arch/riscv/errata/sifive/errata_cip_453.S:25: Error: Improper shift amount (39)
arch/riscv/errata/sifive/errata_cip_453.S:35: Error: Improper shift amount (38)
arch/riscv/errata/sifive/errata_cip_453.S:35: Error: Improper shift amount (39)


vim +25 arch/riscv/errata/sifive/errata_cip_453.S

23
24 ENTRY(sifive_cip_453_page_fault_trp)
> 25 ADD_SIGN_EXT a0, t0, t1
26 #ifdef CONFIG_MMU
27 la t0, do_page_fault
28 #else
29 la t0, do_trap_unknown
30 #endif
31 jr t0
32 END(sifive_cip_453_page_fault_trp)
33

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]


Attachments:
(No filename) (2.02 kB)
.config.gz (30.90 kB)
Download all attachments

2021-05-14 10:51:51

by Vincent Chen

[permalink] [raw]
Subject: Re: arch/riscv/errata/sifive/errata_cip_453.S:25: Error: Improper shift amount (38)

Hi all,
The resolved patch "0e0d49925" lacks a change, so this error still happens.
I apologize for any inconvenience caused by this stupid mistake.

Vincent Chen

On Thu, May 13, 2021 at 10:38 PM kernel test robot <[email protected]> wrote:
>
> Hi Vincent,
>
> FYI, the error/warning still remains.
>
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: c06a2ba62fc401b7aaefd23f5d0bc06d2457ccc1
> commit: 800149a77c2cb8746a94457939b1ba1e37d2c14e riscv: sifive: Apply errata "cip-453" patch
> date: 2 weeks ago
> config: riscv-randconfig-r023-20210513 (attached as .config)
> compiler: riscv32-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=800149a77c2cb8746a94457939b1ba1e37d2c14e
> git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> git fetch --no-tags linus master
> git checkout 800149a77c2cb8746a94457939b1ba1e37d2c14e
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=riscv
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <[email protected]>
>
> All errors (new ones prefixed by >>):
>
> arch/riscv/errata/sifive/errata_cip_453.S: Assembler messages:
> >> arch/riscv/errata/sifive/errata_cip_453.S:25: Error: Improper shift amount (38)
> arch/riscv/errata/sifive/errata_cip_453.S:25: Error: Improper shift amount (39)
> arch/riscv/errata/sifive/errata_cip_453.S:35: Error: Improper shift amount (38)
> arch/riscv/errata/sifive/errata_cip_453.S:35: Error: Improper shift amount (39)
>
>
> vim +25 arch/riscv/errata/sifive/errata_cip_453.S
>
> 23
> 24 ENTRY(sifive_cip_453_page_fault_trp)
> > 25 ADD_SIGN_EXT a0, t0, t1
> 26 #ifdef CONFIG_MMU
> 27 la t0, do_page_fault
> 28 #else
> 29 la t0, do_trap_unknown
> 30 #endif
> 31 jr t0
> 32 END(sifive_cip_453_page_fault_trp)
> 33
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/[email protected]