linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] System call table generation support
@ 2018-09-14  8:38 Firoz Khan
  2018-09-14  8:38 ` [PATCH 1/3] mips: Add __NR_syscalls macro in uapi/asm/unistd.h Firoz Khan
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Firoz Khan @ 2018-09-14  8:38 UTC (permalink / raw)
  To: Hauke Mehrtens, Rafał Miłecki, linux-mips,
	Ralf Baechle, Paul Burton, James Hogan, Greg Kroah-Hartman,
	Philippe Ombredanne, Thomas Gleixner, Kate Stewart
  Cc: y2038, linux-kernel, linux-arch, arnd, deepa.kernel,
	marcin.juszkiewicz, firoz.khan

The purpose of this patch series is:
1. We can easily add/modify/delete system call by changing entry 
in syscall.tbl file. No need to manually edit many files.

2. It is easy to unify the system call implementation across all 
the architectures. 

The system call tables are in different format in all architecture 
and it will be difficult to manually add or modify the system calls
in the respective files manually. To make it easy by keeping a script 
and which'll generate the header file and syscall table file so this 
change will unify them across all architectures.

syscall.tbl contains the list of available system calls along with 
system call number and corresponding entry point. Add a new system 
call in this architecture will be possible by adding new entry in 
the syscall.tbl file.

Adding a new table entry consisting of:
        - System call number.
        - ABI.
        - System call name.
        - Entry point name.
        - Compat entry name, if required.

ARM, s390 and x86 architecuture does exist the similar support. I 
leverage their implementation to come up with a generic solution.

I have done the same support for work for alpha, m68k, microblaze, 
ia64, powerpc, parisc, sh, sparc, and xtensa. But I started sending 
the patch for one architecuture for review. Below mentioned git
repository contains more details.
Git repo:- https://github.com/frzkhn/system_call_table_generator/

Finally, this is the ground work for solving the Y2038 issue. We 
need to add/change two dozen of system calls to solve Y2038 issue. 
So this patch series will help to easily modify from existing 
system call to Y2038 compatible system calls.

I started working system call table generation on 4.17-rc1. I used 
marcin's script - https://github.com/hrw/syscalls-table to generate 
the syscall.tbl file. And this will be the input to the system call 
table generation script. But there are couple system call got add 
in the latest rc release. If run Marcin's script on latest release,
It will generate a new syscall.tbl. But I still use the old file - 
syscall.tbl and once all review got over I'll update syscall.tbl 
alone w.r.to the tip of the kernel. The impact of this thing, few 
of the system call won't work. 

Firoz Khan (3):
  mips: Add __NR_syscalls macro in uapi/asm/unistd.h
  mips: Add system call table generation support
  mips: uapi header and system call table file generation

 arch/mips/Makefile                        |    3 +
 arch/mips/include/asm/Kbuild              |    4 +
 arch/mips/include/uapi/asm/Kbuild         |    3 +
 arch/mips/include/uapi/asm/unistd.h       | 1053 +----------------------------
 arch/mips/kernel/scall32-o32.S            |  385 +----------
 arch/mips/kernel/scall64-64.S             |  334 +--------
 arch/mips/kernel/scall64-n32.S            |  337 +--------
 arch/mips/kernel/scall64-o32.S            |  374 +---------
 arch/mips/kernel/syscall_table_32_o32.S   |    8 +
 arch/mips/kernel/syscall_table_64_64.S    |    9 +
 arch/mips/kernel/syscall_table_64_n32.S   |    8 +
 arch/mips/kernel/syscall_table_64_o32.S   |    9 +
 arch/mips/kernel/syscalls/Makefile        |   62 ++
 arch/mips/kernel/syscalls/README.md       |   16 +
 arch/mips/kernel/syscalls/syscall_32.tbl  |  375 ++++++++++
 arch/mips/kernel/syscalls/syscall_64.tbl  |  335 +++++++++
 arch/mips/kernel/syscalls/syscall_n32.tbl |  339 ++++++++++
 arch/mips/kernel/syscalls/syscallhdr.sh   |   37 +
 arch/mips/kernel/syscalls/syscalltbl.sh   |   44 ++
 19 files changed, 1268 insertions(+), 2467 deletions(-)
 create mode 100644 arch/mips/kernel/syscall_table_32_o32.S
 create mode 100644 arch/mips/kernel/syscall_table_64_64.S
 create mode 100644 arch/mips/kernel/syscall_table_64_n32.S
 create mode 100644 arch/mips/kernel/syscall_table_64_o32.S
 create mode 100644 arch/mips/kernel/syscalls/Makefile
 create mode 100644 arch/mips/kernel/syscalls/README.md
 create mode 100644 arch/mips/kernel/syscalls/syscall_32.tbl
 create mode 100644 arch/mips/kernel/syscalls/syscall_64.tbl
 create mode 100644 arch/mips/kernel/syscalls/syscall_n32.tbl
 create mode 100644 arch/mips/kernel/syscalls/syscallhdr.sh
 create mode 100644 arch/mips/kernel/syscalls/syscalltbl.sh

-- 
1.9.1


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

* [PATCH 1/3] mips: Add __NR_syscalls macro in uapi/asm/unistd.h
  2018-09-14  8:38 [PATCH 0/3] System call table generation support Firoz Khan
@ 2018-09-14  8:38 ` Firoz Khan
  2018-09-14  8:38 ` [PATCH 2/3] mips: Add system call table generation support Firoz Khan
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 20+ messages in thread
From: Firoz Khan @ 2018-09-14  8:38 UTC (permalink / raw)
  To: Hauke Mehrtens, Rafał Miłecki, linux-mips,
	Ralf Baechle, Paul Burton, James Hogan, Greg Kroah-Hartman,
	Philippe Ombredanne, Thomas Gleixner, Kate Stewart
  Cc: y2038, linux-kernel, linux-arch, arnd, deepa.kernel,
	marcin.juszkiewicz, firoz.khan

NR_syscalls macro holds the number of system call exist in MIPS
architecture. This macro is currently not a part of uapi/asm/unistd.h
file. The purpose of this macro is We have to change the value of
NR_syscalls, if we add or delete a system call.

One of the patch in this patch series has a script which will generate
a uapi header based on syscall.tbl file. The syscall.tbl file contains
the number of system call information. So we have two option to update
NR_syscalls value.

1. Update NR_syscalls in uapi/asm/unistd.h manually by counting the
   no.of system calls. No need to update NR_syscalls until we either
   add a new system call or delete an existing system call.

2. We can keep this feature it above mentioned script, that'll
   count the number of syscalls and keep it in a generated file.
   In this case we don't need to explicitly update NR_syscalls
   in asm/unistd.h file.

The 2nd option will be the recommended one. While __NR_syscalls
isn't strictly part of the uapi, having it as part of the generated
header to simplifies the implementation.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
---
 arch/mips/include/uapi/asm/unistd.h | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/arch/mips/include/uapi/asm/unistd.h b/arch/mips/include/uapi/asm/unistd.h
index f25dd1d..f8bab34 100644
--- a/arch/mips/include/uapi/asm/unistd.h
+++ b/arch/mips/include/uapi/asm/unistd.h
@@ -390,17 +390,17 @@
 #define __NR_statx			(__NR_Linux + 366)
 #define __NR_rseq			(__NR_Linux + 367)
 #define __NR_io_pgetevents		(__NR_Linux + 368)
-
+#define __NR_syscalls                   368
 
 /*
  * Offset of the last Linux o32 flavoured syscall
  */
-#define __NR_Linux_syscalls		368
+#define __NR_Linux_syscalls             __NR_syscalls
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux			4000
-#define __NR_O32_Linux_syscalls		368
+#define __NR_O32_Linux_syscalls         __NR_syscalls
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
@@ -737,16 +737,17 @@
 #define __NR_statx			(__NR_Linux + 326)
 #define __NR_rseq			(__NR_Linux + 327)
 #define __NR_io_pgetevents		(__NR_Linux + 328)
+#define __NR_syscalls                   328
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls		328
+#define __NR_Linux_syscalls		__NR_syscalls
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
 #define __NR_64_Linux			5000
-#define __NR_64_Linux_syscalls		328
+#define __NR_64_Linux_syscalls		__NR_syscalls
 
 #if _MIPS_SIM == _MIPS_SIM_NABI32
 
@@ -1087,15 +1088,16 @@
 #define __NR_statx			(__NR_Linux + 330)
 #define __NR_rseq			(__NR_Linux + 331)
 #define __NR_io_pgetevents		(__NR_Linux + 332)
+#define __NR_syscalls                   332
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls		332
+#define __NR_Linux_syscalls		__NR_syscalls
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
 #define __NR_N32_Linux			6000
-#define __NR_N32_Linux_syscalls		332
+#define __NR_N32_Linux_syscalls		__NR_syscalls
 
 #endif /* _UAPI_ASM_UNISTD_H */
-- 
1.9.1


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

* [PATCH 2/3] mips: Add system call table generation support
  2018-09-14  8:38 [PATCH 0/3] System call table generation support Firoz Khan
  2018-09-14  8:38 ` [PATCH 1/3] mips: Add __NR_syscalls macro in uapi/asm/unistd.h Firoz Khan
@ 2018-09-14  8:38 ` Firoz Khan
  2018-09-14  9:58   ` Arnd Bergmann
  2018-09-14  8:38 ` [PATCH 3/3] mips: uapi header and system call table file generation Firoz Khan
  2018-09-17 17:17 ` [PATCH 0/3] System call table generation support Paul Burton
  3 siblings, 1 reply; 20+ messages in thread
From: Firoz Khan @ 2018-09-14  8:38 UTC (permalink / raw)
  To: Hauke Mehrtens, Rafał Miłecki, linux-mips,
	Ralf Baechle, Paul Burton, James Hogan, Greg Kroah-Hartman,
	Philippe Ombredanne, Thomas Gleixner, Kate Stewart
  Cc: y2038, linux-kernel, linux-arch, arnd, deepa.kernel,
	marcin.juszkiewicz, firoz.khan

The system call tables are in different format in all
architecture and it will be difficult to manually add or
modify the system calls in the respective files. To make
it easy by keeping a script and which'll generate the
header file and syscall table file so this change will
unify them across all architectures.

The system call table generation script is added in
syscalls directory which contain the script to generate
both uapi header file system call table generation file
and syscall_32/64.tbl file which'll be the input for the
scripts.

syscall_32/64/n32.tbl contains the list of available system
calls along with system call number and corresponding entry
point. Add a new system call in this architecture will be
possible by adding new entry in the syscall_32/64/n32.tbl
file.

Adding a new table entry consisting of:
        - System call number.
        - ABI.
        - System call name.
        - Entry point name.
        - Compat entry name, if required.

syscallhdr.sh and syscalltbl.sh will generate uapi header-
unistd_32/64.h and syscall_table_*.h files respectively.
File syscall_table_*.h is included by syscall_table_*.S - the
real system call table. Both .sh files will parse the content
syscall.tbl to generate the header and table files.

ARM, s390 and x86 architecuture does have the similar support.
I leverage their implementation to come up with a generic
solution.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
---
 arch/mips/kernel/syscalls/Makefile        |  62 +++++
 arch/mips/kernel/syscalls/README.md       |  16 ++
 arch/mips/kernel/syscalls/syscall_32.tbl  | 375 ++++++++++++++++++++++++++++++
 arch/mips/kernel/syscalls/syscall_64.tbl  | 335 ++++++++++++++++++++++++++
 arch/mips/kernel/syscalls/syscall_n32.tbl | 339 +++++++++++++++++++++++++++
 arch/mips/kernel/syscalls/syscallhdr.sh   |  37 +++
 arch/mips/kernel/syscalls/syscalltbl.sh   |  44 ++++
 7 files changed, 1208 insertions(+)
 create mode 100644 arch/mips/kernel/syscalls/Makefile
 create mode 100644 arch/mips/kernel/syscalls/README.md
 create mode 100644 arch/mips/kernel/syscalls/syscall_32.tbl
 create mode 100644 arch/mips/kernel/syscalls/syscall_64.tbl
 create mode 100644 arch/mips/kernel/syscalls/syscall_n32.tbl
 create mode 100644 arch/mips/kernel/syscalls/syscallhdr.sh
 create mode 100644 arch/mips/kernel/syscalls/syscalltbl.sh

diff --git a/arch/mips/kernel/syscalls/Makefile b/arch/mips/kernel/syscalls/Makefile
new file mode 100644
index 0000000..5044724
--- /dev/null
+++ b/arch/mips/kernel/syscalls/Makefile
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: GPL-2.0
+out := arch/$(SRCARCH)/include/generated/asm
+uapi := arch/$(SRCARCH)/include/generated/uapi/asm
+
+_dummy := $(shell [ -d '$(uapi)' ] || mkdir -p '$(uapi)') \
+	  $(shell [ -d '$(out)' ] || mkdir -p '$(out)')
+
+syscall32 := $(srctree)/$(src)/syscall_32.tbl
+syscall64 := $(srctree)/$(src)/syscall_64.tbl
+syscalln32 := $(srctree)/$(src)/syscall_n32.tbl
+
+syshdr := $(srctree)/$(src)/syscallhdr.sh
+systbl := $(srctree)/$(src)/syscalltbl.sh
+
+quiet_cmd_syshdr = SYSHDR  $@
+      cmd_syshdr = $(CONFIG_SHELL) '$(syshdr)' '$<' '$@'  \
+		   '$(syshdr_abi_$(basetarget))'          \
+		   '$(syshdr_pfx_$(basetarget))'          \
+		   '$(syshdr_offset_$(basetarget))'
+
+quiet_cmd_systbl = SYSTBL  $@
+      cmd_systbl = $(CONFIG_SHELL) '$(systbl)' '$<' '$@'  \
+		   '$(systbl_abi_$(basetarget))'
+
+syshdr_offset_unistd_32 := __NR_Linux
+$(uapi)/unistd_32.h: $(syscall32) $(syshdr)
+	$(call if_changed,syshdr)
+
+syshdr_offset_unistd_64 := __NR_Linux
+$(uapi)/unistd_64.h: $(syscall64) $(syshdr)
+	$(call if_changed,syshdr)
+
+syshdr_offset_unistd_n32 := __NR_Linux
+$(uapi)/unistd_n32.h: $(syscalln32) $(syshdr)
+	$(call if_changed,syshdr)
+
+systbl_abi_syscall_table_32_o32 := 32-o32
+$(out)/syscall_table_32_o32.h: $(syscall32) $(systbl)
+	$(call if_changed,systbl)
+
+systbl_abi_syscall_table_64_o32 := 64-o32
+$(out)/syscall_table_64_o32.h: $(syscall32) $(systbl)
+	$(call if_changed,systbl)
+
+systbl_abi_syscall_table_64_64 := 64-64
+$(out)/syscall_table_64_64.h: $(syscall64) $(systbl)
+	$(call if_changed,systbl)
+
+systbl_abi_syscall_table_64_n32 := 64-n32
+$(out)/syscall_table_64_n32.h: $(syscalln32) $(systbl)
+	$(call if_changed,systbl)
+
+uapisyshdr-y			+= unistd_32.h unistd_64.h unistd_n32.h
+syshdr-y			+= syscall_table_32_o32.h syscall_table_64_o32.h \
+                                   syscall_table_64_64.h syscall_table_64_n32.h
+
+targets	+= $(uapisyshdr-y) $(syshdr-y)
+
+PHONY += all
+all: $(addprefix $(uapi)/,$(uapisyshdr-y))
+all: $(addprefix $(out)/,$(syshdr-y))
+	@:
diff --git a/arch/mips/kernel/syscalls/README.md b/arch/mips/kernel/syscalls/README.md
new file mode 100644
index 0000000..1f51ad1
--- /dev/null
+++ b/arch/mips/kernel/syscalls/README.md
@@ -0,0 +1,16 @@
+# mips: system_call_table_generator
+
+- This architecture does have more than one ABI.
+  syscall.tbl contains the information like 
+    - system call number
+    - name 
+    - entry_64
+    - entry_32
+    - compat
+    - comments
+
+- The scripts syscallhdr.sh will generate uapi header- 
+  arch/powerpc/include/uapi/asm/unistd.h. 
+
+- The script syscalltbl.sh will generate syscalls.h 
+  which will be included by syscall_64/32/n32/o32.S file
diff --git a/arch/mips/kernel/syscalls/syscall_32.tbl b/arch/mips/kernel/syscalls/syscall_32.tbl
new file mode 100644
index 0000000..5db6827
--- /dev/null
+++ b/arch/mips/kernel/syscalls/syscall_32.tbl
@@ -0,0 +1,375 @@
+#
+# 32-bit system call numbers and entry vectors
+#
+# The format is:
+# <number> <abi> <name> <entry point> <compat entry point>
+#
+# The abi is always "common" for this file.
+#
+0       32      syscall                         sys_syscall                     sys32_syscall
+1       32      exit                            sys_exit                        
+2       32      fork                            __sys_fork                      
+3       32      read                            sys_read                        
+4       32      write                           sys_write                       
+5       32      open                            sys_open                        compat_sys_open
+6       32      close                           sys_close                       
+7       32      waitpid                         sys_waitpid                     
+8       32      creat                           sys_creat                       
+9       32      link                            sys_link                        
+10      32      unlink                          sys_unlink                      
+11      32      execve                          sys_execve                      compat_sys_execve
+12      32      chdir                           sys_chdir                       
+13      32      time                            sys_time                        compat_sys_time
+14      32      mknod                           sys_mknod                       
+15      32      chmod                           sys_chmod                       
+16      32      lchown                          sys_lchown                      
+17      32      break                           sys_ni_syscall                  
+18      32      unused18                        sys_ni_syscall                  
+19      32      lseek                           sys_lseek                       
+20      32      getpid                          sys_getpid                      
+21      32      mount                           sys_mount                       compat_sys_mount
+22      32      umount                          sys_oldumount                   
+23      32      setuid                          sys_setuid                      
+24      32      getuid                          sys_getuid                      
+25      32      stime                           sys_stime                       compat_sys_stime
+26      32      ptrace                          sys_ptrace                      compat_sys_ptrace
+27      32      alarm                           sys_alarm                       
+28      32      unused28                        sys_ni_syscall                  
+29      32      pause                           sys_pause                       
+30      32      utime                           sys_utime                       compat_sys_utime
+31      32      stty                            sys_ni_syscall                  
+32      32      gtty                            sys_ni_syscall                  
+33      32      access                          sys_access                      
+34      32      nice                            sys_nice                        
+35      32      ftime                           sys_ni_syscall                  
+36      32      sync                            sys_sync                        
+37      32      kill                            sys_kill                        
+38      32      rename                          sys_rename                      
+39      32      mkdir                           sys_mkdir                       
+40      32      rmdir                           sys_rmdir                       
+41      32      dup                             sys_dup                         
+42      32      pipe                            sysm_pipe                       
+43      32      times                           sys_times                       compat_sys_times
+44      32      prof                            sys_ni_syscall                  
+45      32      brk                             sys_brk                         
+46      32      setgid                          sys_setgid                      
+47      32      getgid                          sys_getgid                      
+48      32      signal                          sys_ni_syscall                  
+49      32      geteuid                         sys_geteuid                     
+50      32      getegid                         sys_getegid                     
+51      32      acct                            sys_acct                        
+52      32      umount2                         sys_umount                      
+53      32      lock                            sys_ni_syscall                  
+54      32      ioctl                           sys_ioctl                       compat_sys_ioctl
+55      32      fcntl                           sys_fcntl                       compat_sys_fcntl
+56      32      mpx                             sys_ni_syscall                  
+57      32      setpgid                         sys_setpgid                     
+58      32      ulimit                          sys_ni_syscall                  
+59      32      unused59                        sys_olduname                    
+60      32      umask                           sys_umask                       
+61      32      chroot                          sys_chroot                      
+62      32      ustat                           sys_ustat                       compat_sys_ustat
+63      32      dup2                            sys_dup2                        
+64      32      getppid                         sys_getppid                     
+65      32      getpgrp                         sys_getpgrp                     
+66      32      setsid                          sys_setsid                      
+67      32      sigaction                       sys_sigaction                   sys_32_sigaction
+68      32      sgetmask                        sys_sgetmask                    
+69      32      ssetmask                        sys_ssetmask                    
+70      32      setreuid                        sys_setreuid                    
+71      32      setregid                        sys_setregid                    
+72      32      sigsuspend                      sys_sigsuspend                  sys32_sigsuspend
+73      32      sigpending                      sys_sigpending                  compat_sys_sigpending
+74      32      sethostname                     sys_sethostname                 
+75      32      setrlimit                       sys_setrlimit                   compat_sys_setrlimit
+76      32      getrlimit                       sys_getrlimit                   compat_sys_getrlimit
+77      32      getrusage                       sys_getrusage                   compat_sys_getrusage
+78      32      gettimeofday                    sys_gettimeofday                compat_sys_gettimeofday
+79      32      settimeofday                    sys_settimeofday                compat_sys_settimeofday
+80      32      getgroups                       sys_getgroups                   
+81      32      setgroups                       sys_setgroups                   
+82      32      reserved82                      sys_ni_syscall                  
+83      32      symlink                         sys_symlink                     
+84      32      unused84                        sys_ni_syscall                  
+85      32      readlink                        sys_readlink                    
+86      32      uselib                          sys_uselib                      
+87      32      swapon                          sys_swapon                      
+88      32      reboot                          sys_reboot                      
+89      32      readdir                         sys_old_readdir                 compat_sys_old_readdir
+90      32      mmap                            sys_mips_mmap                   
+91      32      munmap                          sys_munmap                      
+92      32      truncate                        sys_truncate                    compat_sys_truncate
+93      32      ftruncate                       sys_ftruncate                   compat_sys_ftruncate
+94      32      fchmod                          sys_fchmod                      
+95      32      fchown                          sys_fchown                      
+96      32      getpriority                     sys_getpriority                 
+97      32      setpriority                     sys_setpriority                 
+98      32      profil                          sys_ni_syscall                  
+99      32      statfs                          sys_statfs                      compat_sys_statfs
+100     32      fstatfs                         sys_fstatfs                     compat_sys_fstatfs
+101     32      ioperm                          sys_ni_syscall                  
+102     32      socketcall                      sys_socketcall                  compat_sys_socketcall
+103     32      syslog                          sys_syslog                      
+104     32      setitimer                       sys_setitimer                   compat_sys_setitimer
+105     32      getitimer                       sys_getitimer                   compat_sys_getitimer
+106     32      stat                            sys_newstat                     compat_sys_newstat
+107     32      lstat                           sys_newlstat                    compat_sys_newlstat
+108     32      fstat                           sys_newfstat                    compat_sys_newfstat
+109     32      unused109                       sys_uname                       
+110     32      iopl                            sys_ni_syscall                  
+111     32      vhangup                         sys_vhangup                     
+112     32      idle                            sys_ni_syscall                  
+113     32      vm86                            sys_ni_syscall                  
+114     32      wait4                           sys_wait4                       compat_sys_wait4
+115     32      swapoff                         sys_swapoff                     
+116     32      sysinfo                         sys_sysinfo                     compat_sys_sysinfo
+117     32      ipc                             sys_ipc                         compat_sys_ipc
+118     32      fsync                           sys_fsync                       
+119     32      sigreturn                       sys_sigreturn                   sys32_sigreturn
+120     32      clone                           __sys_clone                     
+121     32      setdomainname                   sys_setdomainname               
+122     32      uname                           sys_newuname                    
+123     32      modify_ldt                      sys_ni_syscall                  
+124     32      adjtimex                        sys_adjtimex                    compat_sys_adjtimex
+125     32      mprotect                        sys_mprotect                    
+126     32      sigprocmask                     sys_sigprocmask                 compat_sys_sigprocmask
+127     32      create_module                   sys_ni_syscall                  
+128     32      init_module                     sys_init_module                 
+129     32      delete_module                   sys_delete_module               
+130     32      get_kernel_syms                 sys_ni_syscall                  
+131     32      quotactl                        sys_quotactl                    
+132     32      getpgid                         sys_getpgid                     
+133     32      fchdir                          sys_fchdir                      
+134     32      bdflush                         sys_bdflush                     
+135     32      sysfs                           sys_sysfs                       
+136     32      personality                     sys_personality                 sys_32_personality
+137     32      afs_syscall                     sys_ni_syscall                  
+138     32      setfsuid                        sys_setfsuid                    
+139     32      setfsgid                        sys_setfsgid                    
+140     32      _llseek                         sys_llseek                      sys_32_llseek
+141     32      getdents                        sys_getdents                    compat_sys_getdents
+142     32      _newselect                      sys_select                      compat_sys_select
+143     32      flock                           sys_flock                       
+144     32      msync                           sys_msync                       
+145     32      readv                           sys_readv                       compat_sys_readv
+146     32      writev                          sys_writev                      compat_sys_writev
+147     32      cacheflush                      sys_cacheflush                  
+148     32      cachectl                        sys_cachectl                    
+149     32      sysmips                         __sys_sysmips                   
+150     32      unused150                       sys_ni_syscall                  
+151     32      getsid                          sys_getsid                      
+152     32      fdatasync                       sys_fdatasync                   
+153     32      _sysctl                         sys_sysctl                      compat_sys_sysctl
+154     32      mlock                           sys_mlock                       
+155     32      munlock                         sys_munlock                     
+156     32      mlockall                        sys_mlockall                    
+157     32      munlockall                      sys_munlockall                  
+158     32      sched_setparam                  sys_sched_setparam              
+159     32      sched_getparam                  sys_sched_getparam              
+160     32      sched_setscheduler              sys_sched_setscheduler          
+161     32      sched_getscheduler              sys_sched_getscheduler          
+162     32      sched_yield                     sys_sched_yield                 
+163     32      sched_get_priority_max          sys_sched_get_priority_max      
+164     32      sched_get_priority_min          sys_sched_get_priority_min      
+165     32      sched_rr_get_interval           sys_sched_rr_get_interval       compat_sys_sched_rr_get_interval
+166     32      nanosleep                       sys_nanosleep                   compat_sys_nanosleep
+167     32      mremap                          sys_mremap                      
+168     32      accept                          sys_accept                      
+169     32      bind                            sys_bind                        
+170     32      connect                         sys_connect                     
+171     32      getpeername                     sys_getpeername                 
+172     32      getsockname                     sys_getsockname                 
+173     32      getsockopt                      sys_getsockopt                  compat_sys_getsockopt
+174     32      listen                          sys_listen                      
+175     32      recv                            sys_recv                        compat_sys_recv
+176     32      recvfrom                        sys_recvfrom                    compat_sys_recvfrom
+177     32      recvmsg                         sys_recvmsg                     compat_sys_recvmsg
+178     32      send                            sys_send                        
+179     32      sendmsg                         sys_sendmsg                     compat_sys_sendmsg
+180     32      sendto                          sys_sendto                      
+181     32      setsockopt                      sys_setsockopt                  compat_sys_setsockopt
+182     32      shutdown                        sys_shutdown                    
+183     32      socket                          sys_socket                      
+184     32      socketpair                      sys_socketpair                  
+185     32      setresuid                       sys_setresuid                   
+186     32      getresuid                       sys_getresuid                   
+187     32      query_module                    sys_ni_syscall                  
+188     32      poll                            sys_poll                        
+189     32      nfsservctl                      sys_ni_syscall                  
+190     32      setresgid                       sys_setresgid                   
+191     32      getresgid                       sys_getresgid                   
+192     32      prctl                           sys_prctl                       
+193     32      rt_sigreturn                    sys_rt_sigreturn                sys32_rt_sigreturn
+194     32      rt_sigaction                    sys_rt_sigaction                compat_sys_rt_sigaction
+195     32      rt_sigprocmask                  sys_rt_sigprocmask              compat_sys_rt_sigprocmask
+196     32      rt_sigpending                   sys_rt_sigpending               compat_sys_rt_sigpending
+197     32      rt_sigtimedwait                 sys_rt_sigtimedwait             compat_sys_rt_sigtimedwait
+198     32      rt_sigqueueinfo                 sys_rt_sigqueueinfo             compat_sys_rt_sigqueueinfo
+199     32      rt_sigsuspend                   sys_rt_sigsuspend               compat_sys_rt_sigsuspend
+200     32      pread64                         sys_pread64                     sys_32_pread
+201     32      pwrite64                        sys_pwrite64                    sys_32_pwrite
+202     32      chown                           sys_chown                       
+203     32      getcwd                          sys_getcwd                      
+204     32      capget                          sys_capget                      
+205     32      capset                          sys_capset                      
+206     32      sigaltstack                     sys_sigaltstack                 compat_sys_sigaltstack
+207     32      sendfile                        sys_sendfile                    compat_sys_sendfile
+208     32      getpmsg                         sys_ni_syscall                  
+209     32      putpmsg                         sys_ni_syscall                  
+210     32      mmap2                           sys_mips_mmap2                  
+211     32      truncate64                      sys_truncate64                  sys_32_truncate64
+212     32      ftruncate64                     sys_ftruncate64                 sys_32_ftruncate64
+213     32      stat64                          sys_stat64                      sys_newstat
+214     32      lstat64                         sys_lstat64                     sys_newlstat
+215     32      fstat64                         sys_fstat64                     sys_newfstat
+216     32      pivot_root                      sys_pivot_root                  
+217     32      mincore                         sys_mincore                     
+218     32      madvise                         sys_madvise                     
+219     32      getdents64                      sys_getdents64                  
+220     32      fcntl64                         sys_fcntl64                     compat_sys_fcntl64
+221     32      reserved221                     sys_ni_syscall                  
+222     32      gettid                          sys_gettid                      
+223     32      readahead                       sys_readahead                   sys32_readahead
+224     32      setxattr                        sys_setxattr                    
+225     32      lsetxattr                       sys_lsetxattr                   
+226     32      fsetxattr                       sys_fsetxattr                   
+227     32      getxattr                        sys_getxattr                    
+228     32      lgetxattr                       sys_lgetxattr                   
+229     32      fgetxattr                       sys_fgetxattr                   
+230     32      listxattr                       sys_listxattr                   
+231     32      llistxattr                      sys_llistxattr                  
+232     32      flistxattr                      sys_flistxattr                  
+233     32      removexattr                     sys_removexattr                 
+234     32      lremovexattr                    sys_lremovexattr                
+235     32      fremovexattr                    sys_fremovexattr                
+236     32      tkill                           sys_tkill                       
+237     32      sendfile64                      sys_sendfile64                  
+238     32      futex                           sys_futex                       compat_sys_futex
+239     32      sched_setaffinity               mipsmt_sys_sched_setaffinity    compat_sys_sched_setaffinity
+240     32      sched_getaffinity               mipsmt_sys_sched_getaffinity    compat_sys_sched_getaffinity
+241     32      io_setup                        sys_io_setup                    compat_sys_io_setup
+242     32      io_destroy                      sys_io_destroy                  
+243     32      io_getevents                    sys_io_getevents                compat_sys_io_getevents
+244     32      io_submit                       sys_io_submit                   compat_sys_io_submit
+245     32      io_cancel                       sys_io_cancel                   
+246     32      exit_group                      sys_exit_group                  
+247     32      lookup_dcookie                  sys_lookup_dcookie              compat_sys_lookup_dcookie
+248     32      epoll_create                    sys_epoll_create                
+249     32      epoll_ctl                       sys_epoll_ctl                   
+250     32      epoll_wait                      sys_epoll_wait                  
+251     32      remap_file_pages                sys_remap_file_pages            
+252     32      set_tid_address                 sys_set_tid_address             
+253     32      restart_syscall                 sys_restart_syscall             
+254     32      fadvise64                       sys_fadvise64_64                sys32_fadvise64_64
+255     32      statfs64                        sys_statfs64                    compat_sys_statfs64
+256     32      fstatfs64                       sys_fstatfs64                   compat_sys_fstatfs64
+257     32      timer_create                    sys_timer_create                compat_sys_timer_create
+258     32      timer_settime                   sys_timer_settime               compat_sys_timer_settime
+259     32      timer_gettime                   sys_timer_gettime               compat_sys_timer_gettime
+260     32      timer_getoverrun                sys_timer_getoverrun            
+261     32      timer_delete                    sys_timer_delete                
+262     32      clock_settime                   sys_clock_settime               compat_sys_clock_settime
+263     32      clock_gettime                   sys_clock_gettime               compat_sys_clock_gettime
+264     32      clock_getres                    sys_clock_getres                compat_sys_clock_getres
+265     32      clock_nanosleep                 sys_clock_nanosleep             compat_sys_clock_nanosleep
+266     32      tgkill                          sys_tgkill                      
+267     32      utimes                          sys_utimes                      compat_sys_utimes
+268     32      mbind                           sys_mbind                       compat_sys_mbind
+269     32      get_mempolicy                   sys_get_mempolicy               compat_sys_get_mempolicy
+270     32      set_mempolicy                   sys_set_mempolicy               compat_sys_set_mempolicy
+271     32      mq_open                         sys_mq_open                     compat_sys_mq_open
+272     32      mq_unlink                       sys_mq_unlink                   
+273     32      mq_timedsend                    sys_mq_timedsend                compat_sys_mq_timedsend
+274     32      mq_timedreceive                 sys_mq_timedreceive             compat_sys_mq_timedreceive
+275     32      mq_notify                       sys_mq_notify                   compat_sys_mq_notify
+276     32      mq_getsetattr                   sys_mq_getsetattr               compat_sys_mq_getsetattr
+277     32      vserver                         sys_ni_syscall                  
+278     32      waitid                          sys_waitid                      compat_sys_waitid
+279     32      sys_setaltroot                  sys_ni_syscall                  
+280     32      add_key                         sys_add_key                     
+281     32      request_key                     sys_request_key                 
+282     32      keyctl                          sys_keyctl                      compat_sys_keyctl
+283     32      set_thread_area                 sys_set_thread_area             
+284     32      inotify_init                    sys_inotify_init                
+285     32      inotify_add_watch               sys_inotify_add_watch           
+286     32      inotify_rm_watch                sys_inotify_rm_watch            
+287     32      migrate_pages                   sys_migrate_pages               compat_sys_migrate_pages
+288     32      openat                          sys_openat                      compat_sys_openat
+289     32      mkdirat                         sys_mkdirat                     
+290     32      mknodat                         sys_mknodat                     
+291     32      fchownat                        sys_fchownat                    
+292     32      futimesat                       sys_futimesat                   compat_sys_futimesat
+293     32      fstatat64                       sys_fstatat64                   sys_newfstatat
+294     32      unlinkat                        sys_unlinkat                    
+295     32      renameat                        sys_renameat                    
+296     32      linkat                          sys_linkat                      
+297     32      symlinkat                       sys_symlinkat                   
+298     32      readlinkat                      sys_readlinkat                  
+299     32      fchmodat                        sys_fchmodat                    
+300     32      faccessat                       sys_faccessat                   
+301     32      pselect6                        sys_pselect6                    compat_sys_pselect6
+302     32      ppoll                           sys_ppoll                       compat_sys_ppoll
+303     32      unshare                         sys_unshare                     
+304     32      splice                          sys_splice                      
+305     32      sync_file_range                 sys_sync_file_range             sys32_sync_file_range
+306     32      tee                             sys_tee                         
+307     32      vmsplice                        sys_vmsplice                    compat_sys_vmsplice
+308     32      move_pages                      sys_move_pages                  compat_sys_move_pages
+309     32      set_robust_list                 sys_set_robust_list             compat_sys_set_robust_list
+310     32      get_robust_list                 sys_get_robust_list             compat_sys_get_robust_list
+311     32      kexec_load                      sys_kexec_load                  compat_sys_kexec_load
+312     32      getcpu                          sys_getcpu                      
+313     32      epoll_pwait                     sys_epoll_pwait                 compat_sys_epoll_pwait
+314     32      ioprio_set                      sys_ioprio_set                  
+315     32      ioprio_get                      sys_ioprio_get                  
+316     32      utimensat                       sys_utimensat                   compat_sys_utimensat
+317     32      signalfd                        sys_signalfd                    compat_sys_signalfd
+318     32      timerfd                         sys_ni_syscall                  
+319     32      eventfd                         sys_eventfd                     
+320     32      fallocate                       sys_fallocate                   sys32_fallocate
+321     32      timerfd_create                  sys_timerfd_create              
+322     32      timerfd_gettime                 sys_timerfd_gettime             compat_sys_timerfd_gettime
+323     32      timerfd_settime                 sys_timerfd_settime             compat_sys_timerfd_settime
+324     32      signalfd4                       sys_signalfd4                   compat_sys_signalfd4
+325     32      eventfd2                        sys_eventfd2                    
+326     32      epoll_create1                   sys_epoll_create1               
+327     32      dup3                            sys_dup3                        
+328     32      pipe2                           sys_pipe2                       
+329     32      inotify_init1                   sys_inotify_init1               
+330     32      preadv                          sys_preadv                      compat_sys_preadv
+331     32      pwritev                         sys_pwritev                     compat_sys_pwritev
+332     32      rt_tgsigqueueinfo               sys_rt_tgsigqueueinfo           compat_sys_rt_tgsigqueueinfo
+333     32      perf_event_open                 sys_perf_event_open             
+334     32      accept4                         sys_accept4                     
+335     32      recvmmsg                        sys_recvmmsg                    compat_sys_recvmmsg
+336     32      fanotify_init                   sys_fanotify_init               
+337     32      fanotify_mark                   sys_fanotify_mark               compat_sys_fanotify_mark
+338     32      prlimit64                       sys_prlimit64                   
+339     32      name_to_handle_at               sys_name_to_handle_at           
+340     32      open_by_handle_at               sys_open_by_handle_at           compat_sys_open_by_handle_at
+341     32      clock_adjtime                   sys_clock_adjtime               compat_sys_clock_adjtime
+342     32      syncfs                          sys_syncfs                      
+343     32      sendmmsg                        sys_sendmmsg                    compat_sys_sendmmsg
+344     32      setns                           sys_setns                       
+345     32      process_vm_readv                sys_process_vm_readv            compat_sys_process_vm_readv
+346     32      process_vm_writev               sys_process_vm_writev           compat_sys_process_vm_writev
+347     32      kcmp                            sys_kcmp                        
+348     32      finit_module                    sys_finit_module                
+349     32      sched_setattr                   sys_sched_setattr               
+350     32      sched_getattr                   sys_sched_getattr               
+351     32      renameat2                       sys_renameat2                   
+352     32      seccomp                         sys_seccomp                     
+353     32      getrandom                       sys_getrandom                   
+354     32      memfd_create                    sys_memfd_create                
+355     32      bpf                             sys_bpf                         
+356     32      execveat                        sys_execveat                    compat_sys_execveat
+357     32      userfaultfd                     sys_userfaultfd                 
+358     32      membarrier                      sys_membarrier                  
+359     32      mlock2                          sys_mlock2                      
+360     32      copy_file_range                 sys_copy_file_range             
+361     32      preadv2                         sys_preadv2                     compat_sys_preadv2
+362     32      pwritev2                        sys_pwritev2                    compat_sys_pwritev2
+363     32      pkey_mprotect                   sys_pkey_mprotect               
+364     32      pkey_alloc                      sys_pkey_alloc                  
+365     32      pkey_free                       sys_pkey_free                   
+366     32      statx                           sys_statx                       
diff --git a/arch/mips/kernel/syscalls/syscall_64.tbl b/arch/mips/kernel/syscalls/syscall_64.tbl
new file mode 100644
index 0000000..9c4b3a0
--- /dev/null
+++ b/arch/mips/kernel/syscalls/syscall_64.tbl
@@ -0,0 +1,335 @@
+#
+# 64-bit system call numbers and entry vectors
+#
+# The format is:
+# <number> <abi> <name> <entry point>
+#
+# The abi is "common" for this file.
+#
+0       64      read                            sys_read                        
+1       64      write                           sys_write                       
+2       64      open                            sys_open                        
+3       64      close                           sys_close                       
+4       64      stat                            sys_newstat                     
+5       64      fstat                           sys_newfstat                    
+6       64      lstat                           sys_newlstat                    
+7       64      poll                            sys_poll                        
+8       64      lseek                           sys_lseek                       
+9       64      mmap                            sys_mips_mmap                   
+10      64      mprotect                        sys_mprotect                    
+11      64      munmap                          sys_munmap                      
+12      64      brk                             sys_brk                         
+13      64      rt_sigaction                    sys_rt_sigaction                
+14      64      rt_sigprocmask                  sys_rt_sigprocmask              
+15      64      ioctl                           sys_ioctl                       
+16      64      pread64                         sys_pread64                     
+17      64      pwrite64                        sys_pwrite64                    
+18      64      readv                           sys_readv                       
+19      64      writev                          sys_writev                      
+20      64      access                          sys_access                      
+21      64      pipe                            sysm_pipe                       
+22      64      _newselect                      sys_select                      
+23      64      sched_yield                     sys_sched_yield                 
+24      64      mremap                          sys_mremap                      
+25      64      msync                           sys_msync                       
+26      64      mincore                         sys_mincore                     
+27      64      madvise                         sys_madvise                     
+28      64      shmget                          sys_shmget                      
+29      64      shmat                           sys_shmat                       
+30      64      shmctl                          sys_shmctl                      
+31      64      dup                             sys_dup                         
+32      64      dup2                            sys_dup2                        
+33      64      pause                           sys_pause                       
+34      64      nanosleep                       sys_nanosleep                   
+35      64      getitimer                       sys_getitimer                   
+36      64      setitimer                       sys_setitimer                   
+37      64      alarm                           sys_alarm                       
+38      64      getpid                          sys_getpid                      
+39      64      sendfile                        sys_sendfile64                  
+40      64      socket                          sys_socket                      
+41      64      connect                         sys_connect                     
+42      64      accept                          sys_accept                      
+43      64      sendto                          sys_sendto                      
+44      64      recvfrom                        sys_recvfrom                    
+45      64      sendmsg                         sys_sendmsg                     
+46      64      recvmsg                         sys_recvmsg                     
+47      64      shutdown                        sys_shutdown                    
+48      64      bind                            sys_bind                        
+49      64      listen                          sys_listen                      
+50      64      getsockname                     sys_getsockname                 
+51      64      getpeername                     sys_getpeername                 
+52      64      socketpair                      sys_socketpair                  
+53      64      setsockopt                      sys_setsockopt                  
+54      64      getsockopt                      sys_getsockopt                  
+55      64      clone                           __sys_clone                     
+56      64      fork                            __sys_fork                      
+57      64      execve                          sys_execve                      
+58      64      exit                            sys_exit                        
+59      64      wait4                           sys_wait4                       
+60      64      kill                            sys_kill                        
+61      64      uname                           sys_newuname                    
+62      64      semget                          sys_semget                      
+63      64      semop                           sys_semop                       
+64      64      semctl                          sys_semctl                      
+65      64      shmdt                           sys_shmdt                       
+66      64      msgget                          sys_msgget                      
+67      64      msgsnd                          sys_msgsnd                      
+68      64      msgrcv                          sys_msgrcv                      
+69      64      msgctl                          sys_msgctl                      
+70      64      fcntl                           sys_fcntl                       
+71      64      flock                           sys_flock                       
+72      64      fsync                           sys_fsync                       
+73      64      fdatasync                       sys_fdatasync                   
+74      64      truncate                        sys_truncate                    
+75      64      ftruncate                       sys_ftruncate                   
+76      64      getdents                        sys_getdents                    
+77      64      getcwd                          sys_getcwd                      
+78      64      chdir                           sys_chdir                       
+79      64      fchdir                          sys_fchdir                      
+80      64      rename                          sys_rename                      
+81      64      mkdir                           sys_mkdir                       
+82      64      rmdir                           sys_rmdir                       
+83      64      creat                           sys_creat                       
+84      64      link                            sys_link                        
+85      64      unlink                          sys_unlink                      
+86      64      symlink                         sys_symlink                     
+87      64      readlink                        sys_readlink                    
+88      64      chmod                           sys_chmod                       
+89      64      fchmod                          sys_fchmod                      
+90      64      chown                           sys_chown                       
+91      64      fchown                          sys_fchown                      
+92      64      lchown                          sys_lchown                      
+93      64      umask                           sys_umask                       
+94      64      gettimeofday                    sys_gettimeofday                
+95      64      getrlimit                       sys_getrlimit                   
+96      64      getrusage                       sys_getrusage                   
+97      64      sysinfo                         sys_sysinfo                     
+98      64      times                           sys_times                       
+99      64      ptrace                          sys_ptrace                      
+100     64      getuid                          sys_getuid                      
+101     64      syslog                          sys_syslog                      
+102     64      getgid                          sys_getgid                      
+103     64      setuid                          sys_setuid                      
+104     64      setgid                          sys_setgid                      
+105     64      geteuid                         sys_geteuid                     
+106     64      getegid                         sys_getegid                     
+107     64      setpgid                         sys_setpgid                     
+108     64      getppid                         sys_getppid                     
+109     64      getpgrp                         sys_getpgrp                     
+110     64      setsid                          sys_setsid                      
+111     64      setreuid                        sys_setreuid                    
+112     64      setregid                        sys_setregid                    
+113     64      getgroups                       sys_getgroups                   
+114     64      setgroups                       sys_setgroups                   
+115     64      setresuid                       sys_setresuid                   
+116     64      getresuid                       sys_getresuid                   
+117     64      setresgid                       sys_setresgid                   
+118     64      getresgid                       sys_getresgid                   
+119     64      getpgid                         sys_getpgid                     
+120     64      setfsuid                        sys_setfsuid                    
+121     64      setfsgid                        sys_setfsgid                    
+122     64      getsid                          sys_getsid                      
+123     64      capget                          sys_capget                      
+124     64      capset                          sys_capset                      
+125     64      rt_sigpending                   sys_rt_sigpending               
+126     64      rt_sigtimedwait                 sys_rt_sigtimedwait             
+127     64      rt_sigqueueinfo                 sys_rt_sigqueueinfo             
+128     64      rt_sigsuspend                   sys_rt_sigsuspend               
+129     64      sigaltstack                     sys_sigaltstack                 
+130     64      utime                           sys_utime                       
+131     64      mknod                           sys_mknod                       
+132     64      personality                     sys_personality                 
+133     64      ustat                           sys_ustat                       
+134     64      statfs                          sys_statfs                      
+135     64      fstatfs                         sys_fstatfs                     
+136     64      sysfs                           sys_sysfs                       
+137     64      getpriority                     sys_getpriority                 
+138     64      setpriority                     sys_setpriority                 
+139     64      sched_setparam                  sys_sched_setparam              
+140     64      sched_getparam                  sys_sched_getparam              
+141     64      sched_setscheduler              sys_sched_setscheduler          
+142     64      sched_getscheduler              sys_sched_getscheduler          
+143     64      sched_get_priority_max          sys_sched_get_priority_max      
+144     64      sched_get_priority_min          sys_sched_get_priority_min      
+145     64      sched_rr_get_interval           sys_sched_rr_get_interval       
+146     64      mlock                           sys_mlock                       
+147     64      munlock                         sys_munlock                     
+148     64      mlockall                        sys_mlockall                    
+149     64      munlockall                      sys_munlockall                  
+150     64      vhangup                         sys_vhangup                     
+151     64      pivot_root                      sys_pivot_root                  
+152     64      _sysctl                         sys_sysctl                      
+153     64      prctl                           sys_prctl                       
+154     64      adjtimex                        sys_adjtimex                    
+155     64      setrlimit                       sys_setrlimit                   
+156     64      chroot                          sys_chroot                      
+157     64      sync                            sys_sync                        
+158     64      acct                            sys_acct                        
+159     64      settimeofday                    sys_settimeofday                
+160     64      mount                           sys_mount                       
+161     64      umount2                         sys_umount                      
+162     64      swapon                          sys_swapon                      
+163     64      swapoff                         sys_swapoff                     
+164     64      reboot                          sys_reboot                      
+165     64      sethostname                     sys_sethostname                 
+166     64      setdomainname                   sys_setdomainname               
+167     64      create_module                   sys_ni_syscall                  
+168     64      init_module                     sys_init_module                 
+169     64      delete_module                   sys_delete_module               
+170     64      get_kernel_syms                 sys_ni_syscall                  
+171     64      query_module                    sys_ni_syscall                  
+172     64      quotactl                        sys_quotactl                    
+173     64      nfsservctl                      sys_ni_syscall                  
+174     64      getpmsg                         sys_ni_syscall                  
+175     64      putpmsg                         sys_ni_syscall                  
+176     64      afs_syscall                     sys_ni_syscall                  
+177     64      reserved177                     sys_ni_syscall                  
+178     64      gettid                          sys_gettid                      
+179     64      readahead                       sys_readahead                   
+180     64      setxattr                        sys_setxattr                    
+181     64      lsetxattr                       sys_lsetxattr                   
+182     64      fsetxattr                       sys_fsetxattr                   
+183     64      getxattr                        sys_getxattr                    
+184     64      lgetxattr                       sys_lgetxattr                   
+185     64      fgetxattr                       sys_fgetxattr                   
+186     64      listxattr                       sys_listxattr                   
+187     64      llistxattr                      sys_llistxattr                  
+188     64      flistxattr                      sys_flistxattr                  
+189     64      removexattr                     sys_removexattr                 
+190     64      lremovexattr                    sys_lremovexattr                
+191     64      fremovexattr                    sys_fremovexattr                
+192     64      tkill                           sys_tkill                       
+193     64      reserved193                     sys_ni_syscall                  
+194     64      futex                           sys_futex                       
+195     64      sched_setaffinity               sys_sched_setaffinity           
+196     64      sched_getaffinity               sys_sched_getaffinity           
+197     64      cacheflush                      sys_cacheflush                  
+198     64      cachectl                        sys_cachectl                    
+199     64      sysmips                         __sys_sysmips                   
+200     64      io_setup                        sys_io_setup                    
+201     64      io_destroy                      sys_io_destroy                  
+202     64      io_getevents                    sys_io_getevents                
+203     64      io_submit                       sys_io_submit                   
+204     64      io_cancel                       sys_io_cancel                   
+205     64      exit_group                      sys_exit_group                  
+206     64      lookup_dcookie                  sys_lookup_dcookie              
+207     64      epoll_create                    sys_epoll_create                
+208     64      epoll_ctl                       sys_epoll_ctl                   
+209     64      epoll_wait                      sys_epoll_wait                  
+210     64      remap_file_pages                sys_remap_file_pages            
+211     64      rt_sigreturn                    sys_rt_sigreturn                
+212     64      set_tid_address                 sys_set_tid_address             
+213     64      restart_syscall                 sys_restart_syscall             
+214     64      semtimedop                      sys_semtimedop                  
+215     64      fadvise64                       sys_fadvise64_64                
+216     64      timer_create                    sys_timer_create                
+217     64      timer_settime                   sys_timer_settime               
+218     64      timer_gettime                   sys_timer_gettime               
+219     64      timer_getoverrun                sys_timer_getoverrun            
+220     64      timer_delete                    sys_timer_delete                
+221     64      clock_settime                   sys_clock_settime               
+222     64      clock_gettime                   sys_clock_gettime               
+223     64      clock_getres                    sys_clock_getres                
+224     64      clock_nanosleep                 sys_clock_nanosleep             
+225     64      tgkill                          sys_tgkill                      
+226     64      utimes                          sys_utimes                      
+227     64      mbind                           sys_mbind                       
+228     64      get_mempolicy                   sys_get_mempolicy               
+229     64      set_mempolicy                   sys_set_mempolicy               
+230     64      mq_open                         sys_mq_open                     
+231     64      mq_unlink                       sys_mq_unlink                   
+232     64      mq_timedsend                    sys_mq_timedsend                
+233     64      mq_timedreceive                 sys_mq_timedreceive             
+234     64      mq_notify                       sys_mq_notify                   
+235     64      mq_getsetattr                   sys_mq_getsetattr               
+236     64      vserver                         sys_ni_syscall                  
+237     64      waitid                          sys_waitid                      
+238     64      sys_setaltroot                  sys_ni_syscall                  
+239     64      add_key                         sys_add_key                     
+240     64      request_key                     sys_request_key                 
+241     64      keyctl                          sys_keyctl                      
+242     64      set_thread_area                 sys_set_thread_area             
+243     64      inotify_init                    sys_inotify_init                
+244     64      inotify_add_watch               sys_inotify_add_watch           
+245     64      inotify_rm_watch                sys_inotify_rm_watch            
+246     64      migrate_pages                   sys_migrate_pages               
+247     64      openat                          sys_openat                      
+248     64      mkdirat                         sys_mkdirat                     
+249     64      mknodat                         sys_mknodat                     
+250     64      fchownat                        sys_fchownat                    
+251     64      futimesat                       sys_futimesat                   
+252     64      newfstatat                      sys_newfstatat                  
+253     64      unlinkat                        sys_unlinkat                    
+254     64      renameat                        sys_renameat                    
+255     64      linkat                          sys_linkat                      
+256     64      symlinkat                       sys_symlinkat                   
+257     64      readlinkat                      sys_readlinkat                  
+258     64      fchmodat                        sys_fchmodat                    
+259     64      faccessat                       sys_faccessat                   
+260     64      pselect6                        sys_pselect6                    
+261     64      ppoll                           sys_ppoll                       
+262     64      unshare                         sys_unshare                     
+263     64      splice                          sys_splice                      
+264     64      sync_file_range                 sys_sync_file_range             
+265     64      tee                             sys_tee                         
+266     64      vmsplice                        sys_vmsplice                    
+267     64      move_pages                      sys_move_pages                  
+268     64      set_robust_list                 sys_set_robust_list             
+269     64      get_robust_list                 sys_get_robust_list             
+270     64      kexec_load                      sys_kexec_load                  
+271     64      getcpu                          sys_getcpu                      
+272     64      epoll_pwait                     sys_epoll_pwait                 
+273     64      ioprio_set                      sys_ioprio_set                  
+274     64      ioprio_get                      sys_ioprio_get                  
+275     64      utimensat                       sys_utimensat                   
+276     64      signalfd                        sys_signalfd                    
+277     64      timerfd                         sys_ni_syscall                  
+278     64      eventfd                         sys_eventfd                     
+279     64      fallocate                       sys_fallocate                   
+280     64      timerfd_create                  sys_timerfd_create              
+281     64      timerfd_gettime                 sys_timerfd_gettime             
+282     64      timerfd_settime                 sys_timerfd_settime             
+283     64      signalfd4                       sys_signalfd4                   
+284     64      eventfd2                        sys_eventfd2                    
+285     64      epoll_create1                   sys_epoll_create1               
+286     64      dup3                            sys_dup3                        
+287     64      pipe2                           sys_pipe2                       
+288     64      inotify_init1                   sys_inotify_init1               
+289     64      preadv                          sys_preadv                      
+290     64      pwritev                         sys_pwritev                     
+291     64      rt_tgsigqueueinfo               sys_rt_tgsigqueueinfo           
+292     64      perf_event_open                 sys_perf_event_open             
+293     64      accept4                         sys_accept4                     
+294     64      recvmmsg                        sys_recvmmsg                    
+295     64      fanotify_init                   sys_fanotify_init               
+296     64      fanotify_mark                   sys_fanotify_mark               
+297     64      prlimit64                       sys_prlimit64                   
+298     64      name_to_handle_at               sys_name_to_handle_at           
+299     64      open_by_handle_at               sys_open_by_handle_at           
+300     64      clock_adjtime                   sys_clock_adjtime               
+301     64      syncfs                          sys_syncfs                      
+302     64      sendmmsg                        sys_sendmmsg                    
+303     64      setns                           sys_setns                       
+304     64      process_vm_readv                sys_process_vm_readv            
+305     64      process_vm_writev               sys_process_vm_writev           
+306     64      kcmp                            sys_kcmp                        
+307     64      finit_module                    sys_finit_module                
+308     64      getdents64                      sys_getdents64                  
+309     64      sched_setattr                   sys_sched_setattr               
+310     64      sched_getattr                   sys_sched_getattr               
+311     64      renameat2                       sys_renameat2                   
+312     64      seccomp                         sys_seccomp                     
+313     64      getrandom                       sys_getrandom                   
+314     64      memfd_create                    sys_memfd_create                
+315     64      bpf                             sys_bpf                         
+316     64      execveat                        sys_execveat                    
+317     64      userfaultfd                     sys_userfaultfd                 
+318     64      membarrier                      sys_membarrier                  
+319     64      mlock2                          sys_mlock2                      
+320     64      copy_file_range                 sys_copy_file_range             
+321     64      preadv2                         sys_preadv2                     
+322     64      pwritev2                        sys_pwritev2                    
+323     64      pkey_mprotect                   sys_pkey_mprotect               
+324     64      pkey_alloc                      sys_pkey_alloc                  
+325     64      pkey_free                       sys_pkey_free                   
+326     64      statx                           sys_statx                       
diff --git a/arch/mips/kernel/syscalls/syscall_n32.tbl b/arch/mips/kernel/syscalls/syscall_n32.tbl
new file mode 100644
index 0000000..69d2205
--- /dev/null
+++ b/arch/mips/kernel/syscalls/syscall_n32.tbl
@@ -0,0 +1,339 @@
+#
+# 32-bit native system call numbers and entry vectors
+#
+# The format is:
+# <number> <abi> <name> <entry point>
+#
+# The abi is always "common" for this file.
+#
+0       n32     read                            sys_read                        
+1       n32     write                           sys_write                       
+2       n32     open                            sys_open                        
+3       n32     close                           sys_close                       
+4       n32     stat                            sys_newstat                     
+5       n32     fstat                           sys_newfstat                    
+6       n32     lstat                           sys_newlstat                    
+7       n32     poll                            sys_poll                        
+8       n32     lseek                           sys_lseek                       
+9       n32     mmap                            sys_mips_mmap                   
+10      n32     mprotect                        sys_mprotect                    
+11      n32     munmap                          sys_munmap                      
+12      n32     brk                             sys_brk                         
+13      n32     rt_sigaction                    compat_sys_rt_sigaction         
+14      n32     rt_sigprocmask                  compat_sys_rt_sigprocmask       
+15      n32     ioctl                           compat_sys_ioctl                
+16      n32     pread64                         sys_pread64                     
+17      n32     pwrite64                        sys_pwrite64                    
+18      n32     readv                           compat_sys_readv                
+19      n32     writev                          compat_sys_writev               
+20      n32     access                          sys_access                      
+21      n32     pipe                            sysm_pipe                       
+22      n32     _newselect                      compat_sys_select               
+23      n32     sched_yield                     sys_sched_yield                 
+24      n32     mremap                          sys_mremap                      
+25      n32     msync                           sys_msync                       
+26      n32     mincore                         sys_mincore                     
+27      n32     madvise                         sys_madvise                     
+28      n32     shmget                          sys_shmget                      
+29      n32     shmat                           sys_shmat                       
+30      n32     shmctl                          compat_sys_shmctl               
+31      n32     dup                             sys_dup                         
+32      n32     dup2                            sys_dup2                        
+33      n32     pause                           sys_pause                       
+34      n32     nanosleep                       compat_sys_nanosleep            
+35      n32     getitimer                       compat_sys_getitimer            
+36      n32     setitimer                       compat_sys_setitimer            
+37      n32     alarm                           sys_alarm                       
+38      n32     getpid                          sys_getpid                      
+39      n32     sendfile                        compat_sys_sendfile             
+40      n32     socket                          sys_socket                      
+41      n32     connect                         sys_connect                     
+42      n32     accept                          sys_accept                      
+43      n32     sendto                          sys_sendto                      
+44      n32     recvfrom                        compat_sys_recvfrom             
+45      n32     sendmsg                         compat_sys_sendmsg              
+46      n32     recvmsg                         compat_sys_recvmsg              
+47      n32     shutdown                        sys_shutdown                    
+48      n32     bind                            sys_bind                        
+49      n32     listen                          sys_listen                      
+50      n32     getsockname                     sys_getsockname                 
+51      n32     getpeername                     sys_getpeername                 
+52      n32     socketpair                      sys_socketpair                  
+53      n32     setsockopt                      compat_sys_setsockopt           
+54      n32     getsockopt                      compat_sys_getsockopt           
+55      n32     clone                           __sys_clone                     
+56      n32     fork                            __sys_fork                      
+57      n32     execve                          compat_sys_execve               
+58      n32     exit                            sys_exit                        
+59      n32     wait4                           compat_sys_wait4                
+60      n32     kill                            sys_kill                        
+61      n32     uname                           sys_newuname                    
+62      n32     semget                          sys_semget                      
+63      n32     semop                           sys_semop                       
+64      n32     semctl                          compat_sys_semctl               
+65      n32     shmdt                           sys_shmdt                       
+66      n32     msgget                          sys_msgget                      
+67      n32     msgsnd                          compat_sys_msgsnd               
+68      n32     msgrcv                          compat_sys_msgrcv               
+69      n32     msgctl                          compat_sys_msgctl               
+70      n32     fcntl                           compat_sys_fcntl                
+71      n32     flock                           sys_flock                       
+72      n32     fsync                           sys_fsync                       
+73      n32     fdatasync                       sys_fdatasync                   
+74      n32     truncate                        sys_truncate                    
+75      n32     ftruncate                       sys_ftruncate                   
+76      n32     getdents                        compat_sys_getdents             
+77      n32     getcwd                          sys_getcwd                      
+78      n32     chdir                           sys_chdir                       
+79      n32     fchdir                          sys_fchdir                      
+80      n32     rename                          sys_rename                      
+81      n32     mkdir                           sys_mkdir                       
+82      n32     rmdir                           sys_rmdir                       
+83      n32     creat                           sys_creat                       
+84      n32     link                            sys_link                        
+85      n32     unlink                          sys_unlink                      
+86      n32     symlink                         sys_symlink                     
+87      n32     readlink                        sys_readlink                    
+88      n32     chmod                           sys_chmod                       
+89      n32     fchmod                          sys_fchmod                      
+90      n32     chown                           sys_chown                       
+91      n32     fchown                          sys_fchown                      
+92      n32     lchown                          sys_lchown                      
+93      n32     umask                           sys_umask                       
+94      n32     gettimeofday                    compat_sys_gettimeofday         
+95      n32     getrlimit                       compat_sys_getrlimit            
+96      n32     getrusage                       compat_sys_getrusage            
+97      n32     sysinfo                         compat_sys_sysinfo              
+98      n32     times                           compat_sys_times                
+99      n32     ptrace                          compat_sys_ptrace               
+100     n32     getuid                          sys_getuid                      
+101     n32     syslog                          sys_syslog                      
+102     n32     getgid                          sys_getgid                      
+103     n32     setuid                          sys_setuid                      
+104     n32     setgid                          sys_setgid                      
+105     n32     geteuid                         sys_geteuid                     
+106     n32     getegid                         sys_getegid                     
+107     n32     setpgid                         sys_setpgid                     
+108     n32     getppid                         sys_getppid                     
+109     n32     getpgrp                         sys_getpgrp                     
+110     n32     setsid                          sys_setsid                      
+111     n32     setreuid                        sys_setreuid                    
+112     n32     setregid                        sys_setregid                    
+113     n32     getgroups                       sys_getgroups                   
+114     n32     setgroups                       sys_setgroups                   
+115     n32     setresuid                       sys_setresuid                   
+116     n32     getresuid                       sys_getresuid                   
+117     n32     setresgid                       sys_setresgid                   
+118     n32     getresgid                       sys_getresgid                   
+119     n32     getpgid                         sys_getpgid                     
+120     n32     setfsuid                        sys_setfsuid                    
+121     n32     setfsgid                        sys_setfsgid                    
+122     n32     getsid                          sys_getsid                      
+123     n32     capget                          sys_capget                      
+124     n32     capset                          sys_capset                      
+125     n32     rt_sigpending                   compat_sys_rt_sigpending        
+126     n32     rt_sigtimedwait                 compat_sys_rt_sigtimedwait      
+127     n32     rt_sigqueueinfo                 compat_sys_rt_sigqueueinfo      
+128     n32     rt_sigsuspend                   compat_sys_rt_sigsuspend        
+129     n32     sigaltstack                     compat_sys_sigaltstack          
+130     n32     utime                           compat_sys_utime                
+131     n32     mknod                           sys_mknod                       
+132     n32     personality                     sys_32_personality              
+133     n32     ustat                           compat_sys_ustat                
+134     n32     statfs                          compat_sys_statfs               
+135     n32     fstatfs                         compat_sys_fstatfs              
+136     n32     sysfs                           sys_sysfs                       
+137     n32     getpriority                     sys_getpriority                 
+138     n32     setpriority                     sys_setpriority                 
+139     n32     sched_setparam                  sys_sched_setparam              
+140     n32     sched_getparam                  sys_sched_getparam              
+141     n32     sched_setscheduler              sys_sched_setscheduler          
+142     n32     sched_getscheduler              sys_sched_getscheduler          
+143     n32     sched_get_priority_max          sys_sched_get_priority_max      
+144     n32     sched_get_priority_min          sys_sched_get_priority_min      
+145     n32     sched_rr_get_interval           compat_sys_sched_rr_get_interval
+146     n32     mlock                           sys_mlock                       
+147     n32     munlock                         sys_munlock                     
+148     n32     mlockall                        sys_mlockall                    
+149     n32     munlockall                      sys_munlockall                  
+150     n32     vhangup                         sys_vhangup                     
+151     n32     pivot_root                      sys_pivot_root                  
+152     n32     _sysctl                         compat_sys_sysctl               
+153     n32     prctl                           sys_prctl                       
+154     n32     adjtimex                        compat_sys_adjtimex             
+155     n32     setrlimit                       compat_sys_setrlimit            
+156     n32     chroot                          sys_chroot                      
+157     n32     sync                            sys_sync                        
+158     n32     acct                            sys_acct                        
+159     n32     settimeofday                    compat_sys_settimeofday         
+160     n32     mount                           compat_sys_mount                
+161     n32     umount2                         sys_umount                      
+162     n32     swapon                          sys_swapon                      
+163     n32     swapoff                         sys_swapoff                     
+164     n32     reboot                          sys_reboot                      
+165     n32     sethostname                     sys_sethostname                 
+166     n32     setdomainname                   sys_setdomainname               
+167     n32     create_module                   sys_ni_syscall                  
+168     n32     init_module                     sys_init_module                 
+169     n32     delete_module                   sys_delete_module               
+170     n32     get_kernel_syms                 sys_ni_syscall                  
+171     n32     query_module                    sys_ni_syscall                  
+172     n32     quotactl                        sys_quotactl                    
+173     n32     nfsservctl                      sys_ni_syscall                  
+174     n32     getpmsg                         sys_ni_syscall                  
+175     n32     putpmsg                         sys_ni_syscall                  
+176     n32     afs_syscall                     sys_ni_syscall                  
+177     n32     reserved177                     sys_ni_syscall                  
+178     n32     gettid                          sys_gettid                      
+179     n32     readahead                       sys_readahead                   
+180     n32     setxattr                        sys_setxattr                    
+181     n32     lsetxattr                       sys_lsetxattr                   
+182     n32     fsetxattr                       sys_fsetxattr                   
+183     n32     getxattr                        sys_getxattr                    
+184     n32     lgetxattr                       sys_lgetxattr                   
+185     n32     fgetxattr                       sys_fgetxattr                   
+186     n32     listxattr                       sys_listxattr                   
+187     n32     llistxattr                      sys_llistxattr                  
+188     n32     flistxattr                      sys_flistxattr                  
+189     n32     removexattr                     sys_removexattr                 
+190     n32     lremovexattr                    sys_lremovexattr                
+191     n32     fremovexattr                    sys_fremovexattr                
+192     n32     tkill                           sys_tkill                       
+193     n32     reserved193                     sys_ni_syscall                  
+194     n32     futex                           compat_sys_futex                
+195     n32     sched_setaffinity               compat_sys_sched_setaffinity    
+196     n32     sched_getaffinity               compat_sys_sched_getaffinity    
+197     n32     cacheflush                      sys_cacheflush                  
+198     n32     cachectl                        sys_cachectl                    
+199     n32     sysmips                         __sys_sysmips                   
+200     n32     io_setup                        compat_sys_io_setup             
+201     n32     io_destroy                      sys_io_destroy                  
+202     n32     io_getevents                    compat_sys_io_getevents         
+203     n32     io_submit                       compat_sys_io_submit            
+204     n32     io_cancel                       sys_io_cancel                   
+205     n32     exit_group                      sys_exit_group                  
+206     n32     lookup_dcookie                  sys_lookup_dcookie              
+207     n32     epoll_create                    sys_epoll_create                
+208     n32     epoll_ctl                       sys_epoll_ctl                   
+209     n32     epoll_wait                      sys_epoll_wait                  
+210     n32     remap_file_pages                sys_remap_file_pages            
+211     n32     rt_sigreturn                    sysn32_rt_sigreturn             
+212     n32     fcntl64                         compat_sys_fcntl64              
+213     n32     set_tid_address                 sys_set_tid_address             
+214     n32     restart_syscall                 sys_restart_syscall             
+215     n32     semtimedop                      compat_sys_semtimedop           
+216     n32     fadvise64                       sys_fadvise64_64                
+217     n32     statfs64                        compat_sys_statfs64             
+218     n32     fstatfs64                       compat_sys_fstatfs64            
+219     n32     sendfile64                      sys_sendfile64                  
+220     n32     timer_create                    compat_sys_timer_create         
+221     n32     timer_settime                   compat_sys_timer_settime        
+222     n32     timer_gettime                   compat_sys_timer_gettime        
+223     n32     timer_getoverrun                sys_timer_getoverrun            
+224     n32     timer_delete                    sys_timer_delete                
+225     n32     clock_settime                   compat_sys_clock_settime        
+226     n32     clock_gettime                   compat_sys_clock_gettime        
+227     n32     clock_getres                    compat_sys_clock_getres         
+228     n32     clock_nanosleep                 compat_sys_clock_nanosleep      
+229     n32     tgkill                          sys_tgkill                      
+230     n32     utimes                          compat_sys_utimes               
+231     n32     mbind                           compat_sys_mbind                
+232     n32     get_mempolicy                   compat_sys_get_mempolicy        
+233     n32     set_mempolicy                   compat_sys_set_mempolicy        
+234     n32     mq_open                         compat_sys_mq_open              
+235     n32     mq_unlink                       sys_mq_unlink                   
+236     n32     mq_timedsend                    compat_sys_mq_timedsend         
+237     n32     mq_timedreceive                 compat_sys_mq_timedreceive      
+238     n32     mq_notify                       compat_sys_mq_notify            
+239     n32     mq_getsetattr                   compat_sys_mq_getsetattr        
+240     n32     vserver                         sys_ni_syscall                  
+241     n32     waitid                          compat_sys_waitid               
+242     n32     sys_setaltroot                  sys_ni_syscall                  
+243     n32     add_key                         sys_add_key                     
+244     n32     request_key                     sys_request_key                 
+245     n32     keyctl                          compat_sys_keyctl               
+246     n32     set_thread_area                 sys_set_thread_area             
+247     n32     inotify_init                    sys_inotify_init                
+248     n32     inotify_add_watch               sys_inotify_add_watch           
+249     n32     inotify_rm_watch                sys_inotify_rm_watch            
+250     n32     migrate_pages                   compat_sys_migrate_pages        
+251     n32     openat                          sys_openat                      
+252     n32     mkdirat                         sys_mkdirat                     
+253     n32     mknodat                         sys_mknodat                     
+254     n32     fchownat                        sys_fchownat                    
+255     n32     futimesat                       compat_sys_futimesat            
+256     n32     newfstatat                      sys_newfstatat                  
+257     n32     unlinkat                        sys_unlinkat                    
+258     n32     renameat                        sys_renameat                    
+259     n32     linkat                          sys_linkat                      
+260     n32     symlinkat                       sys_symlinkat                   
+261     n32     readlinkat                      sys_readlinkat                  
+262     n32     fchmodat                        sys_fchmodat                    
+263     n32     faccessat                       sys_faccessat                   
+264     n32     pselect6                        compat_sys_pselect6             
+265     n32     ppoll                           compat_sys_ppoll                
+266     n32     unshare                         sys_unshare                     
+267     n32     splice                          sys_splice                      
+268     n32     sync_file_range                 sys_sync_file_range             
+269     n32     tee                             sys_tee                         
+270     n32     vmsplice                        compat_sys_vmsplice             
+271     n32     move_pages                      compat_sys_move_pages           
+272     n32     set_robust_list                 compat_sys_set_robust_list      
+273     n32     get_robust_list                 compat_sys_get_robust_list      
+274     n32     kexec_load                      compat_sys_kexec_load           
+275     n32     getcpu                          sys_getcpu                      
+276     n32     epoll_pwait                     compat_sys_epoll_pwait          
+277     n32     ioprio_set                      sys_ioprio_set                  
+278     n32     ioprio_get                      sys_ioprio_get                  
+279     n32     utimensat                       compat_sys_utimensat            
+280     n32     signalfd                        compat_sys_signalfd             
+281     n32     timerfd                         sys_ni_syscall                  
+282     n32     eventfd                         sys_eventfd                     
+283     n32     fallocate                       sys_fallocate                   
+284     n32     timerfd_create                  sys_timerfd_create              
+285     n32     timerfd_gettime                 compat_sys_timerfd_gettime      
+286     n32     timerfd_settime                 compat_sys_timerfd_settime      
+287     n32     signalfd4                       compat_sys_signalfd4            
+288     n32     eventfd2                        sys_eventfd2                    
+289     n32     epoll_create1                   sys_epoll_create1               
+290     n32     dup3                            sys_dup3                        
+291     n32     pipe2                           sys_pipe2                       
+292     n32     inotify_init1                   sys_inotify_init1               
+293     n32     preadv                          compat_sys_preadv               
+294     n32     pwritev                         compat_sys_pwritev              
+295     n32     rt_tgsigqueueinfo               compat_sys_rt_tgsigqueueinfo    
+296     n32     perf_event_open                 sys_perf_event_open             
+297     n32     accept4                         sys_accept4                     
+298     n32     recvmmsg                        compat_sys_recvmmsg             
+299     n32     getdents64                      sys_getdents64                  
+300     n32     fanotify_init                   sys_fanotify_init               
+301     n32     fanotify_mark                   sys_fanotify_mark               
+302     n32     prlimit64                       sys_prlimit64                   
+303     n32     name_to_handle_at               sys_name_to_handle_at           
+304     n32     open_by_handle_at               sys_open_by_handle_at           
+305     n32     clock_adjtime                   compat_sys_clock_adjtime        
+306     n32     syncfs                          sys_syncfs                      
+307     n32     sendmmsg                        compat_sys_sendmmsg             
+308     n32     setns                           sys_setns                       
+309     n32     process_vm_readv                compat_sys_process_vm_readv     
+310     n32     process_vm_writev               compat_sys_process_vm_writev    
+311     n32     kcmp                            sys_kcmp                        
+312     n32     finit_module                    sys_finit_module                
+313     n32     sched_setattr                   sys_sched_setattr               
+314     n32     sched_getattr                   sys_sched_getattr               
+315     n32     renameat2                       sys_renameat2                   
+316     n32     seccomp                         sys_seccomp                     
+317     n32     getrandom                       sys_getrandom                   
+318     n32     memfd_create                    sys_memfd_create                
+319     n32     bpf                             sys_bpf                         
+320     n32     execveat                        compat_sys_execveat             
+321     n32     userfaultfd                     sys_userfaultfd                 
+322     n32     membarrier                      sys_membarrier                  
+323     n32     mlock2                          sys_mlock2                      
+324     n32     copy_file_range                 sys_copy_file_range             
+325     n32     preadv2                         compat_sys_preadv2              
+326     n32     pwritev2                        compat_sys_pwritev2             
+327     n32     pkey_mprotect                   sys_pkey_mprotect               
+328     n32     pkey_alloc                      sys_pkey_alloc                  
+329     n32     pkey_free                       sys_pkey_free                   
+330     n32     statx                           sys_statx                       
diff --git a/arch/mips/kernel/syscalls/syscallhdr.sh b/arch/mips/kernel/syscalls/syscallhdr.sh
new file mode 100644
index 0000000..54ace2e
--- /dev/null
+++ b/arch/mips/kernel/syscalls/syscallhdr.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+
+in="$1"
+out="$2"
+my_abis=`echo "($3)" | tr ',' '|'`
+prefix="$4"
+offset="$5"
+
+fileguard=_UAPI_ASM_MIPS_`basename "$out" | sed \
+    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
+    -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'`
+grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
+    echo "#ifndef ${fileguard}"
+    echo "#define ${fileguard}"
+    echo ""
+
+    nxt=0
+    while read nr abi name entry compat ; do
+	if [ -z "$offset" ]; then
+	    echo -e "#define __NR_${prefix}${name}\t$nr"
+	else
+	    echo -e "#define __NR_${prefix}${name}\t($offset + $nr)"
+	fi
+	nxt=$nr
+	let nxt=nxt+1
+    done
+
+    echo ""
+    if [ -z "$offset" ]; then
+        echo -e "#define __NR_syscalls\t$nxt"
+    else
+        echo -e "#define __NR_syscalls\t($offset + $nxt)"
+    fi
+    echo ""
+    echo "#endif /* ${fileguard} */"
+) > "$out"
diff --git a/arch/mips/kernel/syscalls/syscalltbl.sh b/arch/mips/kernel/syscalls/syscalltbl.sh
new file mode 100644
index 0000000..2d92857
--- /dev/null
+++ b/arch/mips/kernel/syscalls/syscalltbl.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# SPDX-License-Identifier: GPL-2.0
+
+in="$1"
+out="$2"
+my_abi="$3"
+
+emit() {
+    nxt="$1"
+    nr="$2"
+    entry="$3"
+    
+    while [ $nxt -lt $nr ]; do
+	echo "__SYSCALL($nxt, sys_ni_syscall, )"
+        let nxt=nxt+1
+    done
+    
+    echo "__SYSCALL($nr, $entry, )"
+}
+
+grep '^[0-9]' "$in" | sort -n | (
+    nxt=4000
+    while read nr abi name entry compat ; do
+	if [ "$my_abi" = "32-o32" ]; then 
+	    let t_nxt=$nxt+0
+            emit $t_nxt $nr $entry
+	elif [ "$my_abi" = "64-o32" ]; then
+	    let t_nxt=$nxt+0
+	    if [ -z "$compat" ]; then
+		emit $t_nxt $nr $entry
+	    else
+		emit $t_nxt $nr $compat
+	    fi
+	elif [ "$my_abi" = "64-64" ]; then
+	    let t_nxt=$nxt+1000
+            emit $t_nxt $nr $entry
+	elif [ "$my_abi" = "64-n32" ]; then
+	    let t_nxt=$nxt+2000
+            emit $t_nxt $nr $entry
+	fi
+	nxt=$nr
+        let nxt=nxt+1
+    done
+) > "$out"
-- 
1.9.1


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

* [PATCH 3/3] mips: uapi header and system call table file generation
  2018-09-14  8:38 [PATCH 0/3] System call table generation support Firoz Khan
  2018-09-14  8:38 ` [PATCH 1/3] mips: Add __NR_syscalls macro in uapi/asm/unistd.h Firoz Khan
  2018-09-14  8:38 ` [PATCH 2/3] mips: Add system call table generation support Firoz Khan
@ 2018-09-14  8:38 ` Firoz Khan
  2018-09-14 12:55   ` kbuild test robot
  2018-09-17 17:17 ` [PATCH 0/3] System call table generation support Paul Burton
  3 siblings, 1 reply; 20+ messages in thread
From: Firoz Khan @ 2018-09-14  8:38 UTC (permalink / raw)
  To: Hauke Mehrtens, Rafał Miłecki, linux-mips,
	Ralf Baechle, Paul Burton, James Hogan, Greg Kroah-Hartman,
	Philippe Ombredanne, Thomas Gleixner, Kate Stewart
  Cc: y2038, linux-kernel, linux-arch, arnd, deepa.kernel,
	marcin.juszkiewicz, firoz.khan

System call table generation script must be run to generate
unistd_*.h and syscall_table_*.h files. This patch will have
changes which will invokes the script.

This patch will generate unistd_*.h and syscall_table_*.h files
by the syscall table generation script invoked by arch/sparc/
Makefile and the generated files against the removed files will
be identical.

The generated uapi header file will be included in uapi/asm/
unistd_*.h and generated system call table support file will
be included by arch/mips/kernel/syscall_table_*.S file.

Signed-off-by: Firoz Khan <firoz.khan@linaro.org>
---
 arch/mips/Makefile                      |    3 +
 arch/mips/include/asm/Kbuild            |    4 +
 arch/mips/include/uapi/asm/Kbuild       |    3 +
 arch/mips/include/uapi/asm/unistd.h     | 1049 +------------------------------
 arch/mips/kernel/scall32-o32.S          |  385 +-----------
 arch/mips/kernel/scall64-64.S           |  334 +---------
 arch/mips/kernel/scall64-n32.S          |  337 +---------
 arch/mips/kernel/scall64-o32.S          |  374 +----------
 arch/mips/kernel/syscall_table_32_o32.S |    8 +
 arch/mips/kernel/syscall_table_64_64.S  |    9 +
 arch/mips/kernel/syscall_table_64_n32.S |    8 +
 arch/mips/kernel/syscall_table_64_o32.S |    9 +
 12 files changed, 57 insertions(+), 2466 deletions(-)
 create mode 100644 arch/mips/kernel/syscall_table_32_o32.S
 create mode 100644 arch/mips/kernel/syscall_table_64_64.S
 create mode 100644 arch/mips/kernel/syscall_table_64_n32.S
 create mode 100644 arch/mips/kernel/syscall_table_64_o32.S

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index d74b374..d3d15cc 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -444,6 +444,9 @@ archclean:
 	$(Q)$(MAKE) $(clean)=arch/mips/boot/tools
 	$(Q)$(MAKE) $(clean)=arch/mips/lasat
 
+archheaders:
+	$(Q)$(MAKE) $(build)=arch/mips/kernel/syscalls all
+
 define archhelp
 	echo '  install              - install kernel into $(INSTALL_PATH)'
 	echo '  vmlinux.ecoff        - ECOFF boot image'
diff --git a/arch/mips/include/asm/Kbuild b/arch/mips/include/asm/Kbuild
index 58351e4..100bba2 100644
--- a/arch/mips/include/asm/Kbuild
+++ b/arch/mips/include/asm/Kbuild
@@ -21,3 +21,7 @@ generic-y += unaligned.h
 generic-y += user.h
 generic-y += word-at-a-time.h
 generic-y += xor.h
+generated-y += syscall_table_32_o32.h
+generated-y += syscall_table_64_o32.h
+generated-y += syscall_table_64_64.h
+generated-y += syscall_table_64_n32.h
\ No newline at end of file
diff --git a/arch/mips/include/uapi/asm/Kbuild b/arch/mips/include/uapi/asm/Kbuild
index 7a4becd..4efe053 100644
--- a/arch/mips/include/uapi/asm/Kbuild
+++ b/arch/mips/include/uapi/asm/Kbuild
@@ -3,3 +3,6 @@ include include/uapi/asm-generic/Kbuild.asm
 
 generic-y += bpf_perf_event.h
 generic-y += ipcbuf.h
+generated-y += unistd_32.h
+generated-y += unistd_64.h
+generated-y += unistd_n32.h
\ No newline at end of file
diff --git a/arch/mips/include/uapi/asm/unistd.h b/arch/mips/include/uapi/asm/unistd.h
index f8bab34..57c06f0 100644
--- a/arch/mips/include/uapi/asm/unistd.h
+++ b/arch/mips/include/uapi/asm/unistd.h
@@ -20,377 +20,8 @@
 /*
  * Linux o32 style syscalls are in the range from 4000 to 4999.
  */
-#define __NR_Linux			4000
-#define __NR_syscall			(__NR_Linux +	0)
-#define __NR_exit			(__NR_Linux +	1)
-#define __NR_fork			(__NR_Linux +	2)
-#define __NR_read			(__NR_Linux +	3)
-#define __NR_write			(__NR_Linux +	4)
-#define __NR_open			(__NR_Linux +	5)
-#define __NR_close			(__NR_Linux +	6)
-#define __NR_waitpid			(__NR_Linux +	7)
-#define __NR_creat			(__NR_Linux +	8)
-#define __NR_link			(__NR_Linux +	9)
-#define __NR_unlink			(__NR_Linux +  10)
-#define __NR_execve			(__NR_Linux +  11)
-#define __NR_chdir			(__NR_Linux +  12)
-#define __NR_time			(__NR_Linux +  13)
-#define __NR_mknod			(__NR_Linux +  14)
-#define __NR_chmod			(__NR_Linux +  15)
-#define __NR_lchown			(__NR_Linux +  16)
-#define __NR_break			(__NR_Linux +  17)
-#define __NR_unused18			(__NR_Linux +  18)
-#define __NR_lseek			(__NR_Linux +  19)
-#define __NR_getpid			(__NR_Linux +  20)
-#define __NR_mount			(__NR_Linux +  21)
-#define __NR_umount			(__NR_Linux +  22)
-#define __NR_setuid			(__NR_Linux +  23)
-#define __NR_getuid			(__NR_Linux +  24)
-#define __NR_stime			(__NR_Linux +  25)
-#define __NR_ptrace			(__NR_Linux +  26)
-#define __NR_alarm			(__NR_Linux +  27)
-#define __NR_unused28			(__NR_Linux +  28)
-#define __NR_pause			(__NR_Linux +  29)
-#define __NR_utime			(__NR_Linux +  30)
-#define __NR_stty			(__NR_Linux +  31)
-#define __NR_gtty			(__NR_Linux +  32)
-#define __NR_access			(__NR_Linux +  33)
-#define __NR_nice			(__NR_Linux +  34)
-#define __NR_ftime			(__NR_Linux +  35)
-#define __NR_sync			(__NR_Linux +  36)
-#define __NR_kill			(__NR_Linux +  37)
-#define __NR_rename			(__NR_Linux +  38)
-#define __NR_mkdir			(__NR_Linux +  39)
-#define __NR_rmdir			(__NR_Linux +  40)
-#define __NR_dup			(__NR_Linux +  41)
-#define __NR_pipe			(__NR_Linux +  42)
-#define __NR_times			(__NR_Linux +  43)
-#define __NR_prof			(__NR_Linux +  44)
-#define __NR_brk			(__NR_Linux +  45)
-#define __NR_setgid			(__NR_Linux +  46)
-#define __NR_getgid			(__NR_Linux +  47)
-#define __NR_signal			(__NR_Linux +  48)
-#define __NR_geteuid			(__NR_Linux +  49)
-#define __NR_getegid			(__NR_Linux +  50)
-#define __NR_acct			(__NR_Linux +  51)
-#define __NR_umount2			(__NR_Linux +  52)
-#define __NR_lock			(__NR_Linux +  53)
-#define __NR_ioctl			(__NR_Linux +  54)
-#define __NR_fcntl			(__NR_Linux +  55)
-#define __NR_mpx			(__NR_Linux +  56)
-#define __NR_setpgid			(__NR_Linux +  57)
-#define __NR_ulimit			(__NR_Linux +  58)
-#define __NR_unused59			(__NR_Linux +  59)
-#define __NR_umask			(__NR_Linux +  60)
-#define __NR_chroot			(__NR_Linux +  61)
-#define __NR_ustat			(__NR_Linux +  62)
-#define __NR_dup2			(__NR_Linux +  63)
-#define __NR_getppid			(__NR_Linux +  64)
-#define __NR_getpgrp			(__NR_Linux +  65)
-#define __NR_setsid			(__NR_Linux +  66)
-#define __NR_sigaction			(__NR_Linux +  67)
-#define __NR_sgetmask			(__NR_Linux +  68)
-#define __NR_ssetmask			(__NR_Linux +  69)
-#define __NR_setreuid			(__NR_Linux +  70)
-#define __NR_setregid			(__NR_Linux +  71)
-#define __NR_sigsuspend			(__NR_Linux +  72)
-#define __NR_sigpending			(__NR_Linux +  73)
-#define __NR_sethostname		(__NR_Linux +  74)
-#define __NR_setrlimit			(__NR_Linux +  75)
-#define __NR_getrlimit			(__NR_Linux +  76)
-#define __NR_getrusage			(__NR_Linux +  77)
-#define __NR_gettimeofday		(__NR_Linux +  78)
-#define __NR_settimeofday		(__NR_Linux +  79)
-#define __NR_getgroups			(__NR_Linux +  80)
-#define __NR_setgroups			(__NR_Linux +  81)
-#define __NR_reserved82			(__NR_Linux +  82)
-#define __NR_symlink			(__NR_Linux +  83)
-#define __NR_unused84			(__NR_Linux +  84)
-#define __NR_readlink			(__NR_Linux +  85)
-#define __NR_uselib			(__NR_Linux +  86)
-#define __NR_swapon			(__NR_Linux +  87)
-#define __NR_reboot			(__NR_Linux +  88)
-#define __NR_readdir			(__NR_Linux +  89)
-#define __NR_mmap			(__NR_Linux +  90)
-#define __NR_munmap			(__NR_Linux +  91)
-#define __NR_truncate			(__NR_Linux +  92)
-#define __NR_ftruncate			(__NR_Linux +  93)
-#define __NR_fchmod			(__NR_Linux +  94)
-#define __NR_fchown			(__NR_Linux +  95)
-#define __NR_getpriority		(__NR_Linux +  96)
-#define __NR_setpriority		(__NR_Linux +  97)
-#define __NR_profil			(__NR_Linux +  98)
-#define __NR_statfs			(__NR_Linux +  99)
-#define __NR_fstatfs			(__NR_Linux + 100)
-#define __NR_ioperm			(__NR_Linux + 101)
-#define __NR_socketcall			(__NR_Linux + 102)
-#define __NR_syslog			(__NR_Linux + 103)
-#define __NR_setitimer			(__NR_Linux + 104)
-#define __NR_getitimer			(__NR_Linux + 105)
-#define __NR_stat			(__NR_Linux + 106)
-#define __NR_lstat			(__NR_Linux + 107)
-#define __NR_fstat			(__NR_Linux + 108)
-#define __NR_unused109			(__NR_Linux + 109)
-#define __NR_iopl			(__NR_Linux + 110)
-#define __NR_vhangup			(__NR_Linux + 111)
-#define __NR_idle			(__NR_Linux + 112)
-#define __NR_vm86			(__NR_Linux + 113)
-#define __NR_wait4			(__NR_Linux + 114)
-#define __NR_swapoff			(__NR_Linux + 115)
-#define __NR_sysinfo			(__NR_Linux + 116)
-#define __NR_ipc			(__NR_Linux + 117)
-#define __NR_fsync			(__NR_Linux + 118)
-#define __NR_sigreturn			(__NR_Linux + 119)
-#define __NR_clone			(__NR_Linux + 120)
-#define __NR_setdomainname		(__NR_Linux + 121)
-#define __NR_uname			(__NR_Linux + 122)
-#define __NR_modify_ldt			(__NR_Linux + 123)
-#define __NR_adjtimex			(__NR_Linux + 124)
-#define __NR_mprotect			(__NR_Linux + 125)
-#define __NR_sigprocmask		(__NR_Linux + 126)
-#define __NR_create_module		(__NR_Linux + 127)
-#define __NR_init_module		(__NR_Linux + 128)
-#define __NR_delete_module		(__NR_Linux + 129)
-#define __NR_get_kernel_syms		(__NR_Linux + 130)
-#define __NR_quotactl			(__NR_Linux + 131)
-#define __NR_getpgid			(__NR_Linux + 132)
-#define __NR_fchdir			(__NR_Linux + 133)
-#define __NR_bdflush			(__NR_Linux + 134)
-#define __NR_sysfs			(__NR_Linux + 135)
-#define __NR_personality		(__NR_Linux + 136)
-#define __NR_afs_syscall		(__NR_Linux + 137) /* Syscall for Andrew File System */
-#define __NR_setfsuid			(__NR_Linux + 138)
-#define __NR_setfsgid			(__NR_Linux + 139)
-#define __NR__llseek			(__NR_Linux + 140)
-#define __NR_getdents			(__NR_Linux + 141)
-#define __NR__newselect			(__NR_Linux + 142)
-#define __NR_flock			(__NR_Linux + 143)
-#define __NR_msync			(__NR_Linux + 144)
-#define __NR_readv			(__NR_Linux + 145)
-#define __NR_writev			(__NR_Linux + 146)
-#define __NR_cacheflush			(__NR_Linux + 147)
-#define __NR_cachectl			(__NR_Linux + 148)
-#define __NR_sysmips			(__NR_Linux + 149)
-#define __NR_unused150			(__NR_Linux + 150)
-#define __NR_getsid			(__NR_Linux + 151)
-#define __NR_fdatasync			(__NR_Linux + 152)
-#define __NR__sysctl			(__NR_Linux + 153)
-#define __NR_mlock			(__NR_Linux + 154)
-#define __NR_munlock			(__NR_Linux + 155)
-#define __NR_mlockall			(__NR_Linux + 156)
-#define __NR_munlockall			(__NR_Linux + 157)
-#define __NR_sched_setparam		(__NR_Linux + 158)
-#define __NR_sched_getparam		(__NR_Linux + 159)
-#define __NR_sched_setscheduler		(__NR_Linux + 160)
-#define __NR_sched_getscheduler		(__NR_Linux + 161)
-#define __NR_sched_yield		(__NR_Linux + 162)
-#define __NR_sched_get_priority_max	(__NR_Linux + 163)
-#define __NR_sched_get_priority_min	(__NR_Linux + 164)
-#define __NR_sched_rr_get_interval	(__NR_Linux + 165)
-#define __NR_nanosleep			(__NR_Linux + 166)
-#define __NR_mremap			(__NR_Linux + 167)
-#define __NR_accept			(__NR_Linux + 168)
-#define __NR_bind			(__NR_Linux + 169)
-#define __NR_connect			(__NR_Linux + 170)
-#define __NR_getpeername		(__NR_Linux + 171)
-#define __NR_getsockname		(__NR_Linux + 172)
-#define __NR_getsockopt			(__NR_Linux + 173)
-#define __NR_listen			(__NR_Linux + 174)
-#define __NR_recv			(__NR_Linux + 175)
-#define __NR_recvfrom			(__NR_Linux + 176)
-#define __NR_recvmsg			(__NR_Linux + 177)
-#define __NR_send			(__NR_Linux + 178)
-#define __NR_sendmsg			(__NR_Linux + 179)
-#define __NR_sendto			(__NR_Linux + 180)
-#define __NR_setsockopt			(__NR_Linux + 181)
-#define __NR_shutdown			(__NR_Linux + 182)
-#define __NR_socket			(__NR_Linux + 183)
-#define __NR_socketpair			(__NR_Linux + 184)
-#define __NR_setresuid			(__NR_Linux + 185)
-#define __NR_getresuid			(__NR_Linux + 186)
-#define __NR_query_module		(__NR_Linux + 187)
-#define __NR_poll			(__NR_Linux + 188)
-#define __NR_nfsservctl			(__NR_Linux + 189)
-#define __NR_setresgid			(__NR_Linux + 190)
-#define __NR_getresgid			(__NR_Linux + 191)
-#define __NR_prctl			(__NR_Linux + 192)
-#define __NR_rt_sigreturn		(__NR_Linux + 193)
-#define __NR_rt_sigaction		(__NR_Linux + 194)
-#define __NR_rt_sigprocmask		(__NR_Linux + 195)
-#define __NR_rt_sigpending		(__NR_Linux + 196)
-#define __NR_rt_sigtimedwait		(__NR_Linux + 197)
-#define __NR_rt_sigqueueinfo		(__NR_Linux + 198)
-#define __NR_rt_sigsuspend		(__NR_Linux + 199)
-#define __NR_pread64			(__NR_Linux + 200)
-#define __NR_pwrite64			(__NR_Linux + 201)
-#define __NR_chown			(__NR_Linux + 202)
-#define __NR_getcwd			(__NR_Linux + 203)
-#define __NR_capget			(__NR_Linux + 204)
-#define __NR_capset			(__NR_Linux + 205)
-#define __NR_sigaltstack		(__NR_Linux + 206)
-#define __NR_sendfile			(__NR_Linux + 207)
-#define __NR_getpmsg			(__NR_Linux + 208)
-#define __NR_putpmsg			(__NR_Linux + 209)
-#define __NR_mmap2			(__NR_Linux + 210)
-#define __NR_truncate64			(__NR_Linux + 211)
-#define __NR_ftruncate64		(__NR_Linux + 212)
-#define __NR_stat64			(__NR_Linux + 213)
-#define __NR_lstat64			(__NR_Linux + 214)
-#define __NR_fstat64			(__NR_Linux + 215)
-#define __NR_pivot_root			(__NR_Linux + 216)
-#define __NR_mincore			(__NR_Linux + 217)
-#define __NR_madvise			(__NR_Linux + 218)
-#define __NR_getdents64			(__NR_Linux + 219)
-#define __NR_fcntl64			(__NR_Linux + 220)
-#define __NR_reserved221		(__NR_Linux + 221)
-#define __NR_gettid			(__NR_Linux + 222)
-#define __NR_readahead			(__NR_Linux + 223)
-#define __NR_setxattr			(__NR_Linux + 224)
-#define __NR_lsetxattr			(__NR_Linux + 225)
-#define __NR_fsetxattr			(__NR_Linux + 226)
-#define __NR_getxattr			(__NR_Linux + 227)
-#define __NR_lgetxattr			(__NR_Linux + 228)
-#define __NR_fgetxattr			(__NR_Linux + 229)
-#define __NR_listxattr			(__NR_Linux + 230)
-#define __NR_llistxattr			(__NR_Linux + 231)
-#define __NR_flistxattr			(__NR_Linux + 232)
-#define __NR_removexattr		(__NR_Linux + 233)
-#define __NR_lremovexattr		(__NR_Linux + 234)
-#define __NR_fremovexattr		(__NR_Linux + 235)
-#define __NR_tkill			(__NR_Linux + 236)
-#define __NR_sendfile64			(__NR_Linux + 237)
-#define __NR_futex			(__NR_Linux + 238)
-#define __NR_sched_setaffinity		(__NR_Linux + 239)
-#define __NR_sched_getaffinity		(__NR_Linux + 240)
-#define __NR_io_setup			(__NR_Linux + 241)
-#define __NR_io_destroy			(__NR_Linux + 242)
-#define __NR_io_getevents		(__NR_Linux + 243)
-#define __NR_io_submit			(__NR_Linux + 244)
-#define __NR_io_cancel			(__NR_Linux + 245)
-#define __NR_exit_group			(__NR_Linux + 246)
-#define __NR_lookup_dcookie		(__NR_Linux + 247)
-#define __NR_epoll_create		(__NR_Linux + 248)
-#define __NR_epoll_ctl			(__NR_Linux + 249)
-#define __NR_epoll_wait			(__NR_Linux + 250)
-#define __NR_remap_file_pages		(__NR_Linux + 251)
-#define __NR_set_tid_address		(__NR_Linux + 252)
-#define __NR_restart_syscall		(__NR_Linux + 253)
-#define __NR_fadvise64			(__NR_Linux + 254)
-#define __NR_statfs64			(__NR_Linux + 255)
-#define __NR_fstatfs64			(__NR_Linux + 256)
-#define __NR_timer_create		(__NR_Linux + 257)
-#define __NR_timer_settime		(__NR_Linux + 258)
-#define __NR_timer_gettime		(__NR_Linux + 259)
-#define __NR_timer_getoverrun		(__NR_Linux + 260)
-#define __NR_timer_delete		(__NR_Linux + 261)
-#define __NR_clock_settime		(__NR_Linux + 262)
-#define __NR_clock_gettime		(__NR_Linux + 263)
-#define __NR_clock_getres		(__NR_Linux + 264)
-#define __NR_clock_nanosleep		(__NR_Linux + 265)
-#define __NR_tgkill			(__NR_Linux + 266)
-#define __NR_utimes			(__NR_Linux + 267)
-#define __NR_mbind			(__NR_Linux + 268)
-#define __NR_get_mempolicy		(__NR_Linux + 269)
-#define __NR_set_mempolicy		(__NR_Linux + 270)
-#define __NR_mq_open			(__NR_Linux + 271)
-#define __NR_mq_unlink			(__NR_Linux + 272)
-#define __NR_mq_timedsend		(__NR_Linux + 273)
-#define __NR_mq_timedreceive		(__NR_Linux + 274)
-#define __NR_mq_notify			(__NR_Linux + 275)
-#define __NR_mq_getsetattr		(__NR_Linux + 276)
-#define __NR_vserver			(__NR_Linux + 277)
-#define __NR_waitid			(__NR_Linux + 278)
-/* #define __NR_sys_setaltroot		(__NR_Linux + 279) */
-#define __NR_add_key			(__NR_Linux + 280)
-#define __NR_request_key		(__NR_Linux + 281)
-#define __NR_keyctl			(__NR_Linux + 282)
-#define __NR_set_thread_area		(__NR_Linux + 283)
-#define __NR_inotify_init		(__NR_Linux + 284)
-#define __NR_inotify_add_watch		(__NR_Linux + 285)
-#define __NR_inotify_rm_watch		(__NR_Linux + 286)
-#define __NR_migrate_pages		(__NR_Linux + 287)
-#define __NR_openat			(__NR_Linux + 288)
-#define __NR_mkdirat			(__NR_Linux + 289)
-#define __NR_mknodat			(__NR_Linux + 290)
-#define __NR_fchownat			(__NR_Linux + 291)
-#define __NR_futimesat			(__NR_Linux + 292)
-#define __NR_fstatat64			(__NR_Linux + 293)
-#define __NR_unlinkat			(__NR_Linux + 294)
-#define __NR_renameat			(__NR_Linux + 295)
-#define __NR_linkat			(__NR_Linux + 296)
-#define __NR_symlinkat			(__NR_Linux + 297)
-#define __NR_readlinkat			(__NR_Linux + 298)
-#define __NR_fchmodat			(__NR_Linux + 299)
-#define __NR_faccessat			(__NR_Linux + 300)
-#define __NR_pselect6			(__NR_Linux + 301)
-#define __NR_ppoll			(__NR_Linux + 302)
-#define __NR_unshare			(__NR_Linux + 303)
-#define __NR_splice			(__NR_Linux + 304)
-#define __NR_sync_file_range		(__NR_Linux + 305)
-#define __NR_tee			(__NR_Linux + 306)
-#define __NR_vmsplice			(__NR_Linux + 307)
-#define __NR_move_pages			(__NR_Linux + 308)
-#define __NR_set_robust_list		(__NR_Linux + 309)
-#define __NR_get_robust_list		(__NR_Linux + 310)
-#define __NR_kexec_load			(__NR_Linux + 311)
-#define __NR_getcpu			(__NR_Linux + 312)
-#define __NR_epoll_pwait		(__NR_Linux + 313)
-#define __NR_ioprio_set			(__NR_Linux + 314)
-#define __NR_ioprio_get			(__NR_Linux + 315)
-#define __NR_utimensat			(__NR_Linux + 316)
-#define __NR_signalfd			(__NR_Linux + 317)
-#define __NR_timerfd			(__NR_Linux + 318)
-#define __NR_eventfd			(__NR_Linux + 319)
-#define __NR_fallocate			(__NR_Linux + 320)
-#define __NR_timerfd_create		(__NR_Linux + 321)
-#define __NR_timerfd_gettime		(__NR_Linux + 322)
-#define __NR_timerfd_settime		(__NR_Linux + 323)
-#define __NR_signalfd4			(__NR_Linux + 324)
-#define __NR_eventfd2			(__NR_Linux + 325)
-#define __NR_epoll_create1		(__NR_Linux + 326)
-#define __NR_dup3			(__NR_Linux + 327)
-#define __NR_pipe2			(__NR_Linux + 328)
-#define __NR_inotify_init1		(__NR_Linux + 329)
-#define __NR_preadv			(__NR_Linux + 330)
-#define __NR_pwritev			(__NR_Linux + 331)
-#define __NR_rt_tgsigqueueinfo		(__NR_Linux + 332)
-#define __NR_perf_event_open		(__NR_Linux + 333)
-#define __NR_accept4			(__NR_Linux + 334)
-#define __NR_recvmmsg			(__NR_Linux + 335)
-#define __NR_fanotify_init		(__NR_Linux + 336)
-#define __NR_fanotify_mark		(__NR_Linux + 337)
-#define __NR_prlimit64			(__NR_Linux + 338)
-#define __NR_name_to_handle_at		(__NR_Linux + 339)
-#define __NR_open_by_handle_at		(__NR_Linux + 340)
-#define __NR_clock_adjtime		(__NR_Linux + 341)
-#define __NR_syncfs			(__NR_Linux + 342)
-#define __NR_sendmmsg			(__NR_Linux + 343)
-#define __NR_setns			(__NR_Linux + 344)
-#define __NR_process_vm_readv		(__NR_Linux + 345)
-#define __NR_process_vm_writev		(__NR_Linux + 346)
-#define __NR_kcmp			(__NR_Linux + 347)
-#define __NR_finit_module		(__NR_Linux + 348)
-#define __NR_sched_setattr		(__NR_Linux + 349)
-#define __NR_sched_getattr		(__NR_Linux + 350)
-#define __NR_renameat2			(__NR_Linux + 351)
-#define __NR_seccomp			(__NR_Linux + 352)
-#define __NR_getrandom			(__NR_Linux + 353)
-#define __NR_memfd_create		(__NR_Linux + 354)
-#define __NR_bpf			(__NR_Linux + 355)
-#define __NR_execveat			(__NR_Linux + 356)
-#define __NR_userfaultfd		(__NR_Linux + 357)
-#define __NR_membarrier			(__NR_Linux + 358)
-#define __NR_mlock2			(__NR_Linux + 359)
-#define __NR_copy_file_range		(__NR_Linux + 360)
-#define __NR_preadv2			(__NR_Linux + 361)
-#define __NR_pwritev2			(__NR_Linux + 362)
-#define __NR_pkey_mprotect		(__NR_Linux + 363)
-#define __NR_pkey_alloc			(__NR_Linux + 364)
-#define __NR_pkey_free			(__NR_Linux + 365)
-#define __NR_statx			(__NR_Linux + 366)
-#define __NR_rseq			(__NR_Linux + 367)
-#define __NR_io_pgetevents		(__NR_Linux + 368)
-#define __NR_syscalls                   368
+#define __NR_Linux 4000
+#include <asm/unistd_32.h>
 
 /*
  * Offset of the last Linux o32 flavoured syscall
@@ -400,349 +31,20 @@
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
 
 #define __NR_O32_Linux			4000
-#define __NR_O32_Linux_syscalls         __NR_syscalls
+#define __NR_O32_Linux_syscalls		__NR_syscalls
 
 #if _MIPS_SIM == _MIPS_SIM_ABI64
 
 /*
  * Linux 64-bit syscalls are in the range from 5000 to 5999.
  */
-#define __NR_Linux			5000
-#define __NR_read			(__NR_Linux +	0)
-#define __NR_write			(__NR_Linux +	1)
-#define __NR_open			(__NR_Linux +	2)
-#define __NR_close			(__NR_Linux +	3)
-#define __NR_stat			(__NR_Linux +	4)
-#define __NR_fstat			(__NR_Linux +	5)
-#define __NR_lstat			(__NR_Linux +	6)
-#define __NR_poll			(__NR_Linux +	7)
-#define __NR_lseek			(__NR_Linux +	8)
-#define __NR_mmap			(__NR_Linux +	9)
-#define __NR_mprotect			(__NR_Linux +  10)
-#define __NR_munmap			(__NR_Linux +  11)
-#define __NR_brk			(__NR_Linux +  12)
-#define __NR_rt_sigaction		(__NR_Linux +  13)
-#define __NR_rt_sigprocmask		(__NR_Linux +  14)
-#define __NR_ioctl			(__NR_Linux +  15)
-#define __NR_pread64			(__NR_Linux +  16)
-#define __NR_pwrite64			(__NR_Linux +  17)
-#define __NR_readv			(__NR_Linux +  18)
-#define __NR_writev			(__NR_Linux +  19)
-#define __NR_access			(__NR_Linux +  20)
-#define __NR_pipe			(__NR_Linux +  21)
-#define __NR__newselect			(__NR_Linux +  22)
-#define __NR_sched_yield		(__NR_Linux +  23)
-#define __NR_mremap			(__NR_Linux +  24)
-#define __NR_msync			(__NR_Linux +  25)
-#define __NR_mincore			(__NR_Linux +  26)
-#define __NR_madvise			(__NR_Linux +  27)
-#define __NR_shmget			(__NR_Linux +  28)
-#define __NR_shmat			(__NR_Linux +  29)
-#define __NR_shmctl			(__NR_Linux +  30)
-#define __NR_dup			(__NR_Linux +  31)
-#define __NR_dup2			(__NR_Linux +  32)
-#define __NR_pause			(__NR_Linux +  33)
-#define __NR_nanosleep			(__NR_Linux +  34)
-#define __NR_getitimer			(__NR_Linux +  35)
-#define __NR_setitimer			(__NR_Linux +  36)
-#define __NR_alarm			(__NR_Linux +  37)
-#define __NR_getpid			(__NR_Linux +  38)
-#define __NR_sendfile			(__NR_Linux +  39)
-#define __NR_socket			(__NR_Linux +  40)
-#define __NR_connect			(__NR_Linux +  41)
-#define __NR_accept			(__NR_Linux +  42)
-#define __NR_sendto			(__NR_Linux +  43)
-#define __NR_recvfrom			(__NR_Linux +  44)
-#define __NR_sendmsg			(__NR_Linux +  45)
-#define __NR_recvmsg			(__NR_Linux +  46)
-#define __NR_shutdown			(__NR_Linux +  47)
-#define __NR_bind			(__NR_Linux +  48)
-#define __NR_listen			(__NR_Linux +  49)
-#define __NR_getsockname		(__NR_Linux +  50)
-#define __NR_getpeername		(__NR_Linux +  51)
-#define __NR_socketpair			(__NR_Linux +  52)
-#define __NR_setsockopt			(__NR_Linux +  53)
-#define __NR_getsockopt			(__NR_Linux +  54)
-#define __NR_clone			(__NR_Linux +  55)
-#define __NR_fork			(__NR_Linux +  56)
-#define __NR_execve			(__NR_Linux +  57)
-#define __NR_exit			(__NR_Linux +  58)
-#define __NR_wait4			(__NR_Linux +  59)
-#define __NR_kill			(__NR_Linux +  60)
-#define __NR_uname			(__NR_Linux +  61)
-#define __NR_semget			(__NR_Linux +  62)
-#define __NR_semop			(__NR_Linux +  63)
-#define __NR_semctl			(__NR_Linux +  64)
-#define __NR_shmdt			(__NR_Linux +  65)
-#define __NR_msgget			(__NR_Linux +  66)
-#define __NR_msgsnd			(__NR_Linux +  67)
-#define __NR_msgrcv			(__NR_Linux +  68)
-#define __NR_msgctl			(__NR_Linux +  69)
-#define __NR_fcntl			(__NR_Linux +  70)
-#define __NR_flock			(__NR_Linux +  71)
-#define __NR_fsync			(__NR_Linux +  72)
-#define __NR_fdatasync			(__NR_Linux +  73)
-#define __NR_truncate			(__NR_Linux +  74)
-#define __NR_ftruncate			(__NR_Linux +  75)
-#define __NR_getdents			(__NR_Linux +  76)
-#define __NR_getcwd			(__NR_Linux +  77)
-#define __NR_chdir			(__NR_Linux +  78)
-#define __NR_fchdir			(__NR_Linux +  79)
-#define __NR_rename			(__NR_Linux +  80)
-#define __NR_mkdir			(__NR_Linux +  81)
-#define __NR_rmdir			(__NR_Linux +  82)
-#define __NR_creat			(__NR_Linux +  83)
-#define __NR_link			(__NR_Linux +  84)
-#define __NR_unlink			(__NR_Linux +  85)
-#define __NR_symlink			(__NR_Linux +  86)
-#define __NR_readlink			(__NR_Linux +  87)
-#define __NR_chmod			(__NR_Linux +  88)
-#define __NR_fchmod			(__NR_Linux +  89)
-#define __NR_chown			(__NR_Linux +  90)
-#define __NR_fchown			(__NR_Linux +  91)
-#define __NR_lchown			(__NR_Linux +  92)
-#define __NR_umask			(__NR_Linux +  93)
-#define __NR_gettimeofday		(__NR_Linux +  94)
-#define __NR_getrlimit			(__NR_Linux +  95)
-#define __NR_getrusage			(__NR_Linux +  96)
-#define __NR_sysinfo			(__NR_Linux +  97)
-#define __NR_times			(__NR_Linux +  98)
-#define __NR_ptrace			(__NR_Linux +  99)
-#define __NR_getuid			(__NR_Linux + 100)
-#define __NR_syslog			(__NR_Linux + 101)
-#define __NR_getgid			(__NR_Linux + 102)
-#define __NR_setuid			(__NR_Linux + 103)
-#define __NR_setgid			(__NR_Linux + 104)
-#define __NR_geteuid			(__NR_Linux + 105)
-#define __NR_getegid			(__NR_Linux + 106)
-#define __NR_setpgid			(__NR_Linux + 107)
-#define __NR_getppid			(__NR_Linux + 108)
-#define __NR_getpgrp			(__NR_Linux + 109)
-#define __NR_setsid			(__NR_Linux + 110)
-#define __NR_setreuid			(__NR_Linux + 111)
-#define __NR_setregid			(__NR_Linux + 112)
-#define __NR_getgroups			(__NR_Linux + 113)
-#define __NR_setgroups			(__NR_Linux + 114)
-#define __NR_setresuid			(__NR_Linux + 115)
-#define __NR_getresuid			(__NR_Linux + 116)
-#define __NR_setresgid			(__NR_Linux + 117)
-#define __NR_getresgid			(__NR_Linux + 118)
-#define __NR_getpgid			(__NR_Linux + 119)
-#define __NR_setfsuid			(__NR_Linux + 120)
-#define __NR_setfsgid			(__NR_Linux + 121)
-#define __NR_getsid			(__NR_Linux + 122)
-#define __NR_capget			(__NR_Linux + 123)
-#define __NR_capset			(__NR_Linux + 124)
-#define __NR_rt_sigpending		(__NR_Linux + 125)
-#define __NR_rt_sigtimedwait		(__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo		(__NR_Linux + 127)
-#define __NR_rt_sigsuspend		(__NR_Linux + 128)
-#define __NR_sigaltstack		(__NR_Linux + 129)
-#define __NR_utime			(__NR_Linux + 130)
-#define __NR_mknod			(__NR_Linux + 131)
-#define __NR_personality		(__NR_Linux + 132)
-#define __NR_ustat			(__NR_Linux + 133)
-#define __NR_statfs			(__NR_Linux + 134)
-#define __NR_fstatfs			(__NR_Linux + 135)
-#define __NR_sysfs			(__NR_Linux + 136)
-#define __NR_getpriority		(__NR_Linux + 137)
-#define __NR_setpriority		(__NR_Linux + 138)
-#define __NR_sched_setparam		(__NR_Linux + 139)
-#define __NR_sched_getparam		(__NR_Linux + 140)
-#define __NR_sched_setscheduler		(__NR_Linux + 141)
-#define __NR_sched_getscheduler		(__NR_Linux + 142)
-#define __NR_sched_get_priority_max	(__NR_Linux + 143)
-#define __NR_sched_get_priority_min	(__NR_Linux + 144)
-#define __NR_sched_rr_get_interval	(__NR_Linux + 145)
-#define __NR_mlock			(__NR_Linux + 146)
-#define __NR_munlock			(__NR_Linux + 147)
-#define __NR_mlockall			(__NR_Linux + 148)
-#define __NR_munlockall			(__NR_Linux + 149)
-#define __NR_vhangup			(__NR_Linux + 150)
-#define __NR_pivot_root			(__NR_Linux + 151)
-#define __NR__sysctl			(__NR_Linux + 152)
-#define __NR_prctl			(__NR_Linux + 153)
-#define __NR_adjtimex			(__NR_Linux + 154)
-#define __NR_setrlimit			(__NR_Linux + 155)
-#define __NR_chroot			(__NR_Linux + 156)
-#define __NR_sync			(__NR_Linux + 157)
-#define __NR_acct			(__NR_Linux + 158)
-#define __NR_settimeofday		(__NR_Linux + 159)
-#define __NR_mount			(__NR_Linux + 160)
-#define __NR_umount2			(__NR_Linux + 161)
-#define __NR_swapon			(__NR_Linux + 162)
-#define __NR_swapoff			(__NR_Linux + 163)
-#define __NR_reboot			(__NR_Linux + 164)
-#define __NR_sethostname		(__NR_Linux + 165)
-#define __NR_setdomainname		(__NR_Linux + 166)
-#define __NR_create_module		(__NR_Linux + 167)
-#define __NR_init_module		(__NR_Linux + 168)
-#define __NR_delete_module		(__NR_Linux + 169)
-#define __NR_get_kernel_syms		(__NR_Linux + 170)
-#define __NR_query_module		(__NR_Linux + 171)
-#define __NR_quotactl			(__NR_Linux + 172)
-#define __NR_nfsservctl			(__NR_Linux + 173)
-#define __NR_getpmsg			(__NR_Linux + 174)
-#define __NR_putpmsg			(__NR_Linux + 175)
-#define __NR_afs_syscall		(__NR_Linux + 176)
-#define __NR_reserved177		(__NR_Linux + 177)
-#define __NR_gettid			(__NR_Linux + 178)
-#define __NR_readahead			(__NR_Linux + 179)
-#define __NR_setxattr			(__NR_Linux + 180)
-#define __NR_lsetxattr			(__NR_Linux + 181)
-#define __NR_fsetxattr			(__NR_Linux + 182)
-#define __NR_getxattr			(__NR_Linux + 183)
-#define __NR_lgetxattr			(__NR_Linux + 184)
-#define __NR_fgetxattr			(__NR_Linux + 185)
-#define __NR_listxattr			(__NR_Linux + 186)
-#define __NR_llistxattr			(__NR_Linux + 187)
-#define __NR_flistxattr			(__NR_Linux + 188)
-#define __NR_removexattr		(__NR_Linux + 189)
-#define __NR_lremovexattr		(__NR_Linux + 190)
-#define __NR_fremovexattr		(__NR_Linux + 191)
-#define __NR_tkill			(__NR_Linux + 192)
-#define __NR_reserved193		(__NR_Linux + 193)
-#define __NR_futex			(__NR_Linux + 194)
-#define __NR_sched_setaffinity		(__NR_Linux + 195)
-#define __NR_sched_getaffinity		(__NR_Linux + 196)
-#define __NR_cacheflush			(__NR_Linux + 197)
-#define __NR_cachectl			(__NR_Linux + 198)
-#define __NR_sysmips			(__NR_Linux + 199)
-#define __NR_io_setup			(__NR_Linux + 200)
-#define __NR_io_destroy			(__NR_Linux + 201)
-#define __NR_io_getevents		(__NR_Linux + 202)
-#define __NR_io_submit			(__NR_Linux + 203)
-#define __NR_io_cancel			(__NR_Linux + 204)
-#define __NR_exit_group			(__NR_Linux + 205)
-#define __NR_lookup_dcookie		(__NR_Linux + 206)
-#define __NR_epoll_create		(__NR_Linux + 207)
-#define __NR_epoll_ctl			(__NR_Linux + 208)
-#define __NR_epoll_wait			(__NR_Linux + 209)
-#define __NR_remap_file_pages		(__NR_Linux + 210)
-#define __NR_rt_sigreturn		(__NR_Linux + 211)
-#define __NR_set_tid_address		(__NR_Linux + 212)
-#define __NR_restart_syscall		(__NR_Linux + 213)
-#define __NR_semtimedop			(__NR_Linux + 214)
-#define __NR_fadvise64			(__NR_Linux + 215)
-#define __NR_timer_create		(__NR_Linux + 216)
-#define __NR_timer_settime		(__NR_Linux + 217)
-#define __NR_timer_gettime		(__NR_Linux + 218)
-#define __NR_timer_getoverrun		(__NR_Linux + 219)
-#define __NR_timer_delete		(__NR_Linux + 220)
-#define __NR_clock_settime		(__NR_Linux + 221)
-#define __NR_clock_gettime		(__NR_Linux + 222)
-#define __NR_clock_getres		(__NR_Linux + 223)
-#define __NR_clock_nanosleep		(__NR_Linux + 224)
-#define __NR_tgkill			(__NR_Linux + 225)
-#define __NR_utimes			(__NR_Linux + 226)
-#define __NR_mbind			(__NR_Linux + 227)
-#define __NR_get_mempolicy		(__NR_Linux + 228)
-#define __NR_set_mempolicy		(__NR_Linux + 229)
-#define __NR_mq_open			(__NR_Linux + 230)
-#define __NR_mq_unlink			(__NR_Linux + 231)
-#define __NR_mq_timedsend		(__NR_Linux + 232)
-#define __NR_mq_timedreceive		(__NR_Linux + 233)
-#define __NR_mq_notify			(__NR_Linux + 234)
-#define __NR_mq_getsetattr		(__NR_Linux + 235)
-#define __NR_vserver			(__NR_Linux + 236)
-#define __NR_waitid			(__NR_Linux + 237)
-/* #define __NR_sys_setaltroot		(__NR_Linux + 238) */
-#define __NR_add_key			(__NR_Linux + 239)
-#define __NR_request_key		(__NR_Linux + 240)
-#define __NR_keyctl			(__NR_Linux + 241)
-#define __NR_set_thread_area		(__NR_Linux + 242)
-#define __NR_inotify_init		(__NR_Linux + 243)
-#define __NR_inotify_add_watch		(__NR_Linux + 244)
-#define __NR_inotify_rm_watch		(__NR_Linux + 245)
-#define __NR_migrate_pages		(__NR_Linux + 246)
-#define __NR_openat			(__NR_Linux + 247)
-#define __NR_mkdirat			(__NR_Linux + 248)
-#define __NR_mknodat			(__NR_Linux + 249)
-#define __NR_fchownat			(__NR_Linux + 250)
-#define __NR_futimesat			(__NR_Linux + 251)
-#define __NR_newfstatat			(__NR_Linux + 252)
-#define __NR_unlinkat			(__NR_Linux + 253)
-#define __NR_renameat			(__NR_Linux + 254)
-#define __NR_linkat			(__NR_Linux + 255)
-#define __NR_symlinkat			(__NR_Linux + 256)
-#define __NR_readlinkat			(__NR_Linux + 257)
-#define __NR_fchmodat			(__NR_Linux + 258)
-#define __NR_faccessat			(__NR_Linux + 259)
-#define __NR_pselect6			(__NR_Linux + 260)
-#define __NR_ppoll			(__NR_Linux + 261)
-#define __NR_unshare			(__NR_Linux + 262)
-#define __NR_splice			(__NR_Linux + 263)
-#define __NR_sync_file_range		(__NR_Linux + 264)
-#define __NR_tee			(__NR_Linux + 265)
-#define __NR_vmsplice			(__NR_Linux + 266)
-#define __NR_move_pages			(__NR_Linux + 267)
-#define __NR_set_robust_list		(__NR_Linux + 268)
-#define __NR_get_robust_list		(__NR_Linux + 269)
-#define __NR_kexec_load			(__NR_Linux + 270)
-#define __NR_getcpu			(__NR_Linux + 271)
-#define __NR_epoll_pwait		(__NR_Linux + 272)
-#define __NR_ioprio_set			(__NR_Linux + 273)
-#define __NR_ioprio_get			(__NR_Linux + 274)
-#define __NR_utimensat			(__NR_Linux + 275)
-#define __NR_signalfd			(__NR_Linux + 276)
-#define __NR_timerfd			(__NR_Linux + 277)
-#define __NR_eventfd			(__NR_Linux + 278)
-#define __NR_fallocate			(__NR_Linux + 279)
-#define __NR_timerfd_create		(__NR_Linux + 280)
-#define __NR_timerfd_gettime		(__NR_Linux + 281)
-#define __NR_timerfd_settime		(__NR_Linux + 282)
-#define __NR_signalfd4			(__NR_Linux + 283)
-#define __NR_eventfd2			(__NR_Linux + 284)
-#define __NR_epoll_create1		(__NR_Linux + 285)
-#define __NR_dup3			(__NR_Linux + 286)
-#define __NR_pipe2			(__NR_Linux + 287)
-#define __NR_inotify_init1		(__NR_Linux + 288)
-#define __NR_preadv			(__NR_Linux + 289)
-#define __NR_pwritev			(__NR_Linux + 290)
-#define __NR_rt_tgsigqueueinfo		(__NR_Linux + 291)
-#define __NR_perf_event_open		(__NR_Linux + 292)
-#define __NR_accept4			(__NR_Linux + 293)
-#define __NR_recvmmsg			(__NR_Linux + 294)
-#define __NR_fanotify_init		(__NR_Linux + 295)
-#define __NR_fanotify_mark		(__NR_Linux + 296)
-#define __NR_prlimit64			(__NR_Linux + 297)
-#define __NR_name_to_handle_at		(__NR_Linux + 298)
-#define __NR_open_by_handle_at		(__NR_Linux + 299)
-#define __NR_clock_adjtime		(__NR_Linux + 300)
-#define __NR_syncfs			(__NR_Linux + 301)
-#define __NR_sendmmsg			(__NR_Linux + 302)
-#define __NR_setns			(__NR_Linux + 303)
-#define __NR_process_vm_readv		(__NR_Linux + 304)
-#define __NR_process_vm_writev		(__NR_Linux + 305)
-#define __NR_kcmp			(__NR_Linux + 306)
-#define __NR_finit_module		(__NR_Linux + 307)
-#define __NR_getdents64			(__NR_Linux + 308)
-#define __NR_sched_setattr		(__NR_Linux + 309)
-#define __NR_sched_getattr		(__NR_Linux + 310)
-#define __NR_renameat2			(__NR_Linux + 311)
-#define __NR_seccomp			(__NR_Linux + 312)
-#define __NR_getrandom			(__NR_Linux + 313)
-#define __NR_memfd_create		(__NR_Linux + 314)
-#define __NR_bpf			(__NR_Linux + 315)
-#define __NR_execveat			(__NR_Linux + 316)
-#define __NR_userfaultfd		(__NR_Linux + 317)
-#define __NR_membarrier			(__NR_Linux + 318)
-#define __NR_mlock2			(__NR_Linux + 319)
-#define __NR_copy_file_range		(__NR_Linux + 320)
-#define __NR_preadv2			(__NR_Linux + 321)
-#define __NR_pwritev2			(__NR_Linux + 322)
-#define __NR_pkey_mprotect		(__NR_Linux + 323)
-#define __NR_pkey_alloc			(__NR_Linux + 324)
-#define __NR_pkey_free			(__NR_Linux + 325)
-#define __NR_statx			(__NR_Linux + 326)
-#define __NR_rseq			(__NR_Linux + 327)
-#define __NR_io_pgetevents		(__NR_Linux + 328)
-#define __NR_syscalls                   328
+#define __NR_Linux 5000
+#include <asm/unistd_64.h>
 
 /*
  * Offset of the last Linux 64-bit flavoured syscall
  */
-#define __NR_Linux_syscalls		__NR_syscalls
+#define __NR_Linux_syscalls             __NR_syscalls
 
 #endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
 
@@ -754,346 +56,13 @@
 /*
  * Linux N32 syscalls are in the range from 6000 to 6999.
  */
-#define __NR_Linux			6000
-#define __NR_read			(__NR_Linux +	0)
-#define __NR_write			(__NR_Linux +	1)
-#define __NR_open			(__NR_Linux +	2)
-#define __NR_close			(__NR_Linux +	3)
-#define __NR_stat			(__NR_Linux +	4)
-#define __NR_fstat			(__NR_Linux +	5)
-#define __NR_lstat			(__NR_Linux +	6)
-#define __NR_poll			(__NR_Linux +	7)
-#define __NR_lseek			(__NR_Linux +	8)
-#define __NR_mmap			(__NR_Linux +	9)
-#define __NR_mprotect			(__NR_Linux +  10)
-#define __NR_munmap			(__NR_Linux +  11)
-#define __NR_brk			(__NR_Linux +  12)
-#define __NR_rt_sigaction		(__NR_Linux +  13)
-#define __NR_rt_sigprocmask		(__NR_Linux +  14)
-#define __NR_ioctl			(__NR_Linux +  15)
-#define __NR_pread64			(__NR_Linux +  16)
-#define __NR_pwrite64			(__NR_Linux +  17)
-#define __NR_readv			(__NR_Linux +  18)
-#define __NR_writev			(__NR_Linux +  19)
-#define __NR_access			(__NR_Linux +  20)
-#define __NR_pipe			(__NR_Linux +  21)
-#define __NR__newselect			(__NR_Linux +  22)
-#define __NR_sched_yield		(__NR_Linux +  23)
-#define __NR_mremap			(__NR_Linux +  24)
-#define __NR_msync			(__NR_Linux +  25)
-#define __NR_mincore			(__NR_Linux +  26)
-#define __NR_madvise			(__NR_Linux +  27)
-#define __NR_shmget			(__NR_Linux +  28)
-#define __NR_shmat			(__NR_Linux +  29)
-#define __NR_shmctl			(__NR_Linux +  30)
-#define __NR_dup			(__NR_Linux +  31)
-#define __NR_dup2			(__NR_Linux +  32)
-#define __NR_pause			(__NR_Linux +  33)
-#define __NR_nanosleep			(__NR_Linux +  34)
-#define __NR_getitimer			(__NR_Linux +  35)
-#define __NR_setitimer			(__NR_Linux +  36)
-#define __NR_alarm			(__NR_Linux +  37)
-#define __NR_getpid			(__NR_Linux +  38)
-#define __NR_sendfile			(__NR_Linux +  39)
-#define __NR_socket			(__NR_Linux +  40)
-#define __NR_connect			(__NR_Linux +  41)
-#define __NR_accept			(__NR_Linux +  42)
-#define __NR_sendto			(__NR_Linux +  43)
-#define __NR_recvfrom			(__NR_Linux +  44)
-#define __NR_sendmsg			(__NR_Linux +  45)
-#define __NR_recvmsg			(__NR_Linux +  46)
-#define __NR_shutdown			(__NR_Linux +  47)
-#define __NR_bind			(__NR_Linux +  48)
-#define __NR_listen			(__NR_Linux +  49)
-#define __NR_getsockname		(__NR_Linux +  50)
-#define __NR_getpeername		(__NR_Linux +  51)
-#define __NR_socketpair			(__NR_Linux +  52)
-#define __NR_setsockopt			(__NR_Linux +  53)
-#define __NR_getsockopt			(__NR_Linux +  54)
-#define __NR_clone			(__NR_Linux +  55)
-#define __NR_fork			(__NR_Linux +  56)
-#define __NR_execve			(__NR_Linux +  57)
-#define __NR_exit			(__NR_Linux +  58)
-#define __NR_wait4			(__NR_Linux +  59)
-#define __NR_kill			(__NR_Linux +  60)
-#define __NR_uname			(__NR_Linux +  61)
-#define __NR_semget			(__NR_Linux +  62)
-#define __NR_semop			(__NR_Linux +  63)
-#define __NR_semctl			(__NR_Linux +  64)
-#define __NR_shmdt			(__NR_Linux +  65)
-#define __NR_msgget			(__NR_Linux +  66)
-#define __NR_msgsnd			(__NR_Linux +  67)
-#define __NR_msgrcv			(__NR_Linux +  68)
-#define __NR_msgctl			(__NR_Linux +  69)
-#define __NR_fcntl			(__NR_Linux +  70)
-#define __NR_flock			(__NR_Linux +  71)
-#define __NR_fsync			(__NR_Linux +  72)
-#define __NR_fdatasync			(__NR_Linux +  73)
-#define __NR_truncate			(__NR_Linux +  74)
-#define __NR_ftruncate			(__NR_Linux +  75)
-#define __NR_getdents			(__NR_Linux +  76)
-#define __NR_getcwd			(__NR_Linux +  77)
-#define __NR_chdir			(__NR_Linux +  78)
-#define __NR_fchdir			(__NR_Linux +  79)
-#define __NR_rename			(__NR_Linux +  80)
-#define __NR_mkdir			(__NR_Linux +  81)
-#define __NR_rmdir			(__NR_Linux +  82)
-#define __NR_creat			(__NR_Linux +  83)
-#define __NR_link			(__NR_Linux +  84)
-#define __NR_unlink			(__NR_Linux +  85)
-#define __NR_symlink			(__NR_Linux +  86)
-#define __NR_readlink			(__NR_Linux +  87)
-#define __NR_chmod			(__NR_Linux +  88)
-#define __NR_fchmod			(__NR_Linux +  89)
-#define __NR_chown			(__NR_Linux +  90)
-#define __NR_fchown			(__NR_Linux +  91)
-#define __NR_lchown			(__NR_Linux +  92)
-#define __NR_umask			(__NR_Linux +  93)
-#define __NR_gettimeofday		(__NR_Linux +  94)
-#define __NR_getrlimit			(__NR_Linux +  95)
-#define __NR_getrusage			(__NR_Linux +  96)
-#define __NR_sysinfo			(__NR_Linux +  97)
-#define __NR_times			(__NR_Linux +  98)
-#define __NR_ptrace			(__NR_Linux +  99)
-#define __NR_getuid			(__NR_Linux + 100)
-#define __NR_syslog			(__NR_Linux + 101)
-#define __NR_getgid			(__NR_Linux + 102)
-#define __NR_setuid			(__NR_Linux + 103)
-#define __NR_setgid			(__NR_Linux + 104)
-#define __NR_geteuid			(__NR_Linux + 105)
-#define __NR_getegid			(__NR_Linux + 106)
-#define __NR_setpgid			(__NR_Linux + 107)
-#define __NR_getppid			(__NR_Linux + 108)
-#define __NR_getpgrp			(__NR_Linux + 109)
-#define __NR_setsid			(__NR_Linux + 110)
-#define __NR_setreuid			(__NR_Linux + 111)
-#define __NR_setregid			(__NR_Linux + 112)
-#define __NR_getgroups			(__NR_Linux + 113)
-#define __NR_setgroups			(__NR_Linux + 114)
-#define __NR_setresuid			(__NR_Linux + 115)
-#define __NR_getresuid			(__NR_Linux + 116)
-#define __NR_setresgid			(__NR_Linux + 117)
-#define __NR_getresgid			(__NR_Linux + 118)
-#define __NR_getpgid			(__NR_Linux + 119)
-#define __NR_setfsuid			(__NR_Linux + 120)
-#define __NR_setfsgid			(__NR_Linux + 121)
-#define __NR_getsid			(__NR_Linux + 122)
-#define __NR_capget			(__NR_Linux + 123)
-#define __NR_capset			(__NR_Linux + 124)
-#define __NR_rt_sigpending		(__NR_Linux + 125)
-#define __NR_rt_sigtimedwait		(__NR_Linux + 126)
-#define __NR_rt_sigqueueinfo		(__NR_Linux + 127)
-#define __NR_rt_sigsuspend		(__NR_Linux + 128)
-#define __NR_sigaltstack		(__NR_Linux + 129)
-#define __NR_utime			(__NR_Linux + 130)
-#define __NR_mknod			(__NR_Linux + 131)
-#define __NR_personality		(__NR_Linux + 132)
-#define __NR_ustat			(__NR_Linux + 133)
-#define __NR_statfs			(__NR_Linux + 134)
-#define __NR_fstatfs			(__NR_Linux + 135)
-#define __NR_sysfs			(__NR_Linux + 136)
-#define __NR_getpriority		(__NR_Linux + 137)
-#define __NR_setpriority		(__NR_Linux + 138)
-#define __NR_sched_setparam		(__NR_Linux + 139)
-#define __NR_sched_getparam		(__NR_Linux + 140)
-#define __NR_sched_setscheduler		(__NR_Linux + 141)
-#define __NR_sched_getscheduler		(__NR_Linux + 142)
-#define __NR_sched_get_priority_max	(__NR_Linux + 143)
-#define __NR_sched_get_priority_min	(__NR_Linux + 144)
-#define __NR_sched_rr_get_interval	(__NR_Linux + 145)
-#define __NR_mlock			(__NR_Linux + 146)
-#define __NR_munlock			(__NR_Linux + 147)
-#define __NR_mlockall			(__NR_Linux + 148)
-#define __NR_munlockall			(__NR_Linux + 149)
-#define __NR_vhangup			(__NR_Linux + 150)
-#define __NR_pivot_root			(__NR_Linux + 151)
-#define __NR__sysctl			(__NR_Linux + 152)
-#define __NR_prctl			(__NR_Linux + 153)
-#define __NR_adjtimex			(__NR_Linux + 154)
-#define __NR_setrlimit			(__NR_Linux + 155)
-#define __NR_chroot			(__NR_Linux + 156)
-#define __NR_sync			(__NR_Linux + 157)
-#define __NR_acct			(__NR_Linux + 158)
-#define __NR_settimeofday		(__NR_Linux + 159)
-#define __NR_mount			(__NR_Linux + 160)
-#define __NR_umount2			(__NR_Linux + 161)
-#define __NR_swapon			(__NR_Linux + 162)
-#define __NR_swapoff			(__NR_Linux + 163)
-#define __NR_reboot			(__NR_Linux + 164)
-#define __NR_sethostname		(__NR_Linux + 165)
-#define __NR_setdomainname		(__NR_Linux + 166)
-#define __NR_create_module		(__NR_Linux + 167)
-#define __NR_init_module		(__NR_Linux + 168)
-#define __NR_delete_module		(__NR_Linux + 169)
-#define __NR_get_kernel_syms		(__NR_Linux + 170)
-#define __NR_query_module		(__NR_Linux + 171)
-#define __NR_quotactl			(__NR_Linux + 172)
-#define __NR_nfsservctl			(__NR_Linux + 173)
-#define __NR_getpmsg			(__NR_Linux + 174)
-#define __NR_putpmsg			(__NR_Linux + 175)
-#define __NR_afs_syscall		(__NR_Linux + 176)
-#define __NR_reserved177		(__NR_Linux + 177)
-#define __NR_gettid			(__NR_Linux + 178)
-#define __NR_readahead			(__NR_Linux + 179)
-#define __NR_setxattr			(__NR_Linux + 180)
-#define __NR_lsetxattr			(__NR_Linux + 181)
-#define __NR_fsetxattr			(__NR_Linux + 182)
-#define __NR_getxattr			(__NR_Linux + 183)
-#define __NR_lgetxattr			(__NR_Linux + 184)
-#define __NR_fgetxattr			(__NR_Linux + 185)
-#define __NR_listxattr			(__NR_Linux + 186)
-#define __NR_llistxattr			(__NR_Linux + 187)
-#define __NR_flistxattr			(__NR_Linux + 188)
-#define __NR_removexattr		(__NR_Linux + 189)
-#define __NR_lremovexattr		(__NR_Linux + 190)
-#define __NR_fremovexattr		(__NR_Linux + 191)
-#define __NR_tkill			(__NR_Linux + 192)
-#define __NR_reserved193		(__NR_Linux + 193)
-#define __NR_futex			(__NR_Linux + 194)
-#define __NR_sched_setaffinity		(__NR_Linux + 195)
-#define __NR_sched_getaffinity		(__NR_Linux + 196)
-#define __NR_cacheflush			(__NR_Linux + 197)
-#define __NR_cachectl			(__NR_Linux + 198)
-#define __NR_sysmips			(__NR_Linux + 199)
-#define __NR_io_setup			(__NR_Linux + 200)
-#define __NR_io_destroy			(__NR_Linux + 201)
-#define __NR_io_getevents		(__NR_Linux + 202)
-#define __NR_io_submit			(__NR_Linux + 203)
-#define __NR_io_cancel			(__NR_Linux + 204)
-#define __NR_exit_group			(__NR_Linux + 205)
-#define __NR_lookup_dcookie		(__NR_Linux + 206)
-#define __NR_epoll_create		(__NR_Linux + 207)
-#define __NR_epoll_ctl			(__NR_Linux + 208)
-#define __NR_epoll_wait			(__NR_Linux + 209)
-#define __NR_remap_file_pages		(__NR_Linux + 210)
-#define __NR_rt_sigreturn		(__NR_Linux + 211)
-#define __NR_fcntl64			(__NR_Linux + 212)
-#define __NR_set_tid_address		(__NR_Linux + 213)
-#define __NR_restart_syscall		(__NR_Linux + 214)
-#define __NR_semtimedop			(__NR_Linux + 215)
-#define __NR_fadvise64			(__NR_Linux + 216)
-#define __NR_statfs64			(__NR_Linux + 217)
-#define __NR_fstatfs64			(__NR_Linux + 218)
-#define __NR_sendfile64			(__NR_Linux + 219)
-#define __NR_timer_create		(__NR_Linux + 220)
-#define __NR_timer_settime		(__NR_Linux + 221)
-#define __NR_timer_gettime		(__NR_Linux + 222)
-#define __NR_timer_getoverrun		(__NR_Linux + 223)
-#define __NR_timer_delete		(__NR_Linux + 224)
-#define __NR_clock_settime		(__NR_Linux + 225)
-#define __NR_clock_gettime		(__NR_Linux + 226)
-#define __NR_clock_getres		(__NR_Linux + 227)
-#define __NR_clock_nanosleep		(__NR_Linux + 228)
-#define __NR_tgkill			(__NR_Linux + 229)
-#define __NR_utimes			(__NR_Linux + 230)
-#define __NR_mbind			(__NR_Linux + 231)
-#define __NR_get_mempolicy		(__NR_Linux + 232)
-#define __NR_set_mempolicy		(__NR_Linux + 233)
-#define __NR_mq_open			(__NR_Linux + 234)
-#define __NR_mq_unlink			(__NR_Linux + 235)
-#define __NR_mq_timedsend		(__NR_Linux + 236)
-#define __NR_mq_timedreceive		(__NR_Linux + 237)
-#define __NR_mq_notify			(__NR_Linux + 238)
-#define __NR_mq_getsetattr		(__NR_Linux + 239)
-#define __NR_vserver			(__NR_Linux + 240)
-#define __NR_waitid			(__NR_Linux + 241)
-/* #define __NR_sys_setaltroot		(__NR_Linux + 242) */
-#define __NR_add_key			(__NR_Linux + 243)
-#define __NR_request_key		(__NR_Linux + 244)
-#define __NR_keyctl			(__NR_Linux + 245)
-#define __NR_set_thread_area		(__NR_Linux + 246)
-#define __NR_inotify_init		(__NR_Linux + 247)
-#define __NR_inotify_add_watch		(__NR_Linux + 248)
-#define __NR_inotify_rm_watch		(__NR_Linux + 249)
-#define __NR_migrate_pages		(__NR_Linux + 250)
-#define __NR_openat			(__NR_Linux + 251)
-#define __NR_mkdirat			(__NR_Linux + 252)
-#define __NR_mknodat			(__NR_Linux + 253)
-#define __NR_fchownat			(__NR_Linux + 254)
-#define __NR_futimesat			(__NR_Linux + 255)
-#define __NR_newfstatat			(__NR_Linux + 256)
-#define __NR_unlinkat			(__NR_Linux + 257)
-#define __NR_renameat			(__NR_Linux + 258)
-#define __NR_linkat			(__NR_Linux + 259)
-#define __NR_symlinkat			(__NR_Linux + 260)
-#define __NR_readlinkat			(__NR_Linux + 261)
-#define __NR_fchmodat			(__NR_Linux + 262)
-#define __NR_faccessat			(__NR_Linux + 263)
-#define __NR_pselect6			(__NR_Linux + 264)
-#define __NR_ppoll			(__NR_Linux + 265)
-#define __NR_unshare			(__NR_Linux + 266)
-#define __NR_splice			(__NR_Linux + 267)
-#define __NR_sync_file_range		(__NR_Linux + 268)
-#define __NR_tee			(__NR_Linux + 269)
-#define __NR_vmsplice			(__NR_Linux + 270)
-#define __NR_move_pages			(__NR_Linux + 271)
-#define __NR_set_robust_list		(__NR_Linux + 272)
-#define __NR_get_robust_list		(__NR_Linux + 273)
-#define __NR_kexec_load			(__NR_Linux + 274)
-#define __NR_getcpu			(__NR_Linux + 275)
-#define __NR_epoll_pwait		(__NR_Linux + 276)
-#define __NR_ioprio_set			(__NR_Linux + 277)
-#define __NR_ioprio_get			(__NR_Linux + 278)
-#define __NR_utimensat			(__NR_Linux + 279)
-#define __NR_signalfd			(__NR_Linux + 280)
-#define __NR_timerfd			(__NR_Linux + 281)
-#define __NR_eventfd			(__NR_Linux + 282)
-#define __NR_fallocate			(__NR_Linux + 283)
-#define __NR_timerfd_create		(__NR_Linux + 284)
-#define __NR_timerfd_gettime		(__NR_Linux + 285)
-#define __NR_timerfd_settime		(__NR_Linux + 286)
-#define __NR_signalfd4			(__NR_Linux + 287)
-#define __NR_eventfd2			(__NR_Linux + 288)
-#define __NR_epoll_create1		(__NR_Linux + 289)
-#define __NR_dup3			(__NR_Linux + 290)
-#define __NR_pipe2			(__NR_Linux + 291)
-#define __NR_inotify_init1		(__NR_Linux + 292)
-#define __NR_preadv			(__NR_Linux + 293)
-#define __NR_pwritev			(__NR_Linux + 294)
-#define __NR_rt_tgsigqueueinfo		(__NR_Linux + 295)
-#define __NR_perf_event_open		(__NR_Linux + 296)
-#define __NR_accept4			(__NR_Linux + 297)
-#define __NR_recvmmsg			(__NR_Linux + 298)
-#define __NR_getdents64			(__NR_Linux + 299)
-#define __NR_fanotify_init		(__NR_Linux + 300)
-#define __NR_fanotify_mark		(__NR_Linux + 301)
-#define __NR_prlimit64			(__NR_Linux + 302)
-#define __NR_name_to_handle_at		(__NR_Linux + 303)
-#define __NR_open_by_handle_at		(__NR_Linux + 304)
-#define __NR_clock_adjtime		(__NR_Linux + 305)
-#define __NR_syncfs			(__NR_Linux + 306)
-#define __NR_sendmmsg			(__NR_Linux + 307)
-#define __NR_setns			(__NR_Linux + 308)
-#define __NR_process_vm_readv		(__NR_Linux + 309)
-#define __NR_process_vm_writev		(__NR_Linux + 310)
-#define __NR_kcmp			(__NR_Linux + 311)
-#define __NR_finit_module		(__NR_Linux + 312)
-#define __NR_sched_setattr		(__NR_Linux + 313)
-#define __NR_sched_getattr		(__NR_Linux + 314)
-#define __NR_renameat2			(__NR_Linux + 315)
-#define __NR_seccomp			(__NR_Linux + 316)
-#define __NR_getrandom			(__NR_Linux + 317)
-#define __NR_memfd_create		(__NR_Linux + 318)
-#define __NR_bpf			(__NR_Linux + 319)
-#define __NR_execveat			(__NR_Linux + 320)
-#define __NR_userfaultfd		(__NR_Linux + 321)
-#define __NR_membarrier			(__NR_Linux + 322)
-#define __NR_mlock2			(__NR_Linux + 323)
-#define __NR_copy_file_range		(__NR_Linux + 324)
-#define __NR_preadv2			(__NR_Linux + 325)
-#define __NR_pwritev2			(__NR_Linux + 326)
-#define __NR_pkey_mprotect		(__NR_Linux + 327)
-#define __NR_pkey_alloc			(__NR_Linux + 328)
-#define __NR_pkey_free			(__NR_Linux + 329)
-#define __NR_statx			(__NR_Linux + 330)
-#define __NR_rseq			(__NR_Linux + 331)
-#define __NR_io_pgetevents		(__NR_Linux + 332)
-#define __NR_syscalls                   332
+#define __NR_Linux 6000
+#include <asm/unistd_n32.h>
 
 /*
  * Offset of the last N32 flavoured syscall
  */
-#define __NR_Linux_syscalls		__NR_syscalls
+#define __NR_Linux_syscalls             __NR_syscalls
 
 #endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
 
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
index 91d3c8c..6cefc4d 100644
--- a/arch/mips/kernel/scall32-o32.S
+++ b/arch/mips/kernel/scall32-o32.S
@@ -208,387 +208,4 @@ einval: li	v0, -ENOSYS
 	jr	ra
 	END(sys_syscall)
 
-	.align	2
-	.type	sys_call_table, @object
-EXPORT(sys_call_table)
-	PTR	sys_syscall			/* 4000 */
-	PTR	sys_exit
-	PTR	__sys_fork
-	PTR	sys_read
-	PTR	sys_write
-	PTR	sys_open			/* 4005 */
-	PTR	sys_close
-	PTR	sys_waitpid
-	PTR	sys_creat
-	PTR	sys_link
-	PTR	sys_unlink			/* 4010 */
-	PTR	sys_execve
-	PTR	sys_chdir
-	PTR	sys_time
-	PTR	sys_mknod
-	PTR	sys_chmod			/* 4015 */
-	PTR	sys_lchown
-	PTR	sys_ni_syscall
-	PTR	sys_ni_syscall			/* was sys_stat */
-	PTR	sys_lseek
-	PTR	sys_getpid			/* 4020 */
-	PTR	sys_mount
-	PTR	sys_oldumount
-	PTR	sys_setuid
-	PTR	sys_getuid
-	PTR	sys_stime			/* 4025 */
-	PTR	sys_ptrace
-	PTR	sys_alarm
-	PTR	sys_ni_syscall			/* was sys_fstat */
-	PTR	sys_pause
-	PTR	sys_utime			/* 4030 */
-	PTR	sys_ni_syscall
-	PTR	sys_ni_syscall
-	PTR	sys_access
-	PTR	sys_nice
-	PTR	sys_ni_syscall			/* 4035 */
-	PTR	sys_sync
-	PTR	sys_kill
-	PTR	sys_rename
-	PTR	sys_mkdir
-	PTR	sys_rmdir			/* 4040 */
-	PTR	sys_dup
-	PTR	sysm_pipe
-	PTR	sys_times
-	PTR	sys_ni_syscall
-	PTR	sys_brk				/* 4045 */
-	PTR	sys_setgid
-	PTR	sys_getgid
-	PTR	sys_ni_syscall			/* was signal(2) */
-	PTR	sys_geteuid
-	PTR	sys_getegid			/* 4050 */
-	PTR	sys_acct
-	PTR	sys_umount
-	PTR	sys_ni_syscall
-	PTR	sys_ioctl
-	PTR	sys_fcntl			/* 4055 */
-	PTR	sys_ni_syscall
-	PTR	sys_setpgid
-	PTR	sys_ni_syscall
-	PTR	sys_olduname
-	PTR	sys_umask			/* 4060 */
-	PTR	sys_chroot
-	PTR	sys_ustat
-	PTR	sys_dup2
-	PTR	sys_getppid
-	PTR	sys_getpgrp			/* 4065 */
-	PTR	sys_setsid
-	PTR	sys_sigaction
-	PTR	sys_sgetmask
-	PTR	sys_ssetmask
-	PTR	sys_setreuid			/* 4070 */
-	PTR	sys_setregid
-	PTR	sys_sigsuspend
-	PTR	sys_sigpending
-	PTR	sys_sethostname
-	PTR	sys_setrlimit			/* 4075 */
-	PTR	sys_getrlimit
-	PTR	sys_getrusage
-	PTR	sys_gettimeofday
-	PTR	sys_settimeofday
-	PTR	sys_getgroups			/* 4080 */
-	PTR	sys_setgroups
-	PTR	sys_ni_syscall			/* old_select */
-	PTR	sys_symlink
-	PTR	sys_ni_syscall			/* was sys_lstat */
-	PTR	sys_readlink			/* 4085 */
-	PTR	sys_uselib
-	PTR	sys_swapon
-	PTR	sys_reboot
-	PTR	sys_old_readdir
-	PTR	sys_mips_mmap			/* 4090 */
-	PTR	sys_munmap
-	PTR	sys_truncate
-	PTR	sys_ftruncate
-	PTR	sys_fchmod
-	PTR	sys_fchown			/* 4095 */
-	PTR	sys_getpriority
-	PTR	sys_setpriority
-	PTR	sys_ni_syscall
-	PTR	sys_statfs
-	PTR	sys_fstatfs			/* 4100 */
-	PTR	sys_ni_syscall			/* was ioperm(2) */
-	PTR	sys_socketcall
-	PTR	sys_syslog
-	PTR	sys_setitimer
-	PTR	sys_getitimer			/* 4105 */
-	PTR	sys_newstat
-	PTR	sys_newlstat
-	PTR	sys_newfstat
-	PTR	sys_uname
-	PTR	sys_ni_syscall			/* 4110 was iopl(2) */
-	PTR	sys_vhangup
-	PTR	sys_ni_syscall			/* was sys_idle() */
-	PTR	sys_ni_syscall			/* was sys_vm86 */
-	PTR	sys_wait4
-	PTR	sys_swapoff			/* 4115 */
-	PTR	sys_sysinfo
-	PTR	sys_ipc
-	PTR	sys_fsync
-	PTR	sys_sigreturn
-	PTR	__sys_clone			/* 4120 */
-	PTR	sys_setdomainname
-	PTR	sys_newuname
-	PTR	sys_ni_syscall			/* sys_modify_ldt */
-	PTR	sys_adjtimex
-	PTR	sys_mprotect			/* 4125 */
-	PTR	sys_sigprocmask
-	PTR	sys_ni_syscall			/* was create_module */
-	PTR	sys_init_module
-	PTR	sys_delete_module
-	PTR	sys_ni_syscall			/* 4130 was get_kernel_syms */
-	PTR	sys_quotactl
-	PTR	sys_getpgid
-	PTR	sys_fchdir
-	PTR	sys_bdflush
-	PTR	sys_sysfs			/* 4135 */
-	PTR	sys_personality
-	PTR	sys_ni_syscall			/* for afs_syscall */
-	PTR	sys_setfsuid
-	PTR	sys_setfsgid
-	PTR	sys_llseek			/* 4140 */
-	PTR	sys_getdents
-	PTR	sys_select
-	PTR	sys_flock
-	PTR	sys_msync
-	PTR	sys_readv			/* 4145 */
-	PTR	sys_writev
-	PTR	sys_cacheflush
-	PTR	sys_cachectl
-	PTR	__sys_sysmips
-	PTR	sys_ni_syscall			/* 4150 */
-	PTR	sys_getsid
-	PTR	sys_fdatasync
-	PTR	sys_sysctl
-	PTR	sys_mlock
-	PTR	sys_munlock			/* 4155 */
-	PTR	sys_mlockall
-	PTR	sys_munlockall
-	PTR	sys_sched_setparam
-	PTR	sys_sched_getparam
-	PTR	sys_sched_setscheduler		/* 4160 */
-	PTR	sys_sched_getscheduler
-	PTR	sys_sched_yield
-	PTR	sys_sched_get_priority_max
-	PTR	sys_sched_get_priority_min
-	PTR	sys_sched_rr_get_interval	/* 4165 */
-	PTR	sys_nanosleep
-	PTR	sys_mremap
-	PTR	sys_accept
-	PTR	sys_bind
-	PTR	sys_connect			/* 4170 */
-	PTR	sys_getpeername
-	PTR	sys_getsockname
-	PTR	sys_getsockopt
-	PTR	sys_listen
-	PTR	sys_recv			/* 4175 */
-	PTR	sys_recvfrom
-	PTR	sys_recvmsg
-	PTR	sys_send
-	PTR	sys_sendmsg
-	PTR	sys_sendto			/* 4180 */
-	PTR	sys_setsockopt
-	PTR	sys_shutdown
-	PTR	sys_socket
-	PTR	sys_socketpair
-	PTR	sys_setresuid			/* 4185 */
-	PTR	sys_getresuid
-	PTR	sys_ni_syscall			/* was sys_query_module */
-	PTR	sys_poll
-	PTR	sys_ni_syscall			/* was nfsservctl */
-	PTR	sys_setresgid			/* 4190 */
-	PTR	sys_getresgid
-	PTR	sys_prctl
-	PTR	sys_rt_sigreturn
-	PTR	sys_rt_sigaction
-	PTR	sys_rt_sigprocmask		/* 4195 */
-	PTR	sys_rt_sigpending
-	PTR	sys_rt_sigtimedwait
-	PTR	sys_rt_sigqueueinfo
-	PTR	sys_rt_sigsuspend
-	PTR	sys_pread64			/* 4200 */
-	PTR	sys_pwrite64
-	PTR	sys_chown
-	PTR	sys_getcwd
-	PTR	sys_capget
-	PTR	sys_capset			/* 4205 */
-	PTR	sys_sigaltstack
-	PTR	sys_sendfile
-	PTR	sys_ni_syscall
-	PTR	sys_ni_syscall
-	PTR	sys_mips_mmap2			/* 4210 */
-	PTR	sys_truncate64
-	PTR	sys_ftruncate64
-	PTR	sys_stat64
-	PTR	sys_lstat64
-	PTR	sys_fstat64			/* 4215 */
-	PTR	sys_pivot_root
-	PTR	sys_mincore
-	PTR	sys_madvise
-	PTR	sys_getdents64
-	PTR	sys_fcntl64			/* 4220 */
-	PTR	sys_ni_syscall
-	PTR	sys_gettid
-	PTR	sys_readahead
-	PTR	sys_setxattr
-	PTR	sys_lsetxattr			/* 4225 */
-	PTR	sys_fsetxattr
-	PTR	sys_getxattr
-	PTR	sys_lgetxattr
-	PTR	sys_fgetxattr
-	PTR	sys_listxattr			/* 4230 */
-	PTR	sys_llistxattr
-	PTR	sys_flistxattr
-	PTR	sys_removexattr
-	PTR	sys_lremovexattr
-	PTR	sys_fremovexattr		/* 4235 */
-	PTR	sys_tkill
-	PTR	sys_sendfile64
-	PTR	sys_futex
-#ifdef CONFIG_MIPS_MT_FPAFF
-	/*
-	 * For FPU affinity scheduling on MIPS MT processors, we need to
-	 * intercept sys_sched_xxxaffinity() calls until we get a proper hook
-	 * in kernel/sched/core.c.  Considered only temporary we only support
-	 * these hooks for the 32-bit kernel - there is no MIPS64 MT processor
-	 * atm.
-	 */
-	PTR	mipsmt_sys_sched_setaffinity
-	PTR	mipsmt_sys_sched_getaffinity
-#else
-	PTR	sys_sched_setaffinity
-	PTR	sys_sched_getaffinity		/* 4240 */
-#endif /* CONFIG_MIPS_MT_FPAFF */
-	PTR	sys_io_setup
-	PTR	sys_io_destroy
-	PTR	sys_io_getevents
-	PTR	sys_io_submit
-	PTR	sys_io_cancel			/* 4245 */
-	PTR	sys_exit_group
-	PTR	sys_lookup_dcookie
-	PTR	sys_epoll_create
-	PTR	sys_epoll_ctl
-	PTR	sys_epoll_wait			/* 4250 */
-	PTR	sys_remap_file_pages
-	PTR	sys_set_tid_address
-	PTR	sys_restart_syscall
-	PTR	sys_fadvise64_64
-	PTR	sys_statfs64			/* 4255 */
-	PTR	sys_fstatfs64
-	PTR	sys_timer_create
-	PTR	sys_timer_settime
-	PTR	sys_timer_gettime
-	PTR	sys_timer_getoverrun		/* 4260 */
-	PTR	sys_timer_delete
-	PTR	sys_clock_settime
-	PTR	sys_clock_gettime
-	PTR	sys_clock_getres
-	PTR	sys_clock_nanosleep		/* 4265 */
-	PTR	sys_tgkill
-	PTR	sys_utimes
-	PTR	sys_mbind
-	PTR	sys_get_mempolicy
-	PTR	sys_set_mempolicy		/* 4270 */
-	PTR	sys_mq_open
-	PTR	sys_mq_unlink
-	PTR	sys_mq_timedsend
-	PTR	sys_mq_timedreceive
-	PTR	sys_mq_notify			/* 4275 */
-	PTR	sys_mq_getsetattr
-	PTR	sys_ni_syscall			/* sys_vserver */
-	PTR	sys_waitid
-	PTR	sys_ni_syscall			/* available, was setaltroot */
-	PTR	sys_add_key			/* 4280 */
-	PTR	sys_request_key
-	PTR	sys_keyctl
-	PTR	sys_set_thread_area
-	PTR	sys_inotify_init
-	PTR	sys_inotify_add_watch		/* 4285 */
-	PTR	sys_inotify_rm_watch
-	PTR	sys_migrate_pages
-	PTR	sys_openat
-	PTR	sys_mkdirat
-	PTR	sys_mknodat			/* 4290 */
-	PTR	sys_fchownat
-	PTR	sys_futimesat
-	PTR	sys_fstatat64
-	PTR	sys_unlinkat
-	PTR	sys_renameat			/* 4295 */
-	PTR	sys_linkat
-	PTR	sys_symlinkat
-	PTR	sys_readlinkat
-	PTR	sys_fchmodat
-	PTR	sys_faccessat			/* 4300 */
-	PTR	sys_pselect6
-	PTR	sys_ppoll
-	PTR	sys_unshare
-	PTR	sys_splice
-	PTR	sys_sync_file_range		/* 4305 */
-	PTR	sys_tee
-	PTR	sys_vmsplice
-	PTR	sys_move_pages
-	PTR	sys_set_robust_list
-	PTR	sys_get_robust_list		/* 4310 */
-	PTR	sys_kexec_load
-	PTR	sys_getcpu
-	PTR	sys_epoll_pwait
-	PTR	sys_ioprio_set
-	PTR	sys_ioprio_get			/* 4315 */
-	PTR	sys_utimensat
-	PTR	sys_signalfd
-	PTR	sys_ni_syscall			/* was timerfd */
-	PTR	sys_eventfd
-	PTR	sys_fallocate			/* 4320 */
-	PTR	sys_timerfd_create
-	PTR	sys_timerfd_gettime
-	PTR	sys_timerfd_settime
-	PTR	sys_signalfd4
-	PTR	sys_eventfd2			/* 4325 */
-	PTR	sys_epoll_create1
-	PTR	sys_dup3
-	PTR	sys_pipe2
-	PTR	sys_inotify_init1
-	PTR	sys_preadv			/* 4330 */
-	PTR	sys_pwritev
-	PTR	sys_rt_tgsigqueueinfo
-	PTR	sys_perf_event_open
-	PTR	sys_accept4
-	PTR	sys_recvmmsg			/* 4335 */
-	PTR	sys_fanotify_init
-	PTR	sys_fanotify_mark
-	PTR	sys_prlimit64
-	PTR	sys_name_to_handle_at
-	PTR	sys_open_by_handle_at		/* 4340 */
-	PTR	sys_clock_adjtime
-	PTR	sys_syncfs
-	PTR	sys_sendmmsg
-	PTR	sys_setns
-	PTR	sys_process_vm_readv		/* 4345 */
-	PTR	sys_process_vm_writev
-	PTR	sys_kcmp
-	PTR	sys_finit_module
-	PTR	sys_sched_setattr
-	PTR	sys_sched_getattr		/* 4350 */
-	PTR	sys_renameat2
-	PTR	sys_seccomp
-	PTR	sys_getrandom
-	PTR	sys_memfd_create
-	PTR	sys_bpf				/* 4355 */
-	PTR	sys_execveat
-	PTR	sys_userfaultfd
-	PTR	sys_membarrier
-	PTR	sys_mlock2
-	PTR	sys_copy_file_range		/* 4360 */
-	PTR	sys_preadv2
-	PTR	sys_pwritev2
-	PTR	sys_pkey_mprotect
-	PTR	sys_pkey_alloc
-	PTR	sys_pkey_free			/* 4365 */
-	PTR	sys_statx
-	PTR	sys_rseq
-	PTR	sys_io_pgetevents
+#include "syscall_table_32_o32.S"
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S
index 358d959..bcc31de 100644
--- a/arch/mips/kernel/scall64-64.S
+++ b/arch/mips/kernel/scall64-64.S
@@ -109,336 +109,4 @@ illegal_syscall:
 	j	n64_syscall_exit
 	END(handle_sys64)
 
-	.align	3
-	.type	sys_call_table, @object
-EXPORT(sys_call_table)
-	PTR	sys_read			/* 5000 */
-	PTR	sys_write
-	PTR	sys_open
-	PTR	sys_close
-	PTR	sys_newstat
-	PTR	sys_newfstat			/* 5005 */
-	PTR	sys_newlstat
-	PTR	sys_poll
-	PTR	sys_lseek
-	PTR	sys_mips_mmap
-	PTR	sys_mprotect			/* 5010 */
-	PTR	sys_munmap
-	PTR	sys_brk
-	PTR	sys_rt_sigaction
-	PTR	sys_rt_sigprocmask
-	PTR	sys_ioctl			/* 5015 */
-	PTR	sys_pread64
-	PTR	sys_pwrite64
-	PTR	sys_readv
-	PTR	sys_writev
-	PTR	sys_access			/* 5020 */
-	PTR	sysm_pipe
-	PTR	sys_select
-	PTR	sys_sched_yield
-	PTR	sys_mremap
-	PTR	sys_msync			/* 5025 */
-	PTR	sys_mincore
-	PTR	sys_madvise
-	PTR	sys_shmget
-	PTR	sys_shmat
-	PTR	sys_shmctl			/* 5030 */
-	PTR	sys_dup
-	PTR	sys_dup2
-	PTR	sys_pause
-	PTR	sys_nanosleep
-	PTR	sys_getitimer			/* 5035 */
-	PTR	sys_setitimer
-	PTR	sys_alarm
-	PTR	sys_getpid
-	PTR	sys_sendfile64
-	PTR	sys_socket			/* 5040 */
-	PTR	sys_connect
-	PTR	sys_accept
-	PTR	sys_sendto
-	PTR	sys_recvfrom
-	PTR	sys_sendmsg			/* 5045 */
-	PTR	sys_recvmsg
-	PTR	sys_shutdown
-	PTR	sys_bind
-	PTR	sys_listen
-	PTR	sys_getsockname			/* 5050 */
-	PTR	sys_getpeername
-	PTR	sys_socketpair
-	PTR	sys_setsockopt
-	PTR	sys_getsockopt
-	PTR	__sys_clone			/* 5055 */
-	PTR	__sys_fork
-	PTR	sys_execve
-	PTR	sys_exit
-	PTR	sys_wait4
-	PTR	sys_kill			/* 5060 */
-	PTR	sys_newuname
-	PTR	sys_semget
-	PTR	sys_semop
-	PTR	sys_semctl
-	PTR	sys_shmdt			/* 5065 */
-	PTR	sys_msgget
-	PTR	sys_msgsnd
-	PTR	sys_msgrcv
-	PTR	sys_msgctl
-	PTR	sys_fcntl			/* 5070 */
-	PTR	sys_flock
-	PTR	sys_fsync
-	PTR	sys_fdatasync
-	PTR	sys_truncate
-	PTR	sys_ftruncate			/* 5075 */
-	PTR	sys_getdents
-	PTR	sys_getcwd
-	PTR	sys_chdir
-	PTR	sys_fchdir
-	PTR	sys_rename			/* 5080 */
-	PTR	sys_mkdir
-	PTR	sys_rmdir
-	PTR	sys_creat
-	PTR	sys_link
-	PTR	sys_unlink			/* 5085 */
-	PTR	sys_symlink
-	PTR	sys_readlink
-	PTR	sys_chmod
-	PTR	sys_fchmod
-	PTR	sys_chown			/* 5090 */
-	PTR	sys_fchown
-	PTR	sys_lchown
-	PTR	sys_umask
-	PTR	sys_gettimeofday
-	PTR	sys_getrlimit			/* 5095 */
-	PTR	sys_getrusage
-	PTR	sys_sysinfo
-	PTR	sys_times
-	PTR	sys_ptrace
-	PTR	sys_getuid			/* 5100 */
-	PTR	sys_syslog
-	PTR	sys_getgid
-	PTR	sys_setuid
-	PTR	sys_setgid
-	PTR	sys_geteuid			/* 5105 */
-	PTR	sys_getegid
-	PTR	sys_setpgid
-	PTR	sys_getppid
-	PTR	sys_getpgrp
-	PTR	sys_setsid			/* 5110 */
-	PTR	sys_setreuid
-	PTR	sys_setregid
-	PTR	sys_getgroups
-	PTR	sys_setgroups
-	PTR	sys_setresuid			/* 5115 */
-	PTR	sys_getresuid
-	PTR	sys_setresgid
-	PTR	sys_getresgid
-	PTR	sys_getpgid
-	PTR	sys_setfsuid			/* 5120 */
-	PTR	sys_setfsgid
-	PTR	sys_getsid
-	PTR	sys_capget
-	PTR	sys_capset
-	PTR	sys_rt_sigpending		/* 5125 */
-	PTR	sys_rt_sigtimedwait
-	PTR	sys_rt_sigqueueinfo
-	PTR	sys_rt_sigsuspend
-	PTR	sys_sigaltstack
-	PTR	sys_utime			/* 5130 */
-	PTR	sys_mknod
-	PTR	sys_personality
-	PTR	sys_ustat
-	PTR	sys_statfs
-	PTR	sys_fstatfs			/* 5135 */
-	PTR	sys_sysfs
-	PTR	sys_getpriority
-	PTR	sys_setpriority
-	PTR	sys_sched_setparam
-	PTR	sys_sched_getparam		/* 5140 */
-	PTR	sys_sched_setscheduler
-	PTR	sys_sched_getscheduler
-	PTR	sys_sched_get_priority_max
-	PTR	sys_sched_get_priority_min
-	PTR	sys_sched_rr_get_interval	/* 5145 */
-	PTR	sys_mlock
-	PTR	sys_munlock
-	PTR	sys_mlockall
-	PTR	sys_munlockall
-	PTR	sys_vhangup			/* 5150 */
-	PTR	sys_pivot_root
-	PTR	sys_sysctl
-	PTR	sys_prctl
-	PTR	sys_adjtimex
-	PTR	sys_setrlimit			/* 5155 */
-	PTR	sys_chroot
-	PTR	sys_sync
-	PTR	sys_acct
-	PTR	sys_settimeofday
-	PTR	sys_mount			/* 5160 */
-	PTR	sys_umount
-	PTR	sys_swapon
-	PTR	sys_swapoff
-	PTR	sys_reboot
-	PTR	sys_sethostname			/* 5165 */
-	PTR	sys_setdomainname
-	PTR	sys_ni_syscall			/* was create_module */
-	PTR	sys_init_module
-	PTR	sys_delete_module
-	PTR	sys_ni_syscall			/* 5170, was get_kernel_syms */
-	PTR	sys_ni_syscall			/* was query_module */
-	PTR	sys_quotactl
-	PTR	sys_ni_syscall			/* was nfsservctl */
-	PTR	sys_ni_syscall			/* res. for getpmsg */
-	PTR	sys_ni_syscall			/* 5175	 for putpmsg */
-	PTR	sys_ni_syscall			/* res. for afs_syscall */
-	PTR	sys_ni_syscall			/* res. for security */
-	PTR	sys_gettid
-	PTR	sys_readahead
-	PTR	sys_setxattr			/* 5180 */
-	PTR	sys_lsetxattr
-	PTR	sys_fsetxattr
-	PTR	sys_getxattr
-	PTR	sys_lgetxattr
-	PTR	sys_fgetxattr			/* 5185 */
-	PTR	sys_listxattr
-	PTR	sys_llistxattr
-	PTR	sys_flistxattr
-	PTR	sys_removexattr
-	PTR	sys_lremovexattr		/* 5190 */
-	PTR	sys_fremovexattr
-	PTR	sys_tkill
-	PTR	sys_ni_syscall
-	PTR	sys_futex
-	PTR	sys_sched_setaffinity		/* 5195 */
-	PTR	sys_sched_getaffinity
-	PTR	sys_cacheflush
-	PTR	sys_cachectl
-	PTR	__sys_sysmips
-	PTR	sys_io_setup			/* 5200 */
-	PTR	sys_io_destroy
-	PTR	sys_io_getevents
-	PTR	sys_io_submit
-	PTR	sys_io_cancel
-	PTR	sys_exit_group			/* 5205 */
-	PTR	sys_lookup_dcookie
-	PTR	sys_epoll_create
-	PTR	sys_epoll_ctl
-	PTR	sys_epoll_wait
-	PTR	sys_remap_file_pages		/* 5210 */
-	PTR	sys_rt_sigreturn
-	PTR	sys_set_tid_address
-	PTR	sys_restart_syscall
-	PTR	sys_semtimedop
-	PTR	sys_fadvise64_64		/* 5215 */
-	PTR	sys_timer_create
-	PTR	sys_timer_settime
-	PTR	sys_timer_gettime
-	PTR	sys_timer_getoverrun
-	PTR	sys_timer_delete		/* 5220 */
-	PTR	sys_clock_settime
-	PTR	sys_clock_gettime
-	PTR	sys_clock_getres
-	PTR	sys_clock_nanosleep
-	PTR	sys_tgkill			/* 5225 */
-	PTR	sys_utimes
-	PTR	sys_mbind
-	PTR	sys_get_mempolicy
-	PTR	sys_set_mempolicy
-	PTR	sys_mq_open			/* 5230 */
-	PTR	sys_mq_unlink
-	PTR	sys_mq_timedsend
-	PTR	sys_mq_timedreceive
-	PTR	sys_mq_notify
-	PTR	sys_mq_getsetattr		/* 5235 */
-	PTR	sys_ni_syscall			/* sys_vserver */
-	PTR	sys_waitid
-	PTR	sys_ni_syscall			/* available, was setaltroot */
-	PTR	sys_add_key
-	PTR	sys_request_key			/* 5240 */
-	PTR	sys_keyctl
-	PTR	sys_set_thread_area
-	PTR	sys_inotify_init
-	PTR	sys_inotify_add_watch
-	PTR	sys_inotify_rm_watch		/* 5245 */
-	PTR	sys_migrate_pages
-	PTR	sys_openat
-	PTR	sys_mkdirat
-	PTR	sys_mknodat
-	PTR	sys_fchownat			/* 5250 */
-	PTR	sys_futimesat
-	PTR	sys_newfstatat
-	PTR	sys_unlinkat
-	PTR	sys_renameat
-	PTR	sys_linkat			/* 5255 */
-	PTR	sys_symlinkat
-	PTR	sys_readlinkat
-	PTR	sys_fchmodat
-	PTR	sys_faccessat
-	PTR	sys_pselect6			/* 5260 */
-	PTR	sys_ppoll
-	PTR	sys_unshare
-	PTR	sys_splice
-	PTR	sys_sync_file_range
-	PTR	sys_tee				/* 5265 */
-	PTR	sys_vmsplice
-	PTR	sys_move_pages
-	PTR	sys_set_robust_list
-	PTR	sys_get_robust_list
-	PTR	sys_kexec_load			/* 5270 */
-	PTR	sys_getcpu
-	PTR	sys_epoll_pwait
-	PTR	sys_ioprio_set
-	PTR	sys_ioprio_get
-	PTR	sys_utimensat			/* 5275 */
-	PTR	sys_signalfd
-	PTR	sys_ni_syscall			/* was timerfd */
-	PTR	sys_eventfd
-	PTR	sys_fallocate
-	PTR	sys_timerfd_create		/* 5280 */
-	PTR	sys_timerfd_gettime
-	PTR	sys_timerfd_settime
-	PTR	sys_signalfd4
-	PTR	sys_eventfd2
-	PTR	sys_epoll_create1		/* 5285 */
-	PTR	sys_dup3
-	PTR	sys_pipe2
-	PTR	sys_inotify_init1
-	PTR	sys_preadv
-	PTR	sys_pwritev			/* 5290 */
-	PTR	sys_rt_tgsigqueueinfo
-	PTR	sys_perf_event_open
-	PTR	sys_accept4
-	PTR	sys_recvmmsg
-	PTR	sys_fanotify_init		/* 5295 */
-	PTR	sys_fanotify_mark
-	PTR	sys_prlimit64
-	PTR	sys_name_to_handle_at
-	PTR	sys_open_by_handle_at
-	PTR	sys_clock_adjtime		/* 5300 */
-	PTR	sys_syncfs
-	PTR	sys_sendmmsg
-	PTR	sys_setns
-	PTR	sys_process_vm_readv
-	PTR	sys_process_vm_writev		/* 5305 */
-	PTR	sys_kcmp
-	PTR	sys_finit_module
-	PTR	sys_getdents64
-	PTR	sys_sched_setattr
-	PTR	sys_sched_getattr		/* 5310 */
-	PTR	sys_renameat2
-	PTR	sys_seccomp
-	PTR	sys_getrandom
-	PTR	sys_memfd_create
-	PTR	sys_bpf				/* 5315 */
-	PTR	sys_execveat
-	PTR	sys_userfaultfd
-	PTR	sys_membarrier
-	PTR	sys_mlock2
-	PTR	sys_copy_file_range		/* 5320 */
-	PTR	sys_preadv2
-	PTR	sys_pwritev2
-	PTR	sys_pkey_mprotect
-	PTR	sys_pkey_alloc
-	PTR	sys_pkey_free			/* 5325 */
-	PTR	sys_statx
-	PTR	sys_rseq
-	PTR	sys_io_pgetevents
-	.size	sys_call_table,.-sys_call_table
+#include "syscall_table_64_64.S"
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S
index c65eaac..33c0376 100644
--- a/arch/mips/kernel/scall64-n32.S
+++ b/arch/mips/kernel/scall64-n32.S
@@ -101,339 +101,4 @@ not_n32_scall:
 
 	END(handle_sysn32)
 
-	.type	sysn32_call_table, @object
-EXPORT(sysn32_call_table)
-	PTR	sys_read			/* 6000 */
-	PTR	sys_write
-	PTR	sys_open
-	PTR	sys_close
-	PTR	sys_newstat
-	PTR	sys_newfstat			/* 6005 */
-	PTR	sys_newlstat
-	PTR	sys_poll
-	PTR	sys_lseek
-	PTR	sys_mips_mmap
-	PTR	sys_mprotect			/* 6010 */
-	PTR	sys_munmap
-	PTR	sys_brk
-	PTR	compat_sys_rt_sigaction
-	PTR	compat_sys_rt_sigprocmask
-	PTR	compat_sys_ioctl		/* 6015 */
-	PTR	sys_pread64
-	PTR	sys_pwrite64
-	PTR	compat_sys_readv
-	PTR	compat_sys_writev
-	PTR	sys_access			/* 6020 */
-	PTR	sysm_pipe
-	PTR	compat_sys_select
-	PTR	sys_sched_yield
-	PTR	sys_mremap
-	PTR	sys_msync			/* 6025 */
-	PTR	sys_mincore
-	PTR	sys_madvise
-	PTR	sys_shmget
-	PTR	sys_shmat
-	PTR	compat_sys_shmctl			/* 6030 */
-	PTR	sys_dup
-	PTR	sys_dup2
-	PTR	sys_pause
-	PTR	compat_sys_nanosleep
-	PTR	compat_sys_getitimer		/* 6035 */
-	PTR	compat_sys_setitimer
-	PTR	sys_alarm
-	PTR	sys_getpid
-	PTR	compat_sys_sendfile
-	PTR	sys_socket			/* 6040 */
-	PTR	sys_connect
-	PTR	sys_accept
-	PTR	sys_sendto
-	PTR	compat_sys_recvfrom
-	PTR	compat_sys_sendmsg		/* 6045 */
-	PTR	compat_sys_recvmsg
-	PTR	sys_shutdown
-	PTR	sys_bind
-	PTR	sys_listen
-	PTR	sys_getsockname			/* 6050 */
-	PTR	sys_getpeername
-	PTR	sys_socketpair
-	PTR	compat_sys_setsockopt
-	PTR	compat_sys_getsockopt
-	PTR	__sys_clone			/* 6055 */
-	PTR	__sys_fork
-	PTR	compat_sys_execve
-	PTR	sys_exit
-	PTR	compat_sys_wait4
-	PTR	sys_kill			/* 6060 */
-	PTR	sys_newuname
-	PTR	sys_semget
-	PTR	sys_semop
-	PTR	compat_sys_semctl
-	PTR	sys_shmdt			/* 6065 */
-	PTR	sys_msgget
-	PTR	compat_sys_msgsnd
-	PTR	compat_sys_msgrcv
-	PTR	compat_sys_msgctl
-	PTR	compat_sys_fcntl		/* 6070 */
-	PTR	sys_flock
-	PTR	sys_fsync
-	PTR	sys_fdatasync
-	PTR	sys_truncate
-	PTR	sys_ftruncate			/* 6075 */
-	PTR	compat_sys_getdents
-	PTR	sys_getcwd
-	PTR	sys_chdir
-	PTR	sys_fchdir
-	PTR	sys_rename			/* 6080 */
-	PTR	sys_mkdir
-	PTR	sys_rmdir
-	PTR	sys_creat
-	PTR	sys_link
-	PTR	sys_unlink			/* 6085 */
-	PTR	sys_symlink
-	PTR	sys_readlink
-	PTR	sys_chmod
-	PTR	sys_fchmod
-	PTR	sys_chown			/* 6090 */
-	PTR	sys_fchown
-	PTR	sys_lchown
-	PTR	sys_umask
-	PTR	compat_sys_gettimeofday
-	PTR	compat_sys_getrlimit		/* 6095 */
-	PTR	compat_sys_getrusage
-	PTR	compat_sys_sysinfo
-	PTR	compat_sys_times
-	PTR	compat_sys_ptrace
-	PTR	sys_getuid			/* 6100 */
-	PTR	sys_syslog
-	PTR	sys_getgid
-	PTR	sys_setuid
-	PTR	sys_setgid
-	PTR	sys_geteuid			/* 6105 */
-	PTR	sys_getegid
-	PTR	sys_setpgid
-	PTR	sys_getppid
-	PTR	sys_getpgrp
-	PTR	sys_setsid			/* 6110 */
-	PTR	sys_setreuid
-	PTR	sys_setregid
-	PTR	sys_getgroups
-	PTR	sys_setgroups
-	PTR	sys_setresuid			/* 6115 */
-	PTR	sys_getresuid
-	PTR	sys_setresgid
-	PTR	sys_getresgid
-	PTR	sys_getpgid
-	PTR	sys_setfsuid			/* 6120 */
-	PTR	sys_setfsgid
-	PTR	sys_getsid
-	PTR	sys_capget
-	PTR	sys_capset
-	PTR	compat_sys_rt_sigpending	/* 6125 */
-	PTR	compat_sys_rt_sigtimedwait
-	PTR	compat_sys_rt_sigqueueinfo
-	PTR	compat_sys_rt_sigsuspend
-	PTR	compat_sys_sigaltstack
-	PTR	compat_sys_utime		/* 6130 */
-	PTR	sys_mknod
-	PTR	sys_32_personality
-	PTR	compat_sys_ustat
-	PTR	compat_sys_statfs
-	PTR	compat_sys_fstatfs		/* 6135 */
-	PTR	sys_sysfs
-	PTR	sys_getpriority
-	PTR	sys_setpriority
-	PTR	sys_sched_setparam
-	PTR	sys_sched_getparam		/* 6140 */
-	PTR	sys_sched_setscheduler
-	PTR	sys_sched_getscheduler
-	PTR	sys_sched_get_priority_max
-	PTR	sys_sched_get_priority_min
-	PTR	compat_sys_sched_rr_get_interval	/* 6145 */
-	PTR	sys_mlock
-	PTR	sys_munlock
-	PTR	sys_mlockall
-	PTR	sys_munlockall
-	PTR	sys_vhangup			/* 6150 */
-	PTR	sys_pivot_root
-	PTR	compat_sys_sysctl
-	PTR	sys_prctl
-	PTR	compat_sys_adjtimex
-	PTR	compat_sys_setrlimit		/* 6155 */
-	PTR	sys_chroot
-	PTR	sys_sync
-	PTR	sys_acct
-	PTR	compat_sys_settimeofday
-	PTR	compat_sys_mount		/* 6160 */
-	PTR	sys_umount
-	PTR	sys_swapon
-	PTR	sys_swapoff
-	PTR	sys_reboot
-	PTR	sys_sethostname			/* 6165 */
-	PTR	sys_setdomainname
-	PTR	sys_ni_syscall			/* was create_module */
-	PTR	sys_init_module
-	PTR	sys_delete_module
-	PTR	sys_ni_syscall			/* 6170, was get_kernel_syms */
-	PTR	sys_ni_syscall			/* was query_module */
-	PTR	sys_quotactl
-	PTR	sys_ni_syscall			/* was nfsservctl */
-	PTR	sys_ni_syscall			/* res. for getpmsg */
-	PTR	sys_ni_syscall			/* 6175	 for putpmsg */
-	PTR	sys_ni_syscall			/* res. for afs_syscall */
-	PTR	sys_ni_syscall			/* res. for security */
-	PTR	sys_gettid
-	PTR	sys_readahead
-	PTR	sys_setxattr			/* 6180 */
-	PTR	sys_lsetxattr
-	PTR	sys_fsetxattr
-	PTR	sys_getxattr
-	PTR	sys_lgetxattr
-	PTR	sys_fgetxattr			/* 6185 */
-	PTR	sys_listxattr
-	PTR	sys_llistxattr
-	PTR	sys_flistxattr
-	PTR	sys_removexattr
-	PTR	sys_lremovexattr		/* 6190 */
-	PTR	sys_fremovexattr
-	PTR	sys_tkill
-	PTR	sys_ni_syscall
-	PTR	compat_sys_futex
-	PTR	compat_sys_sched_setaffinity	/* 6195 */
-	PTR	compat_sys_sched_getaffinity
-	PTR	sys_cacheflush
-	PTR	sys_cachectl
-	PTR	__sys_sysmips
-	PTR	compat_sys_io_setup			/* 6200 */
-	PTR	sys_io_destroy
-	PTR	compat_sys_io_getevents
-	PTR	compat_sys_io_submit
-	PTR	sys_io_cancel
-	PTR	sys_exit_group			/* 6205 */
-	PTR	sys_lookup_dcookie
-	PTR	sys_epoll_create
-	PTR	sys_epoll_ctl
-	PTR	sys_epoll_wait
-	PTR	sys_remap_file_pages		/* 6210 */
-	PTR	sysn32_rt_sigreturn
-	PTR	compat_sys_fcntl64
-	PTR	sys_set_tid_address
-	PTR	sys_restart_syscall
-	PTR	compat_sys_semtimedop			/* 6215 */
-	PTR	sys_fadvise64_64
-	PTR	compat_sys_statfs64
-	PTR	compat_sys_fstatfs64
-	PTR	sys_sendfile64
-	PTR	compat_sys_timer_create		/* 6220 */
-	PTR	compat_sys_timer_settime
-	PTR	compat_sys_timer_gettime
-	PTR	sys_timer_getoverrun
-	PTR	sys_timer_delete
-	PTR	compat_sys_clock_settime		/* 6225 */
-	PTR	compat_sys_clock_gettime
-	PTR	compat_sys_clock_getres
-	PTR	compat_sys_clock_nanosleep
-	PTR	sys_tgkill
-	PTR	compat_sys_utimes		/* 6230 */
-	PTR	compat_sys_mbind
-	PTR	compat_sys_get_mempolicy
-	PTR	compat_sys_set_mempolicy
-	PTR	compat_sys_mq_open
-	PTR	sys_mq_unlink			/* 6235 */
-	PTR	compat_sys_mq_timedsend
-	PTR	compat_sys_mq_timedreceive
-	PTR	compat_sys_mq_notify
-	PTR	compat_sys_mq_getsetattr
-	PTR	sys_ni_syscall			/* 6240, sys_vserver */
-	PTR	compat_sys_waitid
-	PTR	sys_ni_syscall			/* available, was setaltroot */
-	PTR	sys_add_key
-	PTR	sys_request_key
-	PTR	compat_sys_keyctl		/* 6245 */
-	PTR	sys_set_thread_area
-	PTR	sys_inotify_init
-	PTR	sys_inotify_add_watch
-	PTR	sys_inotify_rm_watch
-	PTR	compat_sys_migrate_pages	/* 6250 */
-	PTR	sys_openat
-	PTR	sys_mkdirat
-	PTR	sys_mknodat
-	PTR	sys_fchownat
-	PTR	compat_sys_futimesat		/* 6255 */
-	PTR	sys_newfstatat
-	PTR	sys_unlinkat
-	PTR	sys_renameat
-	PTR	sys_linkat
-	PTR	sys_symlinkat			/* 6260 */
-	PTR	sys_readlinkat
-	PTR	sys_fchmodat
-	PTR	sys_faccessat
-	PTR	compat_sys_pselect6
-	PTR	compat_sys_ppoll		/* 6265 */
-	PTR	sys_unshare
-	PTR	sys_splice
-	PTR	sys_sync_file_range
-	PTR	sys_tee
-	PTR	compat_sys_vmsplice		/* 6270 */
-	PTR	compat_sys_move_pages
-	PTR	compat_sys_set_robust_list
-	PTR	compat_sys_get_robust_list
-	PTR	compat_sys_kexec_load
-	PTR	sys_getcpu			/* 6275 */
-	PTR	compat_sys_epoll_pwait
-	PTR	sys_ioprio_set
-	PTR	sys_ioprio_get
-	PTR	compat_sys_utimensat
-	PTR	compat_sys_signalfd		/* 6280 */
-	PTR	sys_ni_syscall			/* was timerfd */
-	PTR	sys_eventfd
-	PTR	sys_fallocate
-	PTR	sys_timerfd_create
-	PTR	compat_sys_timerfd_gettime	/* 6285 */
-	PTR	compat_sys_timerfd_settime
-	PTR	compat_sys_signalfd4
-	PTR	sys_eventfd2
-	PTR	sys_epoll_create1
-	PTR	sys_dup3			/* 6290 */
-	PTR	sys_pipe2
-	PTR	sys_inotify_init1
-	PTR	compat_sys_preadv
-	PTR	compat_sys_pwritev
-	PTR	compat_sys_rt_tgsigqueueinfo	/* 6295 */
-	PTR	sys_perf_event_open
-	PTR	sys_accept4
-	PTR	compat_sys_recvmmsg
-	PTR	sys_getdents64
-	PTR	sys_fanotify_init		/* 6300 */
-	PTR	sys_fanotify_mark
-	PTR	sys_prlimit64
-	PTR	sys_name_to_handle_at
-	PTR	sys_open_by_handle_at
-	PTR	compat_sys_clock_adjtime	/* 6305 */
-	PTR	sys_syncfs
-	PTR	compat_sys_sendmmsg
-	PTR	sys_setns
-	PTR	compat_sys_process_vm_readv
-	PTR	compat_sys_process_vm_writev	/* 6310 */
-	PTR	sys_kcmp
-	PTR	sys_finit_module
-	PTR	sys_sched_setattr
-	PTR	sys_sched_getattr
-	PTR	sys_renameat2			/* 6315 */
-	PTR	sys_seccomp
-	PTR	sys_getrandom
-	PTR	sys_memfd_create
-	PTR	sys_bpf
-	PTR	compat_sys_execveat		/* 6320 */
-	PTR	sys_userfaultfd
-	PTR	sys_membarrier
-	PTR	sys_mlock2
-	PTR	sys_copy_file_range
-	PTR	compat_sys_preadv2		/* 6325 */
-	PTR	compat_sys_pwritev2
-	PTR	sys_pkey_mprotect
-	PTR	sys_pkey_alloc
-	PTR	sys_pkey_free
-	PTR	sys_statx			/* 6330 */
-	PTR	sys_rseq
-	PTR	compat_sys_io_pgetevents
-	.size	sysn32_call_table,.-sysn32_call_table
+#include "syscall_table_64_n32.S"
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index 73913f0..35359bd 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -213,376 +213,4 @@ einval: li	v0, -ENOSYS
 	jr	ra
 	END(sys32_syscall)
 
-	.align	3
-	.type	sys32_call_table,@object
-EXPORT(sys32_call_table)
-	PTR	sys32_syscall			/* 4000 */
-	PTR	sys_exit
-	PTR	__sys_fork
-	PTR	sys_read
-	PTR	sys_write
-	PTR	compat_sys_open			/* 4005 */
-	PTR	sys_close
-	PTR	sys_waitpid
-	PTR	sys_creat
-	PTR	sys_link
-	PTR	sys_unlink			/* 4010 */
-	PTR	compat_sys_execve
-	PTR	sys_chdir
-	PTR	compat_sys_time
-	PTR	sys_mknod
-	PTR	sys_chmod			/* 4015 */
-	PTR	sys_lchown
-	PTR	sys_ni_syscall
-	PTR	sys_ni_syscall			/* was sys_stat */
-	PTR	sys_lseek
-	PTR	sys_getpid			/* 4020 */
-	PTR	compat_sys_mount
-	PTR	sys_oldumount
-	PTR	sys_setuid
-	PTR	sys_getuid
-	PTR	compat_sys_stime		/* 4025 */
-	PTR	compat_sys_ptrace
-	PTR	sys_alarm
-	PTR	sys_ni_syscall			/* was sys_fstat */
-	PTR	sys_pause
-	PTR	compat_sys_utime		/* 4030 */
-	PTR	sys_ni_syscall
-	PTR	sys_ni_syscall
-	PTR	sys_access
-	PTR	sys_nice
-	PTR	sys_ni_syscall			/* 4035 */
-	PTR	sys_sync
-	PTR	sys_kill
-	PTR	sys_rename
-	PTR	sys_mkdir
-	PTR	sys_rmdir			/* 4040 */
-	PTR	sys_dup
-	PTR	sysm_pipe
-	PTR	compat_sys_times
-	PTR	sys_ni_syscall
-	PTR	sys_brk				/* 4045 */
-	PTR	sys_setgid
-	PTR	sys_getgid
-	PTR	sys_ni_syscall			/* was signal	2 */
-	PTR	sys_geteuid
-	PTR	sys_getegid			/* 4050 */
-	PTR	sys_acct
-	PTR	sys_umount
-	PTR	sys_ni_syscall
-	PTR	compat_sys_ioctl
-	PTR	compat_sys_fcntl		/* 4055 */
-	PTR	sys_ni_syscall
-	PTR	sys_setpgid
-	PTR	sys_ni_syscall
-	PTR	sys_olduname
-	PTR	sys_umask			/* 4060 */
-	PTR	sys_chroot
-	PTR	compat_sys_ustat
-	PTR	sys_dup2
-	PTR	sys_getppid
-	PTR	sys_getpgrp			/* 4065 */
-	PTR	sys_setsid
-	PTR	sys_32_sigaction
-	PTR	sys_sgetmask
-	PTR	sys_ssetmask
-	PTR	sys_setreuid			/* 4070 */
-	PTR	sys_setregid
-	PTR	sys32_sigsuspend
-	PTR	compat_sys_sigpending
-	PTR	sys_sethostname
-	PTR	compat_sys_setrlimit		/* 4075 */
-	PTR	compat_sys_getrlimit
-	PTR	compat_sys_getrusage
-	PTR	compat_sys_gettimeofday
-	PTR	compat_sys_settimeofday
-	PTR	sys_getgroups			/* 4080 */
-	PTR	sys_setgroups
-	PTR	sys_ni_syscall			/* old_select */
-	PTR	sys_symlink
-	PTR	sys_ni_syscall			/* was sys_lstat */
-	PTR	sys_readlink			/* 4085 */
-	PTR	sys_uselib
-	PTR	sys_swapon
-	PTR	sys_reboot
-	PTR	compat_sys_old_readdir
-	PTR	sys_mips_mmap			/* 4090 */
-	PTR	sys_munmap
-	PTR	compat_sys_truncate
-	PTR	compat_sys_ftruncate
-	PTR	sys_fchmod
-	PTR	sys_fchown			/* 4095 */
-	PTR	sys_getpriority
-	PTR	sys_setpriority
-	PTR	sys_ni_syscall
-	PTR	compat_sys_statfs
-	PTR	compat_sys_fstatfs		/* 4100 */
-	PTR	sys_ni_syscall			/* sys_ioperm */
-	PTR	compat_sys_socketcall
-	PTR	sys_syslog
-	PTR	compat_sys_setitimer
-	PTR	compat_sys_getitimer		/* 4105 */
-	PTR	compat_sys_newstat
-	PTR	compat_sys_newlstat
-	PTR	compat_sys_newfstat
-	PTR	sys_uname
-	PTR	sys_ni_syscall			/* sys_ioperm  *//* 4110 */
-	PTR	sys_vhangup
-	PTR	sys_ni_syscall			/* was sys_idle	 */
-	PTR	sys_ni_syscall			/* sys_vm86 */
-	PTR	compat_sys_wait4
-	PTR	sys_swapoff			/* 4115 */
-	PTR	compat_sys_sysinfo
-	PTR	compat_sys_ipc
-	PTR	sys_fsync
-	PTR	sys32_sigreturn
-	PTR	__sys_clone			/* 4120 */
-	PTR	sys_setdomainname
-	PTR	sys_newuname
-	PTR	sys_ni_syscall			/* sys_modify_ldt */
-	PTR	compat_sys_adjtimex
-	PTR	sys_mprotect			/* 4125 */
-	PTR	compat_sys_sigprocmask
-	PTR	sys_ni_syscall			/* was creat_module */
-	PTR	sys_init_module
-	PTR	sys_delete_module
-	PTR	sys_ni_syscall			/* 4130, get_kernel_syms */
-	PTR	sys_quotactl
-	PTR	sys_getpgid
-	PTR	sys_fchdir
-	PTR	sys_bdflush
-	PTR	sys_sysfs			/* 4135 */
-	PTR	sys_32_personality
-	PTR	sys_ni_syscall			/* for afs_syscall */
-	PTR	sys_setfsuid
-	PTR	sys_setfsgid
-	PTR	sys_32_llseek			/* 4140 */
-	PTR	compat_sys_getdents
-	PTR	compat_sys_select
-	PTR	sys_flock
-	PTR	sys_msync
-	PTR	compat_sys_readv		/* 4145 */
-	PTR	compat_sys_writev
-	PTR	sys_cacheflush
-	PTR	sys_cachectl
-	PTR	__sys_sysmips
-	PTR	sys_ni_syscall			/* 4150 */
-	PTR	sys_getsid
-	PTR	sys_fdatasync
-	PTR	compat_sys_sysctl
-	PTR	sys_mlock
-	PTR	sys_munlock			/* 4155 */
-	PTR	sys_mlockall
-	PTR	sys_munlockall
-	PTR	sys_sched_setparam
-	PTR	sys_sched_getparam
-	PTR	sys_sched_setscheduler		/* 4160 */
-	PTR	sys_sched_getscheduler
-	PTR	sys_sched_yield
-	PTR	sys_sched_get_priority_max
-	PTR	sys_sched_get_priority_min
-	PTR	compat_sys_sched_rr_get_interval	/* 4165 */
-	PTR	compat_sys_nanosleep
-	PTR	sys_mremap
-	PTR	sys_accept
-	PTR	sys_bind
-	PTR	sys_connect			/* 4170 */
-	PTR	sys_getpeername
-	PTR	sys_getsockname
-	PTR	compat_sys_getsockopt
-	PTR	sys_listen
-	PTR	compat_sys_recv			/* 4175 */
-	PTR	compat_sys_recvfrom
-	PTR	compat_sys_recvmsg
-	PTR	sys_send
-	PTR	compat_sys_sendmsg
-	PTR	sys_sendto			/* 4180 */
-	PTR	compat_sys_setsockopt
-	PTR	sys_shutdown
-	PTR	sys_socket
-	PTR	sys_socketpair
-	PTR	sys_setresuid			/* 4185 */
-	PTR	sys_getresuid
-	PTR	sys_ni_syscall			/* was query_module */
-	PTR	sys_poll
-	PTR	sys_ni_syscall			/* was nfsservctl */
-	PTR	sys_setresgid			/* 4190 */
-	PTR	sys_getresgid
-	PTR	sys_prctl
-	PTR	sys32_rt_sigreturn
-	PTR	compat_sys_rt_sigaction
-	PTR	compat_sys_rt_sigprocmask	/* 4195 */
-	PTR	compat_sys_rt_sigpending
-	PTR	compat_sys_rt_sigtimedwait
-	PTR	compat_sys_rt_sigqueueinfo
-	PTR	compat_sys_rt_sigsuspend
-	PTR	sys_32_pread			/* 4200 */
-	PTR	sys_32_pwrite
-	PTR	sys_chown
-	PTR	sys_getcwd
-	PTR	sys_capget
-	PTR	sys_capset			/* 4205 */
-	PTR	compat_sys_sigaltstack
-	PTR	compat_sys_sendfile
-	PTR	sys_ni_syscall
-	PTR	sys_ni_syscall
-	PTR	sys_mips_mmap2			/* 4210 */
-	PTR	sys_32_truncate64
-	PTR	sys_32_ftruncate64
-	PTR	sys_newstat
-	PTR	sys_newlstat
-	PTR	sys_newfstat			/* 4215 */
-	PTR	sys_pivot_root
-	PTR	sys_mincore
-	PTR	sys_madvise
-	PTR	sys_getdents64
-	PTR	compat_sys_fcntl64		/* 4220 */
-	PTR	sys_ni_syscall
-	PTR	sys_gettid
-	PTR	sys32_readahead
-	PTR	sys_setxattr
-	PTR	sys_lsetxattr			/* 4225 */
-	PTR	sys_fsetxattr
-	PTR	sys_getxattr
-	PTR	sys_lgetxattr
-	PTR	sys_fgetxattr
-	PTR	sys_listxattr			/* 4230 */
-	PTR	sys_llistxattr
-	PTR	sys_flistxattr
-	PTR	sys_removexattr
-	PTR	sys_lremovexattr
-	PTR	sys_fremovexattr		/* 4235 */
-	PTR	sys_tkill
-	PTR	sys_sendfile64
-	PTR	compat_sys_futex
-	PTR	compat_sys_sched_setaffinity
-	PTR	compat_sys_sched_getaffinity	/* 4240 */
-	PTR	compat_sys_io_setup
-	PTR	sys_io_destroy
-	PTR	compat_sys_io_getevents
-	PTR	compat_sys_io_submit
-	PTR	sys_io_cancel			/* 4245 */
-	PTR	sys_exit_group
-	PTR	compat_sys_lookup_dcookie
-	PTR	sys_epoll_create
-	PTR	sys_epoll_ctl
-	PTR	sys_epoll_wait			/* 4250 */
-	PTR	sys_remap_file_pages
-	PTR	sys_set_tid_address
-	PTR	sys_restart_syscall
-	PTR	sys32_fadvise64_64
-	PTR	compat_sys_statfs64		/* 4255 */
-	PTR	compat_sys_fstatfs64
-	PTR	compat_sys_timer_create
-	PTR	compat_sys_timer_settime
-	PTR	compat_sys_timer_gettime
-	PTR	sys_timer_getoverrun		/* 4260 */
-	PTR	sys_timer_delete
-	PTR	compat_sys_clock_settime
-	PTR	compat_sys_clock_gettime
-	PTR	compat_sys_clock_getres
-	PTR	compat_sys_clock_nanosleep	/* 4265 */
-	PTR	sys_tgkill
-	PTR	compat_sys_utimes
-	PTR	compat_sys_mbind
-	PTR	compat_sys_get_mempolicy
-	PTR	compat_sys_set_mempolicy	/* 4270 */
-	PTR	compat_sys_mq_open
-	PTR	sys_mq_unlink
-	PTR	compat_sys_mq_timedsend
-	PTR	compat_sys_mq_timedreceive
-	PTR	compat_sys_mq_notify		/* 4275 */
-	PTR	compat_sys_mq_getsetattr
-	PTR	sys_ni_syscall			/* sys_vserver */
-	PTR	compat_sys_waitid
-	PTR	sys_ni_syscall			/* available, was setaltroot */
-	PTR	sys_add_key			/* 4280 */
-	PTR	sys_request_key
-	PTR	compat_sys_keyctl
-	PTR	sys_set_thread_area
-	PTR	sys_inotify_init
-	PTR	sys_inotify_add_watch		/* 4285 */
-	PTR	sys_inotify_rm_watch
-	PTR	compat_sys_migrate_pages
-	PTR	compat_sys_openat
-	PTR	sys_mkdirat
-	PTR	sys_mknodat			/* 4290 */
-	PTR	sys_fchownat
-	PTR	compat_sys_futimesat
-	PTR	sys_newfstatat
-	PTR	sys_unlinkat
-	PTR	sys_renameat			/* 4295 */
-	PTR	sys_linkat
-	PTR	sys_symlinkat
-	PTR	sys_readlinkat
-	PTR	sys_fchmodat
-	PTR	sys_faccessat			/* 4300 */
-	PTR	compat_sys_pselect6
-	PTR	compat_sys_ppoll
-	PTR	sys_unshare
-	PTR	sys_splice
-	PTR	sys32_sync_file_range		/* 4305 */
-	PTR	sys_tee
-	PTR	compat_sys_vmsplice
-	PTR	compat_sys_move_pages
-	PTR	compat_sys_set_robust_list
-	PTR	compat_sys_get_robust_list	/* 4310 */
-	PTR	compat_sys_kexec_load
-	PTR	sys_getcpu
-	PTR	compat_sys_epoll_pwait
-	PTR	sys_ioprio_set
-	PTR	sys_ioprio_get			/* 4315 */
-	PTR	compat_sys_utimensat
-	PTR	compat_sys_signalfd
-	PTR	sys_ni_syscall			/* was timerfd */
-	PTR	sys_eventfd
-	PTR	sys32_fallocate			/* 4320 */
-	PTR	sys_timerfd_create
-	PTR	compat_sys_timerfd_gettime
-	PTR	compat_sys_timerfd_settime
-	PTR	compat_sys_signalfd4
-	PTR	sys_eventfd2			/* 4325 */
-	PTR	sys_epoll_create1
-	PTR	sys_dup3
-	PTR	sys_pipe2
-	PTR	sys_inotify_init1
-	PTR	compat_sys_preadv		/* 4330 */
-	PTR	compat_sys_pwritev
-	PTR	compat_sys_rt_tgsigqueueinfo
-	PTR	sys_perf_event_open
-	PTR	sys_accept4
-	PTR	compat_sys_recvmmsg		/* 4335 */
-	PTR	sys_fanotify_init
-	PTR	compat_sys_fanotify_mark
-	PTR	sys_prlimit64
-	PTR	sys_name_to_handle_at
-	PTR	compat_sys_open_by_handle_at	/* 4340 */
-	PTR	compat_sys_clock_adjtime
-	PTR	sys_syncfs
-	PTR	compat_sys_sendmmsg
-	PTR	sys_setns
-	PTR	compat_sys_process_vm_readv	/* 4345 */
-	PTR	compat_sys_process_vm_writev
-	PTR	sys_kcmp
-	PTR	sys_finit_module
-	PTR	sys_sched_setattr
-	PTR	sys_sched_getattr		/* 4350 */
-	PTR	sys_renameat2
-	PTR	sys_seccomp
-	PTR	sys_getrandom
-	PTR	sys_memfd_create
-	PTR	sys_bpf				/* 4355 */
-	PTR	compat_sys_execveat
-	PTR	sys_userfaultfd
-	PTR	sys_membarrier
-	PTR	sys_mlock2
-	PTR	sys_copy_file_range		/* 4360 */
-	PTR	compat_sys_preadv2
-	PTR	compat_sys_pwritev2
-	PTR	sys_pkey_mprotect
-	PTR	sys_pkey_alloc
-	PTR	sys_pkey_free			/* 4365 */
-	PTR	sys_statx
-	PTR	sys_rseq
-	PTR	compat_sys_io_pgetevents
-	.size	sys32_call_table,.-sys32_call_table
+#include "syscall_table_64_o32.S"
diff --git a/arch/mips/kernel/syscall_table_32_o32.S b/arch/mips/kernel/syscall_table_32_o32.S
new file mode 100644
index 0000000..88c4bc6
--- /dev/null
+++ b/arch/mips/kernel/syscall_table_32_o32.S
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#define __SYSCALL(nr, entry, nargs) PTR entry
+	
+.align	2
+.type	sys_call_table, @object
+EXPORT(sys_call_table)
+#include <asm/syscall_table_32_o32.h>
diff --git a/arch/mips/kernel/syscall_table_64_64.S b/arch/mips/kernel/syscall_table_64_64.S
new file mode 100644
index 0000000..ae9d930
--- /dev/null
+++ b/arch/mips/kernel/syscall_table_64_64.S
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#define __SYSCALL(nr, entry, nargs) PTR entry
+	
+.align	3
+.type	sys_call_table, @object
+EXPORT(sys_call_table)
+#include <asm/syscall_table_64_64.h>
+.size	sys_call_table,.-sys_call_table
diff --git a/arch/mips/kernel/syscall_table_64_n32.S b/arch/mips/kernel/syscall_table_64_n32.S
new file mode 100644
index 0000000..50e9f09
--- /dev/null
+++ b/arch/mips/kernel/syscall_table_64_n32.S
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#define __SYSCALL(nr, entry, nargs) PTR entry
+	
+.type	sysn32_call_table, @object
+EXPORT(sysn32_call_table)
+#include <asm/syscall_table_64_n32.h>
+.size	sysn32_call_table,.-sysn32_call_table
diff --git a/arch/mips/kernel/syscall_table_64_o32.S b/arch/mips/kernel/syscall_table_64_o32.S
new file mode 100644
index 0000000..4b294ba
--- /dev/null
+++ b/arch/mips/kernel/syscall_table_64_o32.S
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#define __SYSCALL(nr, entry, nargs) PTR entry
+	
+.align	3
+.type	sys32_call_table,@object
+EXPORT(sys32_call_table)
+#include <asm/syscall_table_64_o32.h>
+.size	sys32_call_table,.-sys32_call_table
-- 
1.9.1


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

* Re: [PATCH 2/3] mips: Add system call table generation support
  2018-09-14  8:38 ` [PATCH 2/3] mips: Add system call table generation support Firoz Khan
@ 2018-09-14  9:58   ` Arnd Bergmann
  2018-09-18 11:57     ` Firoz Khan
  0 siblings, 1 reply; 20+ messages in thread
From: Arnd Bergmann @ 2018-09-14  9:58 UTC (permalink / raw)
  To: Firoz Khan
  Cc: Hauke Mehrtens, Rafał Miłecki,
	open list:RALINK MIPS ARCHITECTURE, Ralf Baechle, Paul Burton,
	James Hogan, gregkh, Philippe Ombredanne, Thomas Gleixner,
	Kate Stewart, y2038 Mailman List, Linux Kernel Mailing List,
	linux-arch, Deepa Dinamani, Marcin Juszkiewicz

On Fri, Sep 14, 2018 at 10:39 AM Firoz Khan <firoz.khan@linaro.org> wrote:
>
> The system call tables are in different format in all
> architecture and it will be difficult to manually add or
> modify the system calls in the respective files. To make
> it easy by keeping a script and which'll generate the
> header file and syscall table file so this change will
> unify them across all architectures.
>
> The system call table generation script is added in
> syscalls directory which contain the script to generate
> both uapi header file system call table generation file
> and syscall_32/64.tbl file which'll be the input for the
> scripts.

I think it would be best to name the files
o32/n64/n32 instead of 32/64/n32

It would also be helpful to mention why the n32/n64
files cannot be combined into one nfile here.


> +364     32      pkey_alloc                      sys_pkey_alloc
> +365     32      pkey_free                       sys_pkey_free
> +366     32      statx                           sys_statx

You missed the additon of rseq and io_pgetevetns here.

       Arnd

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

* Re: [PATCH 3/3] mips: uapi header and system call table file generation
  2018-09-14  8:38 ` [PATCH 3/3] mips: uapi header and system call table file generation Firoz Khan
@ 2018-09-14 12:55   ` kbuild test robot
  0 siblings, 0 replies; 20+ messages in thread
From: kbuild test robot @ 2018-09-14 12:55 UTC (permalink / raw)
  To: Firoz Khan
  Cc: kbuild-all, Hauke Mehrtens, Rafał Miłecki, linux-mips,
	Ralf Baechle, Paul Burton, James Hogan, Greg Kroah-Hartman,
	Philippe Ombredanne, Thomas Gleixner, Kate Stewart, y2038,
	linux-kernel, linux-arch, arnd, deepa.kernel, marcin.juszkiewicz,
	firoz.khan

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

Hi Firoz,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v4.19-rc3 next-20180913]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Firoz-Khan/mips-Add-__NR_syscalls-macro-in-uapi-asm-unistd-h/20180914-184600
config: mips-allnoconfig (attached as .config)
compiler: mips-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=7.2.0 make.cross ARCH=mips 

All errors (new ones prefixed by >>):

   arch/mips/kernel/scall32-o32.o: In function `einval':
>> (.text+0x678): undefined reference to `mipsmt_sys_sched_setaffinity'
>> (.text+0x67c): undefined reference to `mipsmt_sys_sched_getaffinity'

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 6041 bytes --]

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

* Re: [PATCH 0/3] System call table generation support
  2018-09-14  8:38 [PATCH 0/3] System call table generation support Firoz Khan
                   ` (2 preceding siblings ...)
  2018-09-14  8:38 ` [PATCH 3/3] mips: uapi header and system call table file generation Firoz Khan
@ 2018-09-17 17:17 ` Paul Burton
  2018-09-18 14:13   ` Firoz Khan
  2018-09-20 14:52   ` Arnd Bergmann
  3 siblings, 2 replies; 20+ messages in thread
From: Paul Burton @ 2018-09-17 17:17 UTC (permalink / raw)
  To: Firoz Khan
  Cc: Hauke Mehrtens, Rafał Miłecki, linux-mips,
	Ralf Baechle, James Hogan, Greg Kroah-Hartman,
	Philippe Ombredanne, Thomas Gleixner, Kate Stewart, y2038,
	linux-kernel, linux-arch, arnd, deepa.kernel, marcin.juszkiewicz

Hi Firoz,

On Fri, Sep 14, 2018 at 02:08:31PM +0530, Firoz Khan wrote:
> The purpose of this patch series is:
> 1. We can easily add/modify/delete system call by changing entry 
> in syscall.tbl file. No need to manually edit many files.
> 
> 2. It is easy to unify the system call implementation across all 
> the architectures. 
> 
> The system call tables are in different format in all architecture 
> and it will be difficult to manually add or modify the system calls
> in the respective files manually. To make it easy by keeping a script 
> and which'll generate the header file and syscall table file so this 
> change will unify them across all architectures.

Interesting :)

I actually started on something similar recently with the goals of
reducing the need to adjust both asm/unistd.h & the syscall entry tables
when adding syscalls, clean up asm/unistd.h a bit & make it
easier/cleaner to add support for nanoMIPS & the P32 ABI.

My branch still needed some work but it's here if you're interested:

    git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git wip-mips-syscalls

    https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/log/?h=wip-mips-syscalls

There are some differences:

  - I'd placed syscall numbers the 3 current MIPS ABIs in one table,
    rather than splitting it up. I can see pros & cons to both though so
    I'm not tied to having a single all-encompassing table.

  - I'd mostly inferred the entry point names from the syscall names,
    only specifying them where they differ. Again I'm not particularly
    tied to this.

  - I'd made asm/unistd.h behave like asm-generic/unistd.h with the
    __SYSCALL() macro, where you generate separate syscall_table_*
    headers. I'm fine with that too.

So I'm pretty happy to go with your series, though I agree with Arnd on
the ABI/file naming & the missing syscalls that were added in the 4.18
cycle. We probably need to provide mipsmt_sys_sched_[gs]etaffinity as
aliases to sys_sched_[gs]etaffinity when CONFIG_MIPS_MT_FPAFF isn't
enabled in order to fix the issue the kbuild test robot reported.

But I'm looking forward to v2 :)

Thanks,
    Paul

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

* Re: [PATCH 2/3] mips: Add system call table generation support
  2018-09-14  9:58   ` Arnd Bergmann
@ 2018-09-18 11:57     ` Firoz Khan
  0 siblings, 0 replies; 20+ messages in thread
From: Firoz Khan @ 2018-09-18 11:57 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Hauke Mehrtens, Rafał Miłecki,
	open list:RALINK MIPS ARCHITECTURE, Ralf Baechle, Paul Burton,
	James Hogan, gregkh, Philippe Ombredanne, Thomas Gleixner,
	Kate Stewart, y2038 Mailman List, Linux Kernel Mailing List,
	linux-arch, Deepa Dinamani, Marcin Juszkiewicz

On 14 September 2018 at 15:28, Arnd Bergmann <arnd@arndb.de> wrote:
> On Fri, Sep 14, 2018 at 10:39 AM Firoz Khan <firoz.khan@linaro.org> wrote:
>>
>> The system call tables are in different format in all
>> architecture and it will be difficult to manually add or
>> modify the system calls in the respective files. To make
>> it easy by keeping a script and which'll generate the
>> header file and syscall table file so this change will
>> unify them across all architectures.
>>
>> The system call table generation script is added in
>> syscalls directory which contain the script to generate
>> both uapi header file system call table generation file
>> and syscall_32/64.tbl file which'll be the input for the
>> scripts.
>
> I think it would be best to name the files
> o32/n64/n32 instead of 32/64/n32

This is an easy fix. I'll make it in the next version.

>
> It would also be helpful to mention why the n32/n64
> files cannot be combined into one nfile here.

Sure.

>
>
>> +364     32      pkey_alloc                      sys_pkey_alloc
>> +365     32      pkey_free                       sys_pkey_free
>> +366     32      statx                           sys_statx
>
> You missed the additon of rseq and io_pgetevetns here.

As I mentioned in the cover letter:
"I started working system call table generation on 4.17-rc1. I used
marcin's script - https://github.com/hrw/syscalls-table to generate
the syscall.tbl file. And this will be the input to the system call
table generation script. But there are couple system call got add
in the latest rc release. If run Marcin's script on latest release,
It will generate a new syscall.tbl. But I still use the old file -
syscall.tbl and once all review got over I'll update syscall.tbl
alone w.r.to the tip of the kernel. The impact of this thing, few
of the system call won't work."

Hopefully, the next version does have this change. Thanks!

- Firoz

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

* Re: [PATCH 0/3] System call table generation support
  2018-09-17 17:17 ` [PATCH 0/3] System call table generation support Paul Burton
@ 2018-09-18 14:13   ` Firoz Khan
  2018-09-20 14:52   ` Arnd Bergmann
  1 sibling, 0 replies; 20+ messages in thread
From: Firoz Khan @ 2018-09-18 14:13 UTC (permalink / raw)
  To: Paul Burton
  Cc: Hauke Mehrtens, Rafał Miłecki, linux-mips,
	Ralf Baechle, James Hogan, Greg Kroah-Hartman,
	Philippe Ombredanne, Thomas Gleixner, Kate Stewart, y2038,
	linux-kernel, linux-arch, arnd, deepa.kernel, marcin.juszkiewicz

On 17 September 2018 at 22:47, Paul Burton <paul.burton@mips.com> wrote:
> Hi Firoz,
>
> On Fri, Sep 14, 2018 at 02:08:31PM +0530, Firoz Khan wrote:
>> The purpose of this patch series is:
>> 1. We can easily add/modify/delete system call by changing entry
>> in syscall.tbl file. No need to manually edit many files.
>>
>> 2. It is easy to unify the system call implementation across all
>> the architectures.
>>
>> The system call tables are in different format in all architecture
>> and it will be difficult to manually add or modify the system calls
>> in the respective files manually. To make it easy by keeping a script
>> and which'll generate the header file and syscall table file so this
>> change will unify them across all architectures.
>
> Interesting :)
>
> I actually started on something similar recently with the goals of
> reducing the need to adjust both asm/unistd.h & the syscall entry tables
> when adding syscalls, clean up asm/unistd.h a bit & make it
> easier/cleaner to add support for nanoMIPS & the P32 ABI.
>
> My branch still needed some work but it's here if you're interested:
>
>     git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git wip-mips-syscalls
>
>     https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/log/?h=wip-mips-syscalls
>
> There are some differences:
>
>   - I'd placed syscall numbers the 3 current MIPS ABIs in one table,
>     rather than splitting it up. I can see pros & cons to both though so
>     I'm not tied to having a single all-encompassing table.
>
>   - I'd mostly inferred the entry point names from the syscall names,
>     only specifying them where they differ. Again I'm not particularly
>     tied to this.
>
>   - I'd made asm/unistd.h behave like asm-generic/unistd.h with the
>     __SYSCALL() macro, where you generate separate syscall_table_*
>     headers. I'm fine with that too.
>
> So I'm pretty happy to go with your series, though I agree with Arnd on
> the ABI/file naming & the missing syscalls that were added in the 4.18
> cycle. We probably need to provide mipsmt_sys_sched_[gs]etaffinity as
> aliases to sys_sched_[gs]etaffinity when CONFIG_MIPS_MT_FPAFF isn't
> enabled in order to fix the issue the kbuild test robot reported.
>
> But I'm looking forward to v2 :)
>
> Thanks,
>     Paul

Thanks for your comments :)

We're planning to come up with a generic script for system call table
generation across all the architecture. So certain things I have to keep
same across  all the architecture.

Having a single script is always our plan for long run. But I have to keep a
separate versions for the start so each architecture can be handled  in one
series. Which would make easier to merge in the initial version.

we could probably add it to scripts/*.sh first, but that requires more
coordination between the architectures.

- Firoz

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

* Re: [PATCH 0/3] System call table generation support
  2018-09-17 17:17 ` [PATCH 0/3] System call table generation support Paul Burton
  2018-09-18 14:13   ` Firoz Khan
@ 2018-09-20 14:52   ` Arnd Bergmann
  2018-09-20 20:48     ` Paul Burton
  1 sibling, 1 reply; 20+ messages in thread
From: Arnd Bergmann @ 2018-09-20 14:52 UTC (permalink / raw)
  To: Paul Burton
  Cc: Firoz Khan, Hauke Mehrtens, Rafał Miłecki,
	open list:RALINK MIPS ARCHITECTURE, Ralf Baechle, James Hogan,
	gregkh, Philippe Ombredanne, Thomas Gleixner, Kate Stewart,
	y2038 Mailman List, Linux Kernel Mailing List, linux-arch,
	Deepa Dinamani, Marcin Juszkiewicz

On Mon, Sep 17, 2018 at 10:17 AM Paul Burton <paul.burton@mips.com> wrote:
> On Fri, Sep 14, 2018 at 02:08:31PM +0530, Firoz Khan wrote:
> > The purpose of this patch series is:
> > 1. We can easily add/modify/delete system call by changing entry
> > in syscall.tbl file. No need to manually edit many files.
> >
> > 2. It is easy to unify the system call implementation across all
> > the architectures.
> >
> > The system call tables are in different format in all architecture
> > and it will be difficult to manually add or modify the system calls
> > in the respective files manually. To make it easy by keeping a script
> > and which'll generate the header file and syscall table file so this
> > change will unify them across all architectures.
>
> Interesting :)
>
> I actually started on something similar recently with the goals of
> reducing the need to adjust both asm/unistd.h & the syscall entry tables
> when adding syscalls, clean up asm/unistd.h a bit & make it
> easier/cleaner to add support for nanoMIPS & the P32 ABI.
>
> My branch still needed some work but it's here if you're interested:
>
>     git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git wip-mips-syscalls
>
>     https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/log/?h=wip-mips-syscalls

This looks like a very nice approach that we would probably prefer if we wanted
to do it only for mips. The way Firoz did it makes sense in the context of doing
it the same way on all architectures, where usually the information is more
accessible to human readers by using the number as the primary key.

Speaking of nanoMIPS, what is your plan for the syscall ABI there?
I can see two ways of approaching it:

a) keep all the MIPSisms in the data structures, and just use a subset of
    o32 that drops all the obsolete entry points
b) start over and stay as close as possible to the generic ABI, using the
    asm-generic versions of both the syscall table and the uapi header
    files instead of the traditional version.

         Arnd

         Arnd

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

* Re: [PATCH 0/3] System call table generation support
  2018-09-20 14:52   ` Arnd Bergmann
@ 2018-09-20 20:48     ` Paul Burton
  2018-09-21  6:09       ` Christoph Hellwig
  0 siblings, 1 reply; 20+ messages in thread
From: Paul Burton @ 2018-09-20 20:48 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Firoz Khan, Hauke Mehrtens, Rafał Miłecki,
	open list:RALINK MIPS ARCHITECTURE, Ralf Baechle, James Hogan,
	gregkh, Philippe Ombredanne, Thomas Gleixner, Kate Stewart,
	y2038 Mailman List, Linux Kernel Mailing List, linux-arch,
	Deepa Dinamani, Marcin Juszkiewicz

Hi Arnd,

On Thu, Sep 20, 2018 at 07:52:03AM -0700, Arnd Bergmann wrote:
> On Mon, Sep 17, 2018 at 10:17 AM Paul Burton <paul.burton@mips.com> wrote:
> > On Fri, Sep 14, 2018 at 02:08:31PM +0530, Firoz Khan wrote:
> > > The purpose of this patch series is:
> > > 1. We can easily add/modify/delete system call by changing entry
> > > in syscall.tbl file. No need to manually edit many files.
> > >
> > > 2. It is easy to unify the system call implementation across all
> > > the architectures.
> > >
> > > The system call tables are in different format in all architecture
> > > and it will be difficult to manually add or modify the system calls
> > > in the respective files manually. To make it easy by keeping a script
> > > and which'll generate the header file and syscall table file so this
> > > change will unify them across all architectures.
> >
> > Interesting :)
> >
> > I actually started on something similar recently with the goals of
> > reducing the need to adjust both asm/unistd.h & the syscall entry tables
> > when adding syscalls, clean up asm/unistd.h a bit & make it
> > easier/cleaner to add support for nanoMIPS & the P32 ABI.
> >
> > My branch still needed some work but it's here if you're interested:
> >
> >     git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git wip-mips-syscalls
> >
> >     https://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git/log/?h=wip-mips-syscalls
> 
> This looks like a very nice approach that we would probably prefer if we wanted
> to do it only for mips. The way Firoz did it makes sense in the context of doing
> it the same way on all architectures, where usually the information is more
> accessible to human readers by using the number as the primary key.

Yup, I completely agree that moving all this towards being common
infrastructure for all architectures is a worthy goal :)

> Speaking of nanoMIPS, what is your plan for the syscall ABI there?
> I can see two ways of approaching it:
> 
> a) keep all the MIPSisms in the data structures, and just use a subset of
>     o32 that drops all the obsolete entry points
> b) start over and stay as close as possible to the generic ABI, using the
>     asm-generic versions of both the syscall table and the uapi header
>     files instead of the traditional version.

We've taken option b in our current downstream kernel & that's what I
hope we'll get upstream too. There's no expectation that we'll ever need
to mix pre-nanoMIPS & nanoMIPS ISAs or their associated ABIs across the
kernel/user boundary so it's felt like a great opportunity to clean up &
standardise.

Getting nanoMIPS/p32 support submitted upstream is on my to-do list, but
there's a bunch of prep work to get in first & of course that to-do list
is forever growing. Hopefully in the next couple of cycles.

Thanks,
    Paul

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

* Re: [PATCH 0/3] System call table generation support
  2018-09-20 20:48     ` Paul Burton
@ 2018-09-21  6:09       ` Christoph Hellwig
  2018-09-21 19:32         ` Paul Burton
  0 siblings, 1 reply; 20+ messages in thread
From: Christoph Hellwig @ 2018-09-21  6:09 UTC (permalink / raw)
  To: Paul Burton
  Cc: Arnd Bergmann, Firoz Khan, Hauke Mehrtens,
	Rafał Miłecki, open list:RALINK MIPS ARCHITECTURE,
	Ralf Baechle, James Hogan, gregkh, Philippe Ombredanne,
	Thomas Gleixner, Kate Stewart, y2038 Mailman List,
	Linux Kernel Mailing List, linux-arch, Deepa Dinamani,
	Marcin Juszkiewicz

On Thu, Sep 20, 2018 at 08:48:37PM +0000, Paul Burton wrote:
> > Speaking of nanoMIPS, what is your plan for the syscall ABI there?
> > I can see two ways of approaching it:
> > 
> > a) keep all the MIPSisms in the data structures, and just use a subset of
> >     o32 that drops all the obsolete entry points
> > b) start over and stay as close as possible to the generic ABI, using the
> >     asm-generic versions of both the syscall table and the uapi header
> >     files instead of the traditional version.
> 
> We've taken option b in our current downstream kernel & that's what I
> hope we'll get upstream too. There's no expectation that we'll ever need
> to mix pre-nanoMIPS & nanoMIPS ISAs or their associated ABIs across the
> kernel/user boundary so it's felt like a great opportunity to clean up &
> standardise.
> 
> Getting nanoMIPS/p32 support submitted upstream is on my to-do list, but
> there's a bunch of prep work to get in first & of course that to-do list
> is forever growing. Hopefully in the next couple of cycles.

p32 is just the ABI name for nanoMIPS or yet another MIPS ABI?

Either way, І think if there is yet another ABI even on an existing port
we should always aim for the asm-generic syscall table indeed.

Especially for mips where o32 has a rather awkward ABI only explained by
odd decisions more than 20 years ago.

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

* Re: [PATCH 0/3] System call table generation support
  2018-09-21  6:09       ` Christoph Hellwig
@ 2018-09-21 19:32         ` Paul Burton
  0 siblings, 0 replies; 20+ messages in thread
From: Paul Burton @ 2018-09-21 19:32 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Arnd Bergmann, Firoz Khan, Hauke Mehrtens,
	Rafał Miłecki, open list:RALINK MIPS ARCHITECTURE,
	Ralf Baechle, James Hogan, gregkh, Philippe Ombredanne,
	Thomas Gleixner, Kate Stewart, y2038 Mailman List,
	Linux Kernel Mailing List, linux-arch, Deepa Dinamani,
	Marcin Juszkiewicz

Hi Christoph,

On Thu, Sep 20, 2018 at 11:09:41PM -0700, Christoph Hellwig wrote:
> On Thu, Sep 20, 2018 at 08:48:37PM +0000, Paul Burton wrote:
> > > Speaking of nanoMIPS, what is your plan for the syscall ABI there?
> > > I can see two ways of approaching it:
> > > 
> > > a) keep all the MIPSisms in the data structures, and just use a subset of
> > >     o32 that drops all the obsolete entry points
> > > b) start over and stay as close as possible to the generic ABI, using the
> > >     asm-generic versions of both the syscall table and the uapi header
> > >     files instead of the traditional version.
> > 
> > We've taken option b in our current downstream kernel & that's what I
> > hope we'll get upstream too. There's no expectation that we'll ever need
> > to mix pre-nanoMIPS & nanoMIPS ISAs or their associated ABIs across the
> > kernel/user boundary so it's felt like a great opportunity to clean up &
> > standardise.
> > 
> > Getting nanoMIPS/p32 support submitted upstream is on my to-do list, but
> > there's a bunch of prep work to get in first & of course that to-do list
> > is forever growing. Hopefully in the next couple of cycles.
> 
> p32 is just the ABI name for nanoMIPS or yet another MIPS ABI?

p32 is the ABI for nanoMIPS - ie. it is a new ABI, but it's not for use
with pre-nanoMIPS ISAs & nanoMIPS isn't used with o32/n32/n64.

Some of the code density improvements nanoMIPS brings are due to the ISA
& p32 ABI being developed together - eg. the load/store multiple &
save/restore instructions make it easy to save sequences of $sp, $fp,
$ra & some number of the $sN callee-saved registers. Compressed register
number encodings generally include registers that make sense for the p32
ABI, and I'm sure there were other things I've forgotten.

> Either way, І think if there is yet another ABI even on an existing port
> we should always aim for the asm-generic syscall table indeed.
> 
> Especially for mips where o32 has a rather awkward ABI only explained by
> odd decisions more than 20 years ago.

Glad to hear we're on the same page :)

I'm all for being less "special" & couldn't care less if our nanoMIPS
support isn't compatible with IRIX.

Thanks,
    Paul

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

* Re: [PATCH 0/3] System call table generation support
  2018-11-30  7:01     ` Satheesh Rajendran
@ 2018-11-30  9:40       ` Firoz Khan
  0 siblings, 0 replies; 20+ messages in thread
From: Firoz Khan @ 2018-11-30  9:40 UTC (permalink / raw)
  To: sathnaga
  Cc: Kate Stewart, Linux-Arch, Arnd Bergmann, Greg Kroah-Hartman,
	y2038 Mailman List, Boqun Feng, Philippe Ombredanne, Ram Pai,
	Linux Kernel Mailing List, Marcin Juszkiewicz, Paul Mackerras,
	Deepa Dinamani, Breno Leitao, Thomas Gleixner, linuxppc-dev

Hi Satheesh,

On Fri, 30 Nov 2018 at 12:32, Satheesh Rajendran
<sathnaga@linux.vnet.ibm.com> wrote:
>
> On Thu, Nov 29, 2018 at 01:48:16PM +0530, Firoz Khan wrote:
> > Hi Sathish,
> >
> > Thanks for your email.
> >
> > On Thu, 29 Nov 2018 at 12:05, Satheesh Rajendran
> > <sathnaga@linux.vnet.ibm.com> wrote:
> > >
> > > On Fri, Sep 14, 2018 at 02:02:57PM +0530, Firoz Khan wrote:
> > > > The purpose of this patch series is:
> > > > 1. We can easily add/modify/delete system call by changing entry
> > > > in syscall.tbl file. No need to manually edit many files.
> > > >
> > > > 2. It is easy to unify the system call implementation across all
> > > > the architectures.
> > > >
> > > > The system call tables are in different format in all architecture
> > > > and it will be difficult to manually add or modify the system calls
> > > > in the respective files manually. To make it easy by keeping a script
> > > > and which'll generate the header file and syscall table file so this
> > > > change will unify them across all architectures.
> > > >
> > > > syscall.tbl contains the list of available system calls along with
> > > > system call number and corresponding entry point. Add a new system
> > > > call in this architecture will be possible by adding new entry in
> > > > the syscall.tbl file.
> > > >
> > > > Adding a new table entry consisting of:
> > > >         - System call number.
> > > >         - ABI.
> > > >         - System call name.
> > > >         - Entry point name.
> > > >         - Compat entry name, if required.
> > > >
> > > > ARM, s390 and x86 architecuture does exist the similar support. I
> > > > leverage their implementation to come up with a generic solution.
> > > >
> > > > I have done the same support for work for alpha, m68k, microblaze,
> > > > ia64, mips, parisc, sh, sparc, and xtensa. But I started sending
> > > > the patch for one architecuture for review. Below mentioned git
> > > > repository contains more details.
> > > > Git repo:- https://github.com/frzkhn/system_call_table_generator/
> > > >
> > > > Finally, this is the ground work for solving the Y2038 issue. We
> > > > need to add/change two dozen of system calls to solve Y2038 issue.
> > > > So this patch series will help to easily modify from existing
> > > > system call to Y2038 compatible system calls.
> > > >
> > > > I started working system call table generation on 4.17-rc1. I used
> > > > marcin's script - https://github.com/hrw/syscalls-table to generate
> > > > the syscall.tbl file. And this will be the input to the system call
> > > > table generation script. But there are couple system call got add
> > > > in the latest rc release. If run Marcin's script on latest release,
> > > > It will generate a new syscall.tbl. But I still use the old file -
> > > > syscall.tbl and once all review got over I'll update syscall.tbl
> > > > alone w.r.to the tip of the kernel. The impact of this thing, few
> > > > of the system call won't work.
> > > >
> > > > Firoz Khan (3):
> > > >   powerpc: Replace NR_syscalls macro from asm/unistd.h
> > > >   powerpc: Add system call table generation support
> > > >   powerpc: uapi header and system call table file generation
> > > >
> > > >  arch/powerpc/Makefile                       |   3 +
> > > >  arch/powerpc/include/asm/Kbuild             |   3 +
> > > >  arch/powerpc/include/asm/unistd.h           |   3 +-
> > > >  arch/powerpc/include/uapi/asm/Kbuild        |   2 +
> > > >  arch/powerpc/include/uapi/asm/unistd.h      | 391 +---------------------------
> > > >  arch/powerpc/kernel/Makefile                |   3 +-
> > > >  arch/powerpc/kernel/syscall_table_32.S      |   9 +
> > > >  arch/powerpc/kernel/syscall_table_64.S      |  17 ++
> > > >  arch/powerpc/kernel/syscalls/Makefile       |  51 ++++
> > > >  arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 +++++++++++++++++++++++++++
> > > >  arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 ++++++++++++++++++++++++++
> > > >  arch/powerpc/kernel/syscalls/syscallhdr.sh  |  37 +++
> > > >  arch/powerpc/kernel/syscalls/syscalltbl.sh  |  38 +++
> > > >  arch/powerpc/kernel/systbl.S                |  50 ----
> > > >  14 files changed, 916 insertions(+), 441 deletions(-)
> > > >  create mode 100644 arch/powerpc/kernel/syscall_table_32.S
> > > >  create mode 100644 arch/powerpc/kernel/syscall_table_64.S
> > > >  create mode 100644 arch/powerpc/kernel/syscalls/Makefile
> > > >  create mode 100644 arch/powerpc/kernel/syscalls/syscall_32.tbl
> > > >  create mode 100644 arch/powerpc/kernel/syscalls/syscall_64.tbl
> > > >  create mode 100644 arch/powerpc/kernel/syscalls/syscallhdr.sh
> > > >  create mode 100644 arch/powerpc/kernel/syscalls/syscalltbl.sh
> > > >  delete mode 100644 arch/powerpc/kernel/systbl.S
> > >
> > > Hi,
> > >
> > > This patch series failed to boot in IBM Power8 box with below base commit and built with ppc64le_defconfig,
> > > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=merge&id=183cbf93be88d1a4fb572e27b1e08aa0ad85
> >
> > I think you are applied some old patch series. Could you please
> > perform the boot test on powerpc v3 which I have sent few hour before.
>
> Hi Firoz,
>
> Looks like I chose a wrong mail to reply, but did test with v3 series itself.

Thanks for the update. I'll have look into it and update you asap.

Firoz

>
> _v3,4_4__powerpc_generate_uapi_header_and_system_call_table_files_mbox_merge
>
> Thanks,
> -Satheesh.
> >
> > Thanks
> > Firoz
> >
> > >
> > > Complete boot log attached.
> > >
> > >
> > > [    1.577383] SGI XFS with ACLs, security attributes, no debug enabled
> > > [    1.581550] Bad kernel stack pointer 6e690000 at c000000000e2ceec
> > > [    1.581558] Oops: Bad kernel stack pointer, sig: 6 [#1]
> > > [    1.581562] LE SMP NR_CPUS=2048 NUMA PowerNV
> > > [    1.581567] Modules linked in:
> > > [    1.581572] CPU: 3 PID: 1937 Comm: modprobe Not tainted 4.20.0-rc4-gd35c78239 #1
> > > [    1.581577] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
> > > [    1.581582] REGS: c0000007ffe77d30 TRAP: 0e40   Not tainted  (4.20.0-rc4-gd35c78239)
> > > [    1.581586] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
> > > [    1.5815
> > > 94] CFAR: c00000000000b9e0 IRQMASK: c0000000014d1bd8
> > > [    1.581594] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c
> > > [    1.581594] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f
> > > [    1.581594] GPR08: 0000000000000000 c000001e5104fe90 0000000000000000 c000000000c30ff8
> > > [    1.581594] GPR12: c000000000e2cee0 c0000007ffffd800 4f4c5f4543415254 00007fffb55927d0
> > > [    1.581594] GPR16: 00007fffb55bfbf0 00007fffc087b160 c000000065b70ff8 00007fffc087b5c8
> > > [    1.581594] GPR20: 000000000000000d 0000000000000000 0000000000000000 000000000000
> > > 0000
> > > [    1.581594] GPR24: 000000012b660d79 0000000000000000 00007fffb55c0000 0000000000000000
> > > [    1.581594] GPR28: 00007fffb55c1110 0000000000000001 00007fffb55c1050 00007fffc087a880
> > > [    1.58
> > > 1637] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
> > > [    1.581643] LR [c00000000000b9e4] system_call+0x5c/0x70
> > > [    1.581646] Call Trace:
> > > [    1.581648] Instruction dump:
> > > [    1.581652]
> > > XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
> > > [    1.581657] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
> > > [    1.581664] ---[ end trace 37e56b4
> > > 4979b6992 ]---
> > > [    1.582355]
> > >
> > > Regards,
> > > -Satheesh.
> > > >
> > > > --
> > > > 1.9.1
> > > >
> >
>

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

* Re: [PATCH 0/3] System call table generation support
  2018-11-29  8:18   ` Firoz Khan
@ 2018-11-30  7:01     ` Satheesh Rajendran
  2018-11-30  9:40       ` Firoz Khan
  0 siblings, 1 reply; 20+ messages in thread
From: Satheesh Rajendran @ 2018-11-30  7:01 UTC (permalink / raw)
  To: Firoz Khan
  Cc: sathnaga, Kate Stewart, Linux-Arch, Arnd Bergmann,
	Greg Kroah-Hartman, y2038 Mailman List, Boqun Feng,
	Philippe Ombredanne, Ram Pai, Linux Kernel Mailing List,
	Marcin Juszkiewicz, Paul Mackerras, Deepa Dinamani, Breno Leitao,
	Thomas Gleixner, linuxppc-dev

On Thu, Nov 29, 2018 at 01:48:16PM +0530, Firoz Khan wrote:
> Hi Sathish,
> 
> Thanks for your email.
> 
> On Thu, 29 Nov 2018 at 12:05, Satheesh Rajendran
> <sathnaga@linux.vnet.ibm.com> wrote:
> >
> > On Fri, Sep 14, 2018 at 02:02:57PM +0530, Firoz Khan wrote:
> > > The purpose of this patch series is:
> > > 1. We can easily add/modify/delete system call by changing entry
> > > in syscall.tbl file. No need to manually edit many files.
> > >
> > > 2. It is easy to unify the system call implementation across all
> > > the architectures.
> > >
> > > The system call tables are in different format in all architecture
> > > and it will be difficult to manually add or modify the system calls
> > > in the respective files manually. To make it easy by keeping a script
> > > and which'll generate the header file and syscall table file so this
> > > change will unify them across all architectures.
> > >
> > > syscall.tbl contains the list of available system calls along with
> > > system call number and corresponding entry point. Add a new system
> > > call in this architecture will be possible by adding new entry in
> > > the syscall.tbl file.
> > >
> > > Adding a new table entry consisting of:
> > >         - System call number.
> > >         - ABI.
> > >         - System call name.
> > >         - Entry point name.
> > >         - Compat entry name, if required.
> > >
> > > ARM, s390 and x86 architecuture does exist the similar support. I
> > > leverage their implementation to come up with a generic solution.
> > >
> > > I have done the same support for work for alpha, m68k, microblaze,
> > > ia64, mips, parisc, sh, sparc, and xtensa. But I started sending
> > > the patch for one architecuture for review. Below mentioned git
> > > repository contains more details.
> > > Git repo:- https://github.com/frzkhn/system_call_table_generator/
> > >
> > > Finally, this is the ground work for solving the Y2038 issue. We
> > > need to add/change two dozen of system calls to solve Y2038 issue.
> > > So this patch series will help to easily modify from existing
> > > system call to Y2038 compatible system calls.
> > >
> > > I started working system call table generation on 4.17-rc1. I used
> > > marcin's script - https://github.com/hrw/syscalls-table to generate
> > > the syscall.tbl file. And this will be the input to the system call
> > > table generation script. But there are couple system call got add
> > > in the latest rc release. If run Marcin's script on latest release,
> > > It will generate a new syscall.tbl. But I still use the old file -
> > > syscall.tbl and once all review got over I'll update syscall.tbl
> > > alone w.r.to the tip of the kernel. The impact of this thing, few
> > > of the system call won't work.
> > >
> > > Firoz Khan (3):
> > >   powerpc: Replace NR_syscalls macro from asm/unistd.h
> > >   powerpc: Add system call table generation support
> > >   powerpc: uapi header and system call table file generation
> > >
> > >  arch/powerpc/Makefile                       |   3 +
> > >  arch/powerpc/include/asm/Kbuild             |   3 +
> > >  arch/powerpc/include/asm/unistd.h           |   3 +-
> > >  arch/powerpc/include/uapi/asm/Kbuild        |   2 +
> > >  arch/powerpc/include/uapi/asm/unistd.h      | 391 +---------------------------
> > >  arch/powerpc/kernel/Makefile                |   3 +-
> > >  arch/powerpc/kernel/syscall_table_32.S      |   9 +
> > >  arch/powerpc/kernel/syscall_table_64.S      |  17 ++
> > >  arch/powerpc/kernel/syscalls/Makefile       |  51 ++++
> > >  arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 +++++++++++++++++++++++++++
> > >  arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 ++++++++++++++++++++++++++
> > >  arch/powerpc/kernel/syscalls/syscallhdr.sh  |  37 +++
> > >  arch/powerpc/kernel/syscalls/syscalltbl.sh  |  38 +++
> > >  arch/powerpc/kernel/systbl.S                |  50 ----
> > >  14 files changed, 916 insertions(+), 441 deletions(-)
> > >  create mode 100644 arch/powerpc/kernel/syscall_table_32.S
> > >  create mode 100644 arch/powerpc/kernel/syscall_table_64.S
> > >  create mode 100644 arch/powerpc/kernel/syscalls/Makefile
> > >  create mode 100644 arch/powerpc/kernel/syscalls/syscall_32.tbl
> > >  create mode 100644 arch/powerpc/kernel/syscalls/syscall_64.tbl
> > >  create mode 100644 arch/powerpc/kernel/syscalls/syscallhdr.sh
> > >  create mode 100644 arch/powerpc/kernel/syscalls/syscalltbl.sh
> > >  delete mode 100644 arch/powerpc/kernel/systbl.S
> >
> > Hi,
> >
> > This patch series failed to boot in IBM Power8 box with below base commit and built with ppc64le_defconfig,
> > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=merge&id=183cbf93be88d1a4fb572e27b1e08aa0ad85
> 
> I think you are applied some old patch series. Could you please
> perform the boot test on powerpc v3 which I have sent few hour before.

Hi Firoz,

Looks like I chose a wrong mail to reply, but did test with v3 series itself.

_v3,4_4__powerpc_generate_uapi_header_and_system_call_table_files_mbox_merge

Thanks,
-Satheesh.
> 
> Thanks
> Firoz
> 
> >
> > Complete boot log attached.
> >
> >
> > [    1.577383] SGI XFS with ACLs, security attributes, no debug enabled
> > [    1.581550] Bad kernel stack pointer 6e690000 at c000000000e2ceec
> > [    1.581558] Oops: Bad kernel stack pointer, sig: 6 [#1]
> > [    1.581562] LE SMP NR_CPUS=2048 NUMA PowerNV
> > [    1.581567] Modules linked in:
> > [    1.581572] CPU: 3 PID: 1937 Comm: modprobe Not tainted 4.20.0-rc4-gd35c78239 #1
> > [    1.581577] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
> > [    1.581582] REGS: c0000007ffe77d30 TRAP: 0e40   Not tainted  (4.20.0-rc4-gd35c78239)
> > [    1.581586] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
> > [    1.5815
> > 94] CFAR: c00000000000b9e0 IRQMASK: c0000000014d1bd8
> > [    1.581594] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c
> > [    1.581594] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f
> > [    1.581594] GPR08: 0000000000000000 c000001e5104fe90 0000000000000000 c000000000c30ff8
> > [    1.581594] GPR12: c000000000e2cee0 c0000007ffffd800 4f4c5f4543415254 00007fffb55927d0
> > [    1.581594] GPR16: 00007fffb55bfbf0 00007fffc087b160 c000000065b70ff8 00007fffc087b5c8
> > [    1.581594] GPR20: 000000000000000d 0000000000000000 0000000000000000 000000000000
> > 0000
> > [    1.581594] GPR24: 000000012b660d79 0000000000000000 00007fffb55c0000 0000000000000000
> > [    1.581594] GPR28: 00007fffb55c1110 0000000000000001 00007fffb55c1050 00007fffc087a880
> > [    1.58
> > 1637] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
> > [    1.581643] LR [c00000000000b9e4] system_call+0x5c/0x70
> > [    1.581646] Call Trace:
> > [    1.581648] Instruction dump:
> > [    1.581652]
> > XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
> > [    1.581657] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
> > [    1.581664] ---[ end trace 37e56b4
> > 4979b6992 ]---
> > [    1.582355]
> >
> > Regards,
> > -Satheesh.
> > >
> > > --
> > > 1.9.1
> > >
> 


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

* Re: [PATCH 0/3] System call table generation support
  2018-11-29  6:34 ` Satheesh Rajendran
@ 2018-11-29  8:18   ` Firoz Khan
  2018-11-30  7:01     ` Satheesh Rajendran
  0 siblings, 1 reply; 20+ messages in thread
From: Firoz Khan @ 2018-11-29  8:18 UTC (permalink / raw)
  To: sathnaga
  Cc: Arnd Bergmann, linuxppc-dev, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Ram Pai, Breno Leitao,
	Boqun Feng, Greg Kroah-Hartman, Philippe Ombredanne,
	Thomas Gleixner, Kate Stewart, Linux-Arch, y2038 Mailman List,
	Linux Kernel Mailing List, Marcin Juszkiewicz, Deepa Dinamani

Hi Sathish,

Thanks for your email.

On Thu, 29 Nov 2018 at 12:05, Satheesh Rajendran
<sathnaga@linux.vnet.ibm.com> wrote:
>
> On Fri, Sep 14, 2018 at 02:02:57PM +0530, Firoz Khan wrote:
> > The purpose of this patch series is:
> > 1. We can easily add/modify/delete system call by changing entry
> > in syscall.tbl file. No need to manually edit many files.
> >
> > 2. It is easy to unify the system call implementation across all
> > the architectures.
> >
> > The system call tables are in different format in all architecture
> > and it will be difficult to manually add or modify the system calls
> > in the respective files manually. To make it easy by keeping a script
> > and which'll generate the header file and syscall table file so this
> > change will unify them across all architectures.
> >
> > syscall.tbl contains the list of available system calls along with
> > system call number and corresponding entry point. Add a new system
> > call in this architecture will be possible by adding new entry in
> > the syscall.tbl file.
> >
> > Adding a new table entry consisting of:
> >         - System call number.
> >         - ABI.
> >         - System call name.
> >         - Entry point name.
> >         - Compat entry name, if required.
> >
> > ARM, s390 and x86 architecuture does exist the similar support. I
> > leverage their implementation to come up with a generic solution.
> >
> > I have done the same support for work for alpha, m68k, microblaze,
> > ia64, mips, parisc, sh, sparc, and xtensa. But I started sending
> > the patch for one architecuture for review. Below mentioned git
> > repository contains more details.
> > Git repo:- https://github.com/frzkhn/system_call_table_generator/
> >
> > Finally, this is the ground work for solving the Y2038 issue. We
> > need to add/change two dozen of system calls to solve Y2038 issue.
> > So this patch series will help to easily modify from existing
> > system call to Y2038 compatible system calls.
> >
> > I started working system call table generation on 4.17-rc1. I used
> > marcin's script - https://github.com/hrw/syscalls-table to generate
> > the syscall.tbl file. And this will be the input to the system call
> > table generation script. But there are couple system call got add
> > in the latest rc release. If run Marcin's script on latest release,
> > It will generate a new syscall.tbl. But I still use the old file -
> > syscall.tbl and once all review got over I'll update syscall.tbl
> > alone w.r.to the tip of the kernel. The impact of this thing, few
> > of the system call won't work.
> >
> > Firoz Khan (3):
> >   powerpc: Replace NR_syscalls macro from asm/unistd.h
> >   powerpc: Add system call table generation support
> >   powerpc: uapi header and system call table file generation
> >
> >  arch/powerpc/Makefile                       |   3 +
> >  arch/powerpc/include/asm/Kbuild             |   3 +
> >  arch/powerpc/include/asm/unistd.h           |   3 +-
> >  arch/powerpc/include/uapi/asm/Kbuild        |   2 +
> >  arch/powerpc/include/uapi/asm/unistd.h      | 391 +---------------------------
> >  arch/powerpc/kernel/Makefile                |   3 +-
> >  arch/powerpc/kernel/syscall_table_32.S      |   9 +
> >  arch/powerpc/kernel/syscall_table_64.S      |  17 ++
> >  arch/powerpc/kernel/syscalls/Makefile       |  51 ++++
> >  arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 +++++++++++++++++++++++++++
> >  arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 ++++++++++++++++++++++++++
> >  arch/powerpc/kernel/syscalls/syscallhdr.sh  |  37 +++
> >  arch/powerpc/kernel/syscalls/syscalltbl.sh  |  38 +++
> >  arch/powerpc/kernel/systbl.S                |  50 ----
> >  14 files changed, 916 insertions(+), 441 deletions(-)
> >  create mode 100644 arch/powerpc/kernel/syscall_table_32.S
> >  create mode 100644 arch/powerpc/kernel/syscall_table_64.S
> >  create mode 100644 arch/powerpc/kernel/syscalls/Makefile
> >  create mode 100644 arch/powerpc/kernel/syscalls/syscall_32.tbl
> >  create mode 100644 arch/powerpc/kernel/syscalls/syscall_64.tbl
> >  create mode 100644 arch/powerpc/kernel/syscalls/syscallhdr.sh
> >  create mode 100644 arch/powerpc/kernel/syscalls/syscalltbl.sh
> >  delete mode 100644 arch/powerpc/kernel/systbl.S
>
> Hi,
>
> This patch series failed to boot in IBM Power8 box with below base commit and built with ppc64le_defconfig,
> https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=merge&id=183cbf93be88d1a4fb572e27b1e08aa0ad85

I think you are applied some old patch series. Could you please
perform the boot test on powerpc v3 which I have sent few hour before.

Thanks
Firoz

>
> Complete boot log attached.
>
>
> [    1.577383] SGI XFS with ACLs, security attributes, no debug enabled
> [    1.581550] Bad kernel stack pointer 6e690000 at c000000000e2ceec
> [    1.581558] Oops: Bad kernel stack pointer, sig: 6 [#1]
> [    1.581562] LE SMP NR_CPUS=2048 NUMA PowerNV
> [    1.581567] Modules linked in:
> [    1.581572] CPU: 3 PID: 1937 Comm: modprobe Not tainted 4.20.0-rc4-gd35c78239 #1
> [    1.581577] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
> [    1.581582] REGS: c0000007ffe77d30 TRAP: 0e40   Not tainted  (4.20.0-rc4-gd35c78239)
> [    1.581586] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
> [    1.5815
> 94] CFAR: c00000000000b9e0 IRQMASK: c0000000014d1bd8
> [    1.581594] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c
> [    1.581594] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f
> [    1.581594] GPR08: 0000000000000000 c000001e5104fe90 0000000000000000 c000000000c30ff8
> [    1.581594] GPR12: c000000000e2cee0 c0000007ffffd800 4f4c5f4543415254 00007fffb55927d0
> [    1.581594] GPR16: 00007fffb55bfbf0 00007fffc087b160 c000000065b70ff8 00007fffc087b5c8
> [    1.581594] GPR20: 000000000000000d 0000000000000000 0000000000000000 000000000000
> 0000
> [    1.581594] GPR24: 000000012b660d79 0000000000000000 00007fffb55c0000 0000000000000000
> [    1.581594] GPR28: 00007fffb55c1110 0000000000000001 00007fffb55c1050 00007fffc087a880
> [    1.58
> 1637] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
> [    1.581643] LR [c00000000000b9e4] system_call+0x5c/0x70
> [    1.581646] Call Trace:
> [    1.581648] Instruction dump:
> [    1.581652]
> XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
> [    1.581657] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
> [    1.581664] ---[ end trace 37e56b4
> 4979b6992 ]---
> [    1.582355]
>
> Regards,
> -Satheesh.
> >
> > --
> > 1.9.1
> >

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

* Re: [PATCH 0/3] System call table generation support
  2018-09-14  8:32 Firoz Khan
@ 2018-11-29  6:34 ` Satheesh Rajendran
  2018-11-29  8:18   ` Firoz Khan
  0 siblings, 1 reply; 20+ messages in thread
From: Satheesh Rajendran @ 2018-11-29  6:34 UTC (permalink / raw)
  To: Firoz Khan
  Cc: Arnd Bergmann, linuxppc-dev, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Ram Pai, Breno Leitao,
	Boqun Feng, Greg Kroah-Hartman, Philippe Ombredanne,
	Thomas Gleixner, Kate Stewart, linux-arch, y2038, linux-kernel,
	marcin.juszkiewicz, deepa.kernel

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

On Fri, Sep 14, 2018 at 02:02:57PM +0530, Firoz Khan wrote:
> The purpose of this patch series is:
> 1. We can easily add/modify/delete system call by changing entry 
> in syscall.tbl file. No need to manually edit many files.
> 
> 2. It is easy to unify the system call implementation across all 
> the architectures. 
> 
> The system call tables are in different format in all architecture 
> and it will be difficult to manually add or modify the system calls
> in the respective files manually. To make it easy by keeping a script 
> and which'll generate the header file and syscall table file so this 
> change will unify them across all architectures.
> 
> syscall.tbl contains the list of available system calls along with 
> system call number and corresponding entry point. Add a new system 
> call in this architecture will be possible by adding new entry in 
> the syscall.tbl file.
> 
> Adding a new table entry consisting of:
>         - System call number.
>         - ABI.
>         - System call name.
>         - Entry point name.
>         - Compat entry name, if required.
> 
> ARM, s390 and x86 architecuture does exist the similar support. I 
> leverage their implementation to come up with a generic solution.
> 
> I have done the same support for work for alpha, m68k, microblaze, 
> ia64, mips, parisc, sh, sparc, and xtensa. But I started sending 
> the patch for one architecuture for review. Below mentioned git
> repository contains more details.
> Git repo:- https://github.com/frzkhn/system_call_table_generator/
> 
> Finally, this is the ground work for solving the Y2038 issue. We 
> need to add/change two dozen of system calls to solve Y2038 issue. 
> So this patch series will help to easily modify from existing 
> system call to Y2038 compatible system calls.
> 
> I started working system call table generation on 4.17-rc1. I used 
> marcin's script - https://github.com/hrw/syscalls-table to generate 
> the syscall.tbl file. And this will be the input to the system call 
> table generation script. But there are couple system call got add 
> in the latest rc release. If run Marcin's script on latest release,
> It will generate a new syscall.tbl. But I still use the old file - 
> syscall.tbl and once all review got over I'll update syscall.tbl 
> alone w.r.to the tip of the kernel. The impact of this thing, few 
> of the system call won't work. 
> 
> Firoz Khan (3):
>   powerpc: Replace NR_syscalls macro from asm/unistd.h
>   powerpc: Add system call table generation support
>   powerpc: uapi header and system call table file generation
> 
>  arch/powerpc/Makefile                       |   3 +
>  arch/powerpc/include/asm/Kbuild             |   3 +
>  arch/powerpc/include/asm/unistd.h           |   3 +-
>  arch/powerpc/include/uapi/asm/Kbuild        |   2 +
>  arch/powerpc/include/uapi/asm/unistd.h      | 391 +---------------------------
>  arch/powerpc/kernel/Makefile                |   3 +-
>  arch/powerpc/kernel/syscall_table_32.S      |   9 +
>  arch/powerpc/kernel/syscall_table_64.S      |  17 ++
>  arch/powerpc/kernel/syscalls/Makefile       |  51 ++++
>  arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 +++++++++++++++++++++++++++
>  arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 ++++++++++++++++++++++++++
>  arch/powerpc/kernel/syscalls/syscallhdr.sh  |  37 +++
>  arch/powerpc/kernel/syscalls/syscalltbl.sh  |  38 +++
>  arch/powerpc/kernel/systbl.S                |  50 ----
>  14 files changed, 916 insertions(+), 441 deletions(-)
>  create mode 100644 arch/powerpc/kernel/syscall_table_32.S
>  create mode 100644 arch/powerpc/kernel/syscall_table_64.S
>  create mode 100644 arch/powerpc/kernel/syscalls/Makefile
>  create mode 100644 arch/powerpc/kernel/syscalls/syscall_32.tbl
>  create mode 100644 arch/powerpc/kernel/syscalls/syscall_64.tbl
>  create mode 100644 arch/powerpc/kernel/syscalls/syscallhdr.sh
>  create mode 100644 arch/powerpc/kernel/syscalls/syscalltbl.sh
>  delete mode 100644 arch/powerpc/kernel/systbl.S

Hi,

This patch series failed to boot in IBM Power8 box with below base commit and built with ppc64le_defconfig,
https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=merge&id=183cbf93be88d1a4fb572e27b1e08aa0ad853b2f

Complete boot log attached.


[    1.577383] SGI XFS with ACLs, security attributes, no debug enabled
[    1.581550] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.581558] Oops: Bad kernel stack pointer, sig: 6 [#1]
[    1.581562] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.581567] Modules linked in:
[    1.581572] CPU: 3 PID: 1937 Comm: modprobe Not tainted 4.20.0-rc4-gd35c78239 #1
[    1.581577] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[    1.581582] REGS: c0000007ffe77d30 TRAP: 0e40   Not tainted  (4.20.0-rc4-gd35c78239)
[    1.581586] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[    1.5815
94] CFAR: c00000000000b9e0 IRQMASK: c0000000014d1bd8
[    1.581594] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c
[    1.581594] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f
[    1.581594] GPR08: 0000000000000000 c000001e5104fe90 0000000000000000 c000000000c30ff8
[    1.581594] GPR12: c000000000e2cee0 c0000007ffffd800 4f4c5f4543415254 00007fffb55927d0
[    1.581594] GPR16: 00007fffb55bfbf0 00007fffc087b160 c000000065b70ff8 00007fffc087b5c8
[    1.581594] GPR20: 000000000000000d 0000000000000000 0000000000000000 000000000000
0000
[    1.581594] GPR24: 000000012b660d79 0000000000000000 00007fffb55c0000 0000000000000000
[    1.581594] GPR28: 00007fffb55c1110 0000000000000001 00007fffb55c1050 00007fffc087a880
[    1.58
1637] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.581643] LR [c00000000000b9e4] system_call+0x5c/0x70
[    1.581646] Call Trace:
[    1.581648] Instruction dump:
[    1.581652]
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
[    1.581657] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
[    1.581664] ---[ end trace 37e56b4
4979b6992 ]---
[    1.582355]

Regards,
-Satheesh.
> 
> -- 
> 1.9.1
> 

[-- Attachment #2: debug.log --]
[-- Type: text/plain, Size: 167541 bytes --]

[console-expect]#
cd /home/kvmci && git clone --depth 1  git@github.com:sathnaga/linux.git -b _v3,4_4__powerpc_generate_uapi_header_and_system_call_table_files_mbox_merge linux
Cloning into 'linux'...
remote: Enumerating objects: 66330, done.^[[K
remote: Counting objects:   0% (1/66330)   ^[[K
remote: Counting objects:   0% (73/66330)   ^[[K
remote: Counting objects:   1% (664/66330)   ^[[K
remote: Counting objects:   2% (1327/66330)   ^[[K
remote: Counting objects:   3% (1990/66330)   ^[[K
remote: Counting objects:   4% (2654/66330)   ^[[K
remote: Counting objects:   5% (3317/66330)   ^[[K
remote: Counting objects:   6% (3980/66330)   ^[[K
remote: Counting objects:   7% (4644/66330)   ^[[K
remote: Counting objects:   8% (5307/66330)   ^[[K
remote: Counting objects:   9% (5970/66330)   ^[[K
remote: Counting objects:  10% (6633/66330)   ^[[K
remote: Counting objects:  11% (7297/66330)   ^[[K
remote: Counting objects:  12% (7960/66330)   ^[[K
remote: Counting objects:  13% (8623/66330)   ^[[K
remote: Counting objects:  14% (9287/66330)   ^[[K
remote: Counting objects:  15% (9950/66330)   ^[[K
remote: Counting objects:  16% (10613/66330)   ^[[K
remote: Counting objects:  17% (11277/66330)   ^[[K
remote: Counting objects:  18% (11940/66330)   ^[[K
remote: Counting objects:  19% (12603/66330)   ^[[K
remote: Counting objects:  20% (13266/66330)   ^[[K
remote: Counting objects:  21% (13930/66330)   ^[[K
remote: Counting objects:  22% (14593/66330)   ^[[K
remote: Counting objects:  23% (15256/66330)   ^[[K
remote: Counting objects:  24% (15920/66330)   ^[[K
remote: Counting objects:  25% (16583/66330)   ^[[K
remote: Counting objects:  26% (17246/66330)   ^[[K
remote: Counting objects:  27% (17910/66330)   ^[[K
remote: Counting objects:  28% (18573/66330)   ^[[K
remote: Counting objects:  29% (19236/66330)   ^[[K
remote: Counting objects:  30% (19899/66330)   ^[[K
remote: Counting objects:  31% (20563/66330)   ^[[K
remote: Counting objects:  32% (21226/66330)   ^[[K
remote: Counting objects:  33% (21889/66330)   ^[[K
remote: Counting objects:  34% (22553/66330)   ^[[K
remote: Counting objects:  35% (23216/66330)   ^[[K
remote: Counting objects:  36% (23879/66330)   ^[[K
remote: Counting objects:  37% (24543/66330)   ^[[K
remote: Counting objects:  38% (25206/66330)   ^[[K
remote: Counting objects:  39% (25869/66330)   ^[[K
remote: Counting objects:  39% (26248/66330)   ^[[K
remote: Counting objects:  40% (26532/66330)   ^[[K
remote: Counting objects:  41% (27196/66330)   ^[[K
remote: Counting objects:  42% (27859/66330)   ^[[K
remote: Counting objects:  43% (28522/66330)   ^[[K
remote: Counting objects:  44% (29186/66330)   ^[[K
remote: Counting objects:  45% (29849/66330)   ^[[K
remote: Counting objects:  46% (30512/66330)   ^[[K
remote: Counting objects:  47% (31176/66330)   ^[[K
remote: Counting objects:  48% (31839/66330)   ^[[K
remote: Counting objects:  49% (32502/66330)   ^[[K
remote: Counting objects:  50% (33165/66330)   ^[[K
remote: Counting objects:  51% (33829/66330)   ^[[K
remote: Counting objects:  52% (34492/66330)   ^[[K
remote: Counting objects:  53% (35155/66330)   ^[[K
remote: Counting objects:  54% (35819/66330)   ^[[K
remote: Counting objects:  55% (36482/66330)   ^[[K
remote: Counting objects:  56% (37145/66330)   ^[[K
remote: Counting objects:  57% (37809/66330)   ^[[K
remote: Counting objects:  58% (38472/66330)   ^[[K
remote: Counting objects:  59% (39135/66330)   ^[[K
remote: Counting objects:  60% (39798/66330)   ^[[K
remote: Counting objects:  61% (40462/66330)   ^[[K
remote: Counting objects:  62% (41125/66330)   ^[[K
remote: Counting objects:  63% (41788/66330)   ^[[K
remote: Counting objects:  64% (42452/66330)   ^[[K
remote: Counting objects:  65% (43115/66330)   ^[[K
remote: Counting objects:  66% (43778/66330)   ^[[K
remote: Counting objects:  67% (44442/66330)   ^[[K
remote: Counting objects:  68% (45105/66330)   ^[[K
remote: Counting objects:  69% (45768/66330)   ^[[K
remote: Counting objects:  70% (46431/66330)   ^[[K
remote: Counting objects:  71% (47095/66330)   ^[[K
remote: Counting objects:  72% (47758/66330)   ^[[K
remote: Counting objects:  73% (48421/66330)   ^[[K
remote: Counting objects:  74% (49085/66330)   ^[[K
remote: Counting objects:  75% (49748/66330)   ^[[K
remote: Counting objects:  76% (50411/66330)   ^[[K
remote: Counting objects:  77% (51075/66330)   ^[[K
remote: Counting objects:  78% (51738/66330)   ^[[K
remote: Counting objects:  79% (52401/66330)   ^[[K
remote: Counting objects:  80% (53064/66330)   ^[[K
remote: Counting objects:  81% (53728/66330)   ^[[K
remote: Counting objects:  82% (54391/66330)   ^[[K
remote: Counting objects:  83% (55054/66330)   ^[[K
remote: Counting objects:  84% (55718/66330)   ^[[K
remote: Counting objects:  85% (56381/66330)   ^[[K
remote: Counting objects:  86% (57044/66330)   ^[[K
remote: Counting objects:  87% (57708/66330)   ^[[K
remote: Counting objects:  88% (58371/66330)   ^[[K
remote: Counting objects:  89% (59034/66330)   ^[[K
remote: Counting objects:  90% (59697/66330)   ^[[K
remote: Counting objects:  91% (60361/66330)   ^[[K
remote: Counting objects:  92% (61024/66330)   ^[[K
remote: Counting objects:  93% (61687/66330)   ^[[K
remote: Counting objects:  94% (62351/66330)   ^[[K
remote: Counting objects:  95% (63014/66330)   ^[[K
remote: Counting objects:  96% (63677/66330)   ^[[K
remote: Counting objects:  97% (64341/66330)   ^[[K
remote: Counting objects:  98% (65004/66330)   ^[[K
remote: Counting objects:  99% (65667/66330)   ^[[K
remote: Counting objects: 100% (66330/66330)   ^[[K
remote: Counting objects: 100% (66330/66330), done.^[[K
remote: Compressing objects:   0% (1/62171)   ^[[K
remote: Compressing objects:   1% (622/62171)   ^[[K
remote: Compressing objects:   2% (1244/62171)   ^[[K
remote: Compressing objects:   3% (1866/62171)   ^[[K
remote: Compressing objects:   4% (2487/62171)   ^[[K
remote: Compressing objects:   5% (3109/62171)   ^[[K
remote: Compressing objects:   6% (3731/62171)   ^[[K
remote: Compressing objects:   7% (4352/62171)   ^[[K
remote: Compressing objects:   8% (4974/62171)   ^[[K
remote: Compressing objects:   9% (5596/62171)   ^[[K
remote: Compressing objects:   9% (6169/62171)   ^[[K
remote: Compressing objects:  10% (6218/62171)   ^[[K
remote: Compressing objects:  11% (6839/62171)   ^[[K
remote: Compressing objects:  12% (7461/62171)   ^[[K
remote: Compressing objects:  13% (8083/62171)   ^[[K
remote: Compressing objects:  14% (8704/62171)   ^[[K
remote: Compressing objects:  15% (9326/62171)   ^[[K
remote: Compressing objects:  16% (9948/62171)   ^[[K
remote: Compressing objects:  16% (10087/62171)   ^[[K
remote: Compressing objects:  17% (10570/62171)   ^[[K
remote: Compressing objects:  18% (11191/62171)   ^[[K
remote: Compressing objects:  19% (11813/62171)   ^[[K
remote: Compressing objects:  20% (12435/62171)   ^[[K
remote: Compressing objects:  21% (13056/62171)   ^[[K
remote: Compressing objects:  22% (13678/62171)   ^[[K
remote: Compressing objects:  23% (14300/62171)   ^[[K
remote: Compressing objects:  24% (14922/62171)   ^[[K
remote: Compressing objects:  25% (15543/62171)   ^[[K
remote: Compressing objects:  26% (16165/62171)   ^[[K
remote: Compressing objects:  26% (16487/62171)   ^[[K
remote: Compressing objects:  27% (16787/62171)   ^[[K
remote: Compressing objects:  28% (17408/62171)   ^[[K
remote: Compressing objects:  29% (18030/62171)   ^[[K
remote: Compressing objects:  30% (18652/62171)   ^[[K
remote: Compressing objects:  31% (19274/62171)   ^[[K
remote: Compressing objects:  32% (19895/62171)   ^[[K
remote: Compressing objects:  32% (20103/62171)   ^[[K
remote: Compressing objects:  33% (20517/62171)   ^[[K
remote: Compressing objects:  34% (21139/62171)   ^[[K
remote: Compressing objects:  34% (21548/62171)   ^[[K
remote: Compressing objects:  35% (21760/62171)   ^[[K
remote: Compressing objects:  36% (22382/62171)   ^[[K
remote: Compressing objects:  37% (23004/62171)   ^[[K
remote: Compressing objects:  38% (23625/62171)   ^[[K
remote: Compressing objects:  38% (24076/62171)   ^[[K
remote: Compressing objects:  39% (24247/62171)   ^[[K
remote: Compressing objects:  40% (24869/62171)   ^[[K
remote: Compressing objects:  41% (25491/62171)   ^[[K
remote: Compressing objects:  42% (26112/62171)   ^[[K
remote: Compressing objects:  43% (26734/62171)   ^[[K
remote: Compressing objects:  44% (27356/62171)   ^[[K
remote: Compressing objects:  44% (27795/62171)   ^[[K
remote: Compressing objects:  45% (27977/62171)   ^[[K
remote: Compressing objects:  46% (28599/62171)   ^[[K
remote: Compressing objects:  47% (29221/62171)   ^[[K
remote: Compressing objects:  48% (29843/62171)   ^[[K
remote: Compressing objects:  49% (30464/62171)   ^[[K
remote: Compressing objects:  49% (30477/62171)   ^[[K
remote: Compressing objects:  50% (31086/62171)   ^[[K
remote: Compressing objects:  51% (31708/62171)   ^[[K
remote: Compressing objects:  51% (31804/62171)   ^[[K
remote: Compressing objects:  52% (32329/62171)   ^[[K
remote: Compressing objects:  53% (32951/62171)   ^[[K
remote: Compressing objects:  53% (33336/62171)   ^[[K
remote: Compressing objects:  54% (33573/62171)   ^[[K
remote: Compressing objects:  55% (34195/62171)   ^[[K
remote: Compressing objects:  55% (34621/62171)   ^[[K
remote: Compressing objects:  56% (34816/62171)   ^[[K
remote: Compressing objects:  57% (35438/62171)   ^[[K
remote: Compressing objects:  57% (36047/62171)   ^[[K
remote: Compressing objects:  58% (36060/62171)   ^[[K
remote: Compressing objects:  59% (36681/62171)   ^[[K
remote: Compressing objects:  60% (37303/62171)   ^[[K
remote: Compressing objects:  60% (37304/62171)   ^[[K
remote: Compressing objects:  61% (37925/62171)   ^[[K
remote: Compressing objects:  62% (38547/62171)   ^[[K
remote: Compressing objects:  62% (38549/62171)   ^[[K
remote: Compressing objects:  63% (39168/62171)   ^[[K
remote: Compressing objects:  64% (39790/62171)   ^[[K
remote: Compressing objects:  64% (40163/62171)   ^[[K
remote: Compressing objects:  65% (40412/62171)   ^[[K
remote: Compressing objects:  66% (41033/62171)   ^[[K
remote: Compressing objects:  66% (41542/62171)   ^[[K
remote: Compressing objects:  67% (41655/62171)   ^[[K
remote: Compressing objects:  68% (42277/62171)   ^[[K
remote: Compressing objects:  68% (42297/62171)   ^[[K
remote: Compressing objects:  69% (42898/62171)   ^[[K
remote: Compressing objects:  69% (43485/62171)   ^[[K
remote: Compressing objects:  70% (43520/62171)   ^[[K
remote: Compressing objects:  71% (44142/62171)   ^[[K
remote: Compressing objects:  71% (44615/62171)   ^[[K
remote: Compressing objects:  72% (44764/62171)   ^[[K
remote: Compressing objects:  73% (45385/62171)   ^[[K
remote: Compressing objects:  73% (45935/62171)   ^[[K
remote: Compressing objects:  74% (46007/62171)   ^[[K
remote: Compressing objects:  74% (46615/62171)   ^[[K
remote: Compressing objects:  75% (46629/62171)   ^[[K
remote: Compressing objects:  76% (47250/62171)   ^[[K
remote: Compressing objects:  77% (47872/62171)   ^[[K
remote: Compressing objects:  77% (48049/62171)   ^[[K
remote: Compressing objects:  78% (48494/62171)   ^[[K
remote: Compressing objects:  79% (49116/62171)   ^[[K
remote: Compressing objects:  79% (49240/62171)   ^[[K
remote: Compressing objects:  80% (49737/62171)   ^[[K
remote: Compressing objects:  81% (50359/62171)   ^[[K
remote: Compressing objects:  81% (50499/62171)   ^[[K
remote: Compressing objects:  82% (50981/62171)   ^[[K
remote: Compressing objects:  83% (51602/62171)   ^[[K
remote: Compressing objects:  83% (51664/62171)   ^[[K
remote: Compressing objects:  84% (52224/62171)   ^[[K
remote: Compressing objects:  84% (52828/62171)   ^[[K
remote: Compressing objects:  85% (52846/62171)   ^[[K
remote: Compressing objects:  86% (53468/62171)   ^[[K
remote: Compressing objects:  87% (54089/62171)   ^[[K
remote: Compressing objects:  87% (54235/62171)   ^[[K
remote: Compressing objects:  88% (54711/62171)   ^[[K
remote: Compressing objects:  89% (55333/62171)   ^[[K
remote: Compressing objects:  89% (55560/62171)   ^[[K
remote: Compressing objects:  90% (55954/62171)   ^[[K
remote: Compressing objects:  91% (56576/62171)   ^[[K
remote: Compressing objects:  91% (56705/62171)   ^[[K
remote: Compressing objects:  92% (57198/62171)   ^[[K
remote: Compressing objects:  93% (57820/62171)   ^[[K
remote: Compressing objects:  94% (58441/62171)   ^[[K
remote: Compressing objects:  95% (59063/62171)   ^[[K
remote: Compressing objects:  96% (59685/62171)   ^[[K
remote: Compressing objects:  97% (60306/62171)   ^[[K
remote: Compressing objects:  98% (60928/62171)   ^[[K
remote: Compressing objects:  99% (61550/62171)   ^[[K
remote: Compressing objects: 100% (62171/62171)   ^[[K
remote: Compressing objects: 100% (62171/62171), done.^[[K
Receiving objects:   0% (1/66330)   
Receiving objects:   1% (664/66330)   
Receiving objects:   2% (1327/66330)   
Receiving objects:   3% (1990/66330)   
Receiving objects:   4% (2654/66330)   
Receiving objects:   5% (3317/66330)   
Receiving objects:   6% (3980/66330)   
Receiving objects:   7% (4644/66330), 3.78 MiB | 7.54 MiB/s   
Receiving objects:   8% (5307/66330), 3.78 MiB | 7.54 MiB/s   
Receiving objects:   9% (5970/66330), 3.78 MiB | 7.54 MiB/s   
Receiving objects:  10% (6633/66330), 3.78 MiB | 7.54 MiB/s   
Receiving objects:  10% (6706/66330), 3.78 MiB | 7.54 MiB/s   
Receiving objects:  11% (7297/66330), 9.37 MiB | 9.35 MiB/s   
Receiving objects:  12% (7960/66330), 9.37 MiB | 9.35 MiB/s   
Receiving objects:  13% (8623/66330), 9.37 MiB | 9.35 MiB/s   
Receiving objects:  14% (9287/66330), 9.37 MiB | 9.35 MiB/s   
Receiving objects:  15% (9950/66330), 9.37 MiB | 9.35 MiB/s   
Receiving objects:  16% (10613/66330), 9.37 MiB | 9.35 MiB/s   
Receiving objects:  17% (11277/66330), 14.57 MiB | 9.70 MiB/s   
Receiving objects:  18% (11940/66330), 14.57 MiB | 9.70 MiB/s   
Receiving objects:  19% (12603/66330), 14.57 MiB | 9.70 MiB/s   
Receiving objects:  20% (13266/66330), 14.57 MiB | 9.70 MiB/s   
Receiving objects:  21% (13930/66330), 14.57 MiB | 9.70 MiB/s   
Receiving objects:  21% (13944/66330), 14.57 MiB | 9.70 MiB/s   
Receiving objects:  22% (14593/66330), 19.20 MiB | 9.59 MiB/s   
Receiving objects:  23% (15256/66330), 19.20 MiB | 9.59 MiB/s   
Receiving objects:  24% (15920/66330), 19.20 MiB | 9.59 MiB/s   
Receiving objects:  25% (16583/66330), 19.20 MiB | 9.59 MiB/s   
Receiving objects:  26% (17246/66330), 19.20 MiB | 9.59 MiB/s   
Receiving objects:  27% (17910/66330), 23.94 MiB | 9.57 MiB/s   
Receiving objects:  28% (18573/66330), 23.94 MiB | 9.57 MiB/s   
Receiving objects:  29% (19236/66330), 23.94 MiB | 9.57 MiB/s   
Receiving objects:  30% (19899/66330), 23.94 MiB | 9.57 MiB/s   
Receiving objects:  30% (20399/66330), 23.94 MiB | 9.57 MiB/s   
Receiving objects:  31% (20563/66330), 28.86 MiB | 9.62 MiB/s   
Receiving objects:  32% (21226/66330), 28.86 MiB | 9.62 MiB/s   
Receiving objects:  33% (21889/66330), 28.86 MiB | 9.62 MiB/s   
Receiving objects:  34% (22553/66330), 32.76 MiB | 9.36 MiB/s   
Receiving objects:  35% (23216/66330), 32.76 MiB | 9.36 MiB/s   
Receiving objects:  35% (23862/66330), 32.76 MiB | 9.36 MiB/s   
Receiving objects:  36% (23879/66330), 36.13 MiB | 9.03 MiB/s   
Receiving objects:  37% (24543/66330), 36.13 MiB | 9.03 MiB/s   
Receiving objects:  38% (25206/66330), 39.94 MiB | 8.87 MiB/s   
Receiving objects:  39% (25869/66330), 39.94 MiB | 8.87 MiB/s   
Receiving objects:  39% (26245/66330), 39.94 MiB | 8.87 MiB/s   
Receiving objects:  40% (26532/66330), 43.59 MiB | 8.85 MiB/s   
Receiving objects:  41% (27196/66330), 43.59 MiB | 8.85 MiB/s   
Receiving objects:  41% (27532/66330), 49.32 MiB | 7.72 MiB/s   
Receiving objects:  42% (27859/66330), 53.34 MiB | 7.59 MiB/s   
Receiving objects:  43% (28522/66330), 53.34 MiB | 7.59 MiB/s   
Receiving objects:  44% (29186/66330), 53.34 MiB | 7.59 MiB/s   
Receiving objects:  44% (29273/66330), 53.34 MiB | 7.59 MiB/s   
Receiving objects:  45% (29849/66330), 57.98 MiB | 7.57 MiB/s   
Receiving objects:  46% (30512/66330), 57.98 MiB | 7.57 MiB/s   
Receiving objects:  47% (31176/66330), 62.26 MiB | 7.42 MiB/s   
Receiving objects:  48% (31839/66330), 62.26 MiB | 7.42 MiB/s   
Receiving objects:  48% (32414/66330), 62.26 MiB | 7.42 MiB/s   
Receiving objects:  49% (32502/66330), 66.50 MiB | 7.50 MiB/s   
Receiving objects:  50% (33165/66330), 66.50 MiB | 7.50 MiB/s   
Receiving objects:  51% (33829/66330), 70.67 MiB | 7.67 MiB/s   
Receiving objects:  51% (34388/66330), 74.28 MiB | 7.63 MiB/s   
Receiving objects:  52% (34492/66330), 74.28 MiB | 7.63 MiB/s   
Receiving objects:  53% (35155/66330), 74.28 MiB | 7.63 MiB/s   
Receiving objects:  54% (35819/66330), 78.46 MiB | 7.75 MiB/s   
Receiving objects:  55% (36482/66330), 78.46 MiB | 7.75 MiB/s   
Receiving objects:  55% (36962/66330), 78.46 MiB | 7.75 MiB/s   
Receiving objects:  56% (37145/66330), 82.54 MiB | 7.81 MiB/s   
Receiving objects:  57% (37809/66330), 82.54 MiB | 7.81 MiB/s   
Receiving objects:  58% (38472/66330), 86.89 MiB | 8.35 MiB/s   
Receiving objects:  58% (38699/66330), 86.89 MiB | 8.35 MiB/s   
Receiving objects:  59% (39135/66330), 90.06 MiB | 8.16 MiB/s   
Receiving objects:  60% (39798/66330), 93.28 MiB | 7.84 MiB/s   
Receiving objects:  60% (39926/66330), 93.28 MiB | 7.84 MiB/s   
Receiving objects:  61% (40462/66330), 96.56 MiB | 7.62 MiB/s   
Receiving objects:  62% (41125/66330), 100.32 MiB | 7.51 MiB/s   
Receiving objects:  62% (41303/66330), 100.32 MiB | 7.51 MiB/s   
Receiving objects:  63% (41788/66330), 103.75 MiB | 7.34 MiB/s   
Receiving objects:  64% (42452/66330), 107.31 MiB | 7.33 MiB/s   
Receiving objects:  65% (43115/66330), 107.31 MiB | 7.33 MiB/s   
Receiving objects:  65% (43316/66330), 107.31 MiB | 7.33 MiB/s   
Receiving objects:  66% (43778/66330), 111.11 MiB | 7.25 MiB/s   
Receiving objects:  67% (44442/66330), 111.11 MiB | 7.25 MiB/s   
Receiving objects:  67% (44999/66330), 114.94 MiB | 7.19 MiB/s   
Receiving objects:  68% (45105/66330), 118.25 MiB | 6.94 MiB/s   
Receiving objects:  69% (45768/66330), 121.57 MiB | 6.98 MiB/s   
Receiving objects:  70% (46431/66330), 121.57 MiB | 6.98 MiB/s   
Receiving objects:  70% (46902/66330), 121.57 MiB | 6.98 MiB/s   
Receiving objects:  71% (47095/66330), 125.04 MiB | 7.03 MiB/s   
Receiving objects:  72% (47758/66330), 125.04 MiB | 7.03 MiB/s   
Receiving objects:  73% (48421/66330), 128.26 MiB | 7.02 MiB/s   
Receiving objects:  73% (48662/66330), 128.26 MiB | 7.02 MiB/s   
Receiving objects:  74% (49085/66330), 131.68 MiB | 6.95 MiB/s   
Receiving objects:  75% (49748/66330), 131.68 MiB | 6.95 MiB/s   
Receiving objects:  76% (50411/66330), 136.07 MiB | 7.16 MiB/s   
Receiving objects:  76% (50650/66330), 136.07 MiB | 7.16 MiB/s   
Receiving objects:  77% (51075/66330), 139.36 MiB | 7.10 MiB/s   
Receiving objects:  78% (51738/66330), 142.46 MiB | 6.94 MiB/s   
Receiving objects:  79% (52401/66330), 142.46 MiB | 6.94 MiB/s   
Receiving objects:  79% (52977/66330), 142.46 MiB | 6.94 MiB/s   
Receiving objects:  80% (53064/66330), 142.46 MiB | 6.94 MiB/s   
Receiving objects:  81% (53728/66330), 146.50 MiB | 6.99 MiB/s   
Receiving objects:  82% (54391/66330), 146.50 MiB | 6.99 MiB/s   
Receiving objects:  83% (55054/66330), 146.50 MiB | 6.99 MiB/s   
Receiving objects:  84% (55718/66330), 146.50 MiB | 6.99 MiB/s   
Receiving objects:  85% (56381/66330), 150.96 MiB | 7.25 MiB/s   
Receiving objects:  86% (57044/66330), 150.96 MiB | 7.25 MiB/s   
Receiving objects:  86% (57487/66330), 150.96 MiB | 7.25 MiB/s   
Receiving objects:  87% (57708/66330), 155.18 MiB | 7.45 MiB/s   
Receiving objects:  88% (58371/66330), 155.18 MiB | 7.45 MiB/s   
Receiving objects:  89% (59034/66330), 158.97 MiB | 7.52 MiB/s   
Receiving objects:  89% (59509/66330), 158.97 MiB | 7.52 MiB/s   
Receiving objects:  90% (59697/66330), 162.74 MiB | 7.64 MiB/s   
Receiving objects:  91% (60361/66330), 162.74 MiB | 7.64 MiB/s   
Receiving objects:  92% (61024/66330), 162.74 MiB | 7.64 MiB/s   
Receiving objects:  93% (61687/66330), 166.41 MiB | 7.70 MiB/s   
Receiving objects:  93% (61944/66330), 166.41 MiB | 7.70 MiB/s   
Receiving objects:  94% (62351/66330), 169.82 MiB | 7.48 MiB/s   
Receiving objects:  95% (63014/66330), 169.82 MiB | 7.48 MiB/s   
Receiving objects:  96% (63677/66330), 173.47 MiB | 7.57 MiB/s   
Receiving objects:  97% (64341/66330), 173.47 MiB | 7.57 MiB/s   
Receiving objects:  98% (65004/66330), 173.47 MiB | 7.57 MiB/s   
Receiving objects:  99% (65667/66330), 173.47 MiB | 7.57 MiB/s   
Receiving objects: 100% (66330/66330), 173.47 MiB | 7.57 MiB/s   
Receiving objects: 100% (66330/66330), 177.05 MiB | 7.70 MiB/s, done.
Resolving deltas:   0% (0/5370)   
Resolving deltas:   1% (54/5370)   
Resolving deltas:   2% (110/5370)   
remote: Total 66330 (delta 5370), reused 16695 (delta 3229), pack-reused 0^[[K
Resolving deltas:   3% (162/5370)   
Resolving deltas:   4% (216/5370)   
Resolving deltas:   5% (269/5370)   
Resolving deltas:   6% (324/5370)   
Resolving deltas:   7% (376/5370)   
Resolving deltas:   8% (434/5370)   
Resolving deltas:   9% (485/5370)   
Resolving deltas:  10% (537/5370)   
Resolving deltas:  11% (593/5370)   
Resolving deltas:  12% (646/5370)   
Resolving deltas:  13% (699/5370)   
Resolving deltas:  14% (752/5370)   
Resolving deltas:  15% (808/5370)   
Resolving deltas:  16% (861/5370)   
Resolving deltas:  17% (916/5370)   
Resolving deltas:  18% (970/5370)   
Resolving deltas:  19% (1022/5370)   
Resolving deltas:  20% (1074/5370)   
Resolving deltas:  21% (1129/5370)   
Resolving deltas:  22% (1183/5370)   
Resolving deltas:  23% (1237/5370)   
Resolving deltas:  24% (1289/5370)   
Resolving deltas:  25% (1345/5370)   
Resolving deltas:  26% (1397/5370)   
Resolving deltas:  27% (1450/5370)   
Resolving deltas:  28% (1504/5370)   
Resolving deltas:  29% (1558/5370)   
Resolving deltas:  30% (1611/5370)   
Resolving deltas:  31% (1667/5370)   
Resolving deltas:  32% (1719/5370)   
Resolving deltas:  33% (1773/5370)   
Resolving deltas:  34% (1827/5370)   
Resolving deltas:  35% (1880/5370)   
Resolving deltas:  36% (1935/5370)   
Resolving deltas:  37% (1987/5370)   
Resolving deltas:  38% (2041/5370)   
Resolving deltas:  39% (2095/5370)   
Resolving deltas:  40% (2150/5370)   
Resolving deltas:  41% (2202/5370)   
Resolving deltas:  42% (2256/5370)   
Resolving deltas:  43% (2310/5370)   
Resolving deltas:  44% (2367/5370)   
Resolving deltas:  45% (2420/5370)   
Resolving deltas:  46% (2479/5370)   
Resolving deltas:  47% (2525/5370)   
Resolving deltas:  48% (2581/5370)   
Resolving deltas:  49% (2632/5370)   
Resolving deltas:  50% (2686/5370)   
Resolving deltas:  51% (2739/5370)   
Resolving deltas:  52% (2793/5370)   
Resolving deltas:  53% (2848/5370)   
Resolving deltas:  54% (2900/5370)   
Resolving deltas:  55% (2954/5370)   
Resolving deltas:  56% (3009/5370)   
Resolving deltas:  57% (3066/5370)   
Resolving deltas:  58% (3115/5370)   
Resolving deltas:  59% (3169/5370)   
Resolving deltas:  60% (3229/5370)   
Resolving deltas:  61% (3279/5370)   
Resolving deltas:  62% (3331/5370)   
Resolving deltas:  63% (3384/5370)   
Resolving deltas:  64% (3437/5370)   
Resolving deltas:  65% (3493/5370)   
Resolving deltas:  66% (3547/5370)   
Resolving deltas:  67% (3599/5370)   
Resolving deltas:  68% (3662/5370)   
Resolving deltas:  69% (3706/5370)   
Resolving deltas:  70% (3759/5370)   
Resolving deltas:  71% (3813/5370)   
Resolving deltas:  72% (3867/5370)   
Resolving deltas:  73% (3921/5370)   
Resolving deltas:  74% (3974/5370)   
Resolving deltas:  75% (4028/5370)   
Resolving deltas:  76% (4082/5370)   
Resolving deltas:  77% (4135/5370)   
Resolving deltas:  78% (4189/5370)   
Resolving deltas:  79% (4247/5370)   
Resolving deltas:  80% (4299/5370)   
Resolving deltas:  81% (4350/5370)   
Resolving deltas:  82% (4404/5370)   
Resolving deltas:  83% (4458/5370)   
Resolving deltas:  84% (4511/5370)   
Resolving deltas:  85% (4565/5370)   
Resolving deltas:  86% (4619/5370)   
Resolving deltas:  87% (4672/5370)   
Resolving deltas:  88% (4726/5370)   
Resolving deltas:  89% (4780/5370)   
Resolving deltas:  90% (4833/5370)   
Resolving deltas:  91% (4887/5370)   
Resolving deltas:  92% (4941/5370)   
Resolving deltas:  93% (4995/5370)   
Resolving deltas:  94% (5048/5370)   
Resolving deltas:  95% (5102/5370)   
Resolving deltas:  96% (5163/5370)   
Resolving deltas:  97% (5211/5370)   
Resolving deltas:  98% (5263/5370)   
Resolving deltas:  99% (5317/5370)   
Resolving deltas: 100% (5370/5370)   
Resolving deltas: 100% (5370/5370), done.
Checking out files:  28% (17710/62473)   
Checking out files:  29% (18118/62473)   
Checking out files:  30% (18742/62473)   
Checking out files:  31% (19367/62473)   
Checking out files:  32% (19992/62473)   
Checking out files:  33% (20617/62473)   
Checking out files:  34% (21241/62473)   
Checking out files:  35% (21866/62473)   
Checking out files:  36% (22491/62473)   
Checking out files:  37% (23116/62473)   
Checking out files:  38% (23740/62473)   
Checking out files:  39% (24365/62473)   
Checking out files:  40% (24990/62473)   
Checking out files:  41% (25614/62473)   
Checking out files:  42% (26239/62473)   
Checking out files:  43% (26864/62473)   
Checking out files:  44% (27489/62473)   
Checking out files:  44% (27764/62473)   
Checking out files:  45% (28113/62473)   
Checking out files:  46% (28738/62473)   
Checking out files:  47% (29363/62473)   
Checking out files:  48% (29988/62473)   
Checking out files:  49% (30612/62473)   
Checking out files:  50% (31237/62473)   
Checking out files:  51% (31862/62473)   
Checking out files:  52% (32486/62473)   
Checking out files:  53% (33111/62473)   
Checking out files:  54% (33736/62473)   
Checking out files:  55% (34361/62473)   
Checking out files:  56% (34985/62473)   
Checking out files:  57% (35610/62473)   
Checking out files:  58% (36235/62473)   
Checking out files:  59% (36860/62473)   
Checking out files:  60% (37484/62473)   
Checking out files:  60% (37662/62473)   
Checking out files:  61% (38109/62473)   
Checking out files:  62% (38734/62473)   
Checking out files:  63% (39358/62473)   
Checking out files:  64% (39983/62473)   
Checking out files:  65% (40608/62473)   
Checking out files:  66% (41233/62473)   
Checking out files:  67% (41857/62473)   
Checking out files:  68% (42482/62473)   
Checking out files:  69% (43107/62473)   
Checking out files:  70% (43732/62473)   
Checking out files:  71% (44356/62473)   
Checking out files:  72% (44981/62473)   
Checking out files:  73% (45606/62473)   
Checking out files:  74% (46231/62473)   
Checking out files:  75% (46855/62473)   
Checking out files:  75% (47090/62473)   
Checking out files:  76% (47480/62473)   
Checking out files:  77% (48105/62473)   
Checking out files:  78% (48729/62473)   
Checking out files:  79% (49354/62473)   
Checking out files:  80% (49979/62473)   
Checking out files:  81% (50604/62473)   
Checking out files:  82% (51228/62473)   
Checking out files:  83% (51853/62473)   
Checking out files:  84% (52478/62473)   
Checking out files:  85% (53103/62473)   
Checking out files:  86% (53727/62473)   
Checking out files:  87% (54352/62473)   
Checking out files:  88% (54977/62473)   
Checking out files:  89% (55601/62473)   
Checking out files:  90% (56226/62473)   
Checking out files:  91% (56851/62473)   
Checking out files:  92% (57476/62473)   
Checking out files:  93% (58100/62473)   
Checking out files:  94% (58725/62473)   
Checking out files:  94% (58787/62473)   
Checking out files:  95% (59350/62473)   
Checking out files:  96% (59975/62473)   
Checking out files:  97% (60599/62473)   
Checking out files:  98% (61224/62473)   
Checking out files:  99% (61849/62473)   
Checking out files: 100% (62473/62473)   
Checking out files: 100% (62473/62473), done.
[console-expect]#
echo $?
0
[console-expect]#
cd /home/kvmci/linux
[console-expect]#
echo $?
0
[console-expect]#
Downloading linux kernel config
make ppc64le_defconfig
Using ./arch/powerpc/configs/ppc64_defconfig as base
Merging ./arch/powerpc/configs/le.config
#
# merged configuration written to .config (needs make)
#
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --olddefconfig Kconfig
#
# configuration written to .config
#
[console-expect]#
echo $?
0
[console-expect]#
Compile and install linux kernel
make -j 21 -s && make modules && make modules_install && make install
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
ld: warning: orphan section `.gnu.hash
' from `linker stubs' being placed in section `.gnu.hash'
ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'
ld: warning: orphan section `.gnu.hash' from `linker stubs' being placed in section `.gnu.hash'
  CALL    scripts/checksyscalls.sh
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/modpost.o
  CC      scripts/mod/devicetable-offsets.s
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  Building modules, stage 2.
  MODPOST 264 modules
  INSTALL arch/powerpc/crypto/crc32c-vpmsum.ko
  INSTALL arch/powerpc/crypto/md5-ppc.ko
  INSTALL arch/powerpc/crypto/sha1-powerpc.ko
  INSTALL arch/powerpc/kernel/rtas_flash.ko
  INSTALL arch/powerpc/kvm/kvm-hv.ko
  INSTALL arch/powerpc/kvm/kvm.ko
  INSTALL arch/powerpc/oprofile/oprofile.ko
  INSTALL arch/powerpc/platforms/pseries/hvcserver.ko
  INSTALL arch/powerpc/platforms/pseries/scanlog.ko
  INSTALL crypto/anubis.ko
  INSTALL crypto/arc4.ko
  INSTALL crypto/async_tx/async_memcpy.ko
  INSTALL crypto/async_tx/async_pq.ko
  INSTALL crypto/async_tx/async_raid6_recov.ko
  INSTALL crypto/async_tx/async_tx.ko
  INSTALL crypto/async_tx/async_xor.ko
  INSTALL crypto/authenc.ko
  INSTALL crypto/authencesn.ko
  INSTALL crypto/blowfish_common.ko
  INSTALL crypto/blowfish_generic.ko
  INSTALL crypto/cast6_generic.ko
  INSTALL crypto/cast_common.ko
  INSTALL crypto/cbc.ko
  INSTALL crypto/ccm.ko
  INSTALL crypto/cmac.ko
  INSTALL crypto/crct10dif_common.ko
  INSTALL crypto/crct10dif_generic.ko
  INSTALL crypto/crypto_engine.ko
  INSTALL crypto/ctr.ko
  INSTALL crypto/deflate.ko
  INSTALL crypto/des_generic.ko
  INSTALL crypto/drbg.ko
  INSTALL crypto/ecb.ko
  INSTALL crypto/echainiv.ko
  INSTALL crypto/gf128mul.ko
  INSTALL crypto/ghash-generic.ko
  INSTALL crypto/jitterentropy_rng.ko
  INSTALL crypto/khazad.ko
  INSTALL crypto/lzo.ko
  INSTALL crypto/md4.ko
  INSTALL crypto/md5.ko
  INSTALL crypto/michael_mic.ko
  INSTALL crypto/pcbc.ko
  INSTALL crypto/salsa20_generic.ko
  INSTALL crypto/seqiv.ko
  INSTALL crypto/serpent_generic.ko
  INSTALL crypto/sha1_generic.ko
  INSTALL crypto/sha512_generic.ko
  INSTALL crypto/tcrypt.ko
  INSTALL crypto/tea.ko
  INSTALL crypto/tgr192.ko
  INSTALL crypto/twofish_common.ko
  INSTALL crypto/twofish_generic.ko
  INSTALL crypto/wp512.ko
  INSTALL crypto/xor.ko
  INSTALL drivers/block/nbd.ko
  INSTALL drivers/block/virtio_blk.ko
  INSTALL drivers/char/bsr.ko
  INSTALL drivers/char/hw_random/powernv-rng.ko
  INSTALL drivers/char/hw_random/pseries-rng.ko
  INSTALL drivers/char/hw_random/rng-core.ko
  INSTALL drivers/char/powernv-op-panel.ko
  INSTALL drivers/char/virtio_console.ko
  INSTALL drivers/crypto/virtio/virtio_crypto.ko
  INSTALL drivers/crypto/vmx/vmx-crypto.ko
  INSTALL drivers/infiniband/core/ib_cm.ko
  INSTALL drivers/infiniband/core/ib_core.ko
  INSTALL drivers/infiniband/core/ib_umad.ko
  INSTALL drivers/infiniband/core/ib_uverbs.ko
  INSTALL drivers/infiniband/core/iw_cm.ko
  INSTALL drivers/infiniband/core/rdma_cm.ko
  INSTALL drivers/infiniband/core/rdma_ucm.ko
  INSTALL drivers/infiniband/hw/cxgb3/iw_cxgb3.ko
  INSTALL drivers/infiniband/hw/cxgb4/iw_cxgb4.ko
  INSTALL drivers/infiniband/hw/mlx4/mlx4_ib.ko
  INSTALL drivers/infiniband/hw/mthca/ib_mthca.ko
  INSTALL drivers/infiniband/ulp/ipoib/ib_ipoib.ko
  INSTALL drivers/infiniband/ulp/iser/ib_iser.ko
  INSTALL drivers/infiniband/ulp/srp/ib_srp.ko
  INSTALL drivers/input/evdev.ko
  INSTALL drivers/input/input-leds.ko
  INSTALL drivers/input/misc/pcspkr.ko
  INSTALL drivers/leds/led-class.ko
  INSTALL drivers/leds/leds-powernv.ko
  INSTALL drivers/md/dm-bufio.ko
  INSTALL drivers/md/dm-crypt.ko
  INSTALL drivers/md/dm-log.ko
  INSTALL drivers/md/dm-mirror.ko
  INSTALL drivers/md/dm-multipath.ko
  INSTALL drivers/md/dm-queue-length.ko
  INSTALL drivers/md/dm-region-hash.ko
  INSTALL drivers/md/dm-round-robin.ko
  INSTALL drivers/md/dm-service-time.ko
  INSTALL drivers/md/dm-snapshot.ko
  INSTALL drivers/md/dm-zero.ko
  INSTALL drivers/md/faulty.ko
  INSTALL drivers/md/multipath.ko
  INSTALL drivers/md/raid10.ko
  INSTALL drivers/md/raid456.ko
  INSTALL drivers/misc/cxl/cxl.ko
  INSTALL drivers/misc/ocxl/ocxl.ko
  INSTALL drivers/net/bonding/bonding.ko
  INSTALL drivers/net/dummy.ko
  INSTALL drivers/net/ethernet/3com/3c59x.ko
  INSTALL drivers/net/ethernet/alteon/acenic.ko
  INSTALL drivers/net/ethernet/amd/pcnet32.ko
  INSTALL drivers/net/ethernet/broadcom/bnx2.ko
  INSTALL drivers/net/ethernet/broadcom/bnx2x/bnx2x.ko
  INSTALL drivers/net/ethernet/broadcom/cnic.ko
  INSTALL drivers/net/ethernet/chelsio/cxgb/cxgb.ko
  INSTALL drivers/net/ethernet/chelsio/cxgb3/cxgb3.ko
  INSTALL drivers/net/ethernet/chelsio/cxgb4/cxgb4.ko
  INSTALL drivers/net/ethernet/chelsio/libcxgb/libcxgb.ko
  INSTALL drivers/net/ethernet/emulex/benet/be2net.ko
  INSTALL drivers/net/ethernet/ibm/ibmveth.ko
  INSTALL drivers/net/ethernet/intel/i40e/i40e.ko
  INSTALL drivers/net/ethernet/intel/ixgb/ixgb.ko
  INSTALL drivers/net/ethernet/intel/ixgbe/ixgbe.ko
  INSTALL drivers/net/ethernet/mellanox/mlx4/mlx4_core.ko
  INSTALL drivers/net/ethernet/mellanox/mlx4/mlx4_en.ko
  INSTALL drivers/net/ethernet/myricom/myri10ge/myri10ge.ko
  INSTALL drivers/net/ethernet/neterion/s2io.ko
  INSTALL drivers/net/ethernet/qlogic/netxen/netxen_nic.ko
  INSTALL drivers/net/ethernet/qlogic/qlge/qlge.ko
  INSTALL drivers/net/mdio.ko
  INSTALL drivers/net/net_failover.ko
  INSTALL drivers/net/phy/bcm-phy-lib.ko
  INSTALL drivers/net/phy/broadcom.ko
  INSTALL drivers/net/ppp/bsd_comp.ko
  INSTALL drivers/net/ppp/ppp_async.ko
  INSTALL drivers/net/ppp/ppp_deflate.ko
  INSTALL drivers/net/ppp/ppp_generic.ko
  INSTALL drivers/net/ppp/ppp_synctty.ko
  INSTALL drivers/net/ppp/pppoe.ko
  INSTALL drivers/net/ppp/pppox.ko
  INSTALL drivers/net/slip/slhc.ko
  INSTALL drivers/net/tun.ko
  INSTALL drivers/net/virtio_net.ko
  INSTALL drivers/pci/hotplug/rpadlpar_io.ko
  INSTALL drivers/pci/hotplug/rpaphp.ko
  INSTALL drivers/scsi/be2iscsi/be2iscsi.ko
  INSTALL drivers/scsi/bnx2i/bnx2i.ko
  INSTALL drivers/scsi/cxgbi/cxgb3i/cxgb3i.ko
  INSTALL drivers/scsi/cxgbi/cxgb4i/cxgb4i.ko
  INSTALL drivers/scsi/cxgbi/libcxgbi.ko
  INSTALL drivers/scsi/cxlflash/cxlflash.ko
  INSTALL drivers/scsi/device_handler/scsi_dh_alua.ko
  INSTALL drivers/scsi/device_handler/scsi_dh_rdac.ko
  INSTALL drivers/scsi/ibmvscsi/ibmvfc.ko
  INSTALL drivers/scsi/iscsi_boot_sysfs.ko
  INSTALL drivers/scsi/libiscsi.ko
  INSTALL drivers/scsi/libiscsi_tcp.ko
  INSTALL drivers/scsi/lpfc/lpfc.ko
  INSTALL drivers/scsi/mpt3sas/mpt3sas.ko
  INSTALL drivers/scsi/qla2xxx/qla2xxx.ko
  INSTALL drivers/scsi/qla4xxx/qla4xxx.ko
  INSTALL drivers/scsi/raid_class.ko
  INSTALL drivers/scsi/scsi_transport_iscsi.ko
  INSTALL drivers/scsi/scsi_transport_sas.ko
  INSTALL drivers/scsi/scsi_transport_spi.ko
  INSTALL drivers/scsi/st.ko
  INSTALL drivers/scsi/sym53c8xx_2/sym53c8xx.ko
  INSTALL drivers/scsi/virtio_scsi.ko
  INSTALL drivers/tty/hvc/hvcs.ko
  INSTALL drivers/tty/serial/icom.ko
  INSTALL drivers/tty/serial/jsm/jsm.ko
  INSTALL drivers/uio/uio.ko
  INSTALL drivers/usb/misc/appledisplay.ko
  INSTALL drivers/usb/mon/usbmon.ko
  INSTALL drivers/usb/storage/usb-storage.ko
  INSTALL drivers/vhost/vhost.ko
  INSTALL drivers/vhost/vhost_net.ko
  INSTALL drivers/video/fbdev/matrox/i2c-matroxfb.ko
  INSTALL drivers/video/fbdev/matrox/matroxfb_maven.ko
  INSTALL drivers/virtio/virtio.ko
  INSTALL drivers/virtio/virtio_balloon.ko
  INSTALL drivers/virtio/virtio_pci.ko
  INSTALL drivers/virtio/virtio_ring.ko
  INSTALL fs/autofs/autofs4.ko
  INSTALL fs/binfmt_misc.ko
  INSTALL fs/btrfs/btrfs.ko
  INSTALL fs/cifs/cifs.ko
  INSTALL fs/cramfs/cramfs.ko
  INSTALL fs/fat/vfat.ko
  INSTALL fs/fuse/fuse.ko
  INSTALL fs/hfs/hfs.ko
  INSTALL fs/hfsplus/hfsplus.ko
  INSTALL fs/jfs/jfs.ko
  INSTALL fs/nfsd/nfsd.ko
  INSTALL fs/nilfs2/nilfs2.ko
  INSTALL fs/overlayfs/overlay.ko
  INSTALL fs/reiserfs/reiserfs.ko
  INSTALL fs/squashfs/squashfs.ko
  INSTALL fs/udf/udf.ko
  INSTALL lib/crc-ccitt.ko
  INSTALL lib/crc-itu-t.ko
  INSTALL lib/crc-t10dif.ko
  INSTALL lib/lzo/lzo_compress.ko
  INSTALL lib/raid6/raid6_pq.ko
  INSTALL lib/xxhash.ko
  INSTALL lib/zstd/zstd_compress.ko
  INSTALL lib/zstd/zstd_decompress.ko
  INSTALL net/802/p8022.ko
  INSTALL net/802/psnap.ko
  INSTALL net/802/stp.ko
  INSTALL net/bridge/bridge.ko
  INSTALL net/core/failover.ko
  INSTALL net/ipv4/ah4.ko
  INSTALL net/ipv4/esp4.ko
  INSTALL net/ipv4/ipcomp.ko
  INSTALL net/ipv4/netfilter/ip_tables.ko
  INSTALL net/ipv4/netfilter/ipt_MASQUERADE.ko
  INSTALL net/ipv4/netfilter/ipt_REJECT.ko
  INSTALL net/ipv4/netfilter/iptable_filter.ko
  INSTALL net/ipv4/netfilter/iptable_mangle.ko
  INSTALL net/ipv4/netfilter/iptable_nat.ko
  INSTALL net/ipv4/netfilter/nf_defrag_ipv4.ko
  INSTALL net/ipv4/netfilter/nf_log_arp.ko
  INSTALL net/ipv4/netfilter/nf_log_ipv4.ko
  INSTALL net/ipv4/netfilter/nf_nat_ipv4.ko
  INSTALL net/ipv4/netfilter/nf_reject_ipv4.ko
  INSTALL net/ipv4/xfrm4_tunnel.ko
  INSTALL net/key/af_key.ko
  INSTALL net/llc/llc.ko
  INSTALL net/netfilter/nf_conntrack.ko
  INSTALL net/netfilter/nf_conntrack_ftp.ko
  INSTALL net/netfilter/nf_conntrack_irc.ko
  INSTALL net/netfilter/nf_conntrack_netlink.ko
  INSTALL net/netfilter/nf_conntrack_sip.ko
  INSTALL net/netfilter/nf_log_common.ko
  INSTALL net/netfilter/nf_nat.ko
  INSTALL net/netfilter/nf_nat_ftp.ko
  INSTALL net/netfilter/nf_nat_irc.ko
  INSTALL net/netfilter/nf_nat_sip.ko
  INSTALL net/netfilter/nfnetlink.ko
  INSTALL net/netfilter/nfnetlink_log.ko
  INSTALL net/netfilter/x_tables.ko
  INSTALL net/netfilter/xt_LOG.ko
  INSTALL net/netfilter/xt_NFLOG.ko
  INSTALL net/netfilter/xt_TCPMSS.ko
  INSTALL net/netfilter/xt_addrtype.ko
  INSTALL net/netfilter/xt_conntrack.ko
  INSTALL net/netfilter/xt_mark.ko
  INSTALL net/netfilter/xt_nat.ko
  INSTALL net/netfilter/xt_policy.ko
  INSTALL net/netfilter/xt_state.ko
  INSTALL net/netfilter/xt_tcpudp.ko
  INSTALL net/sched/act_bpf.ko
  INSTALL net/sched/cls_bpf.ko
  INSTALL net/sunrpc/xprtrdma/rpcrdma.ko
  INSTALL net/xfrm/xfrm_algo.ko
  INSTALL net/xfrm/xfrm_ipcomp.ko
  INSTALL net/xfrm/xfrm_user.ko
  INSTALL sound/core/oss/snd-mixer-oss.ko
  INSTALL sound/core/oss/snd-pcm-oss.ko
  INSTALL sound/core/seq/oss/snd-seq-oss.ko
  INSTALL sound/core/seq/snd-seq-dummy.ko
  INSTALL sound/core/seq/snd-seq-midi-event.ko
  INSTALL sound/core/seq/snd-seq.ko
  INSTALL sound/core/snd-pcm.ko
  INSTALL sound/core/snd-seq-device.ko
  INSTALL sound/core/snd-timer.ko
  INSTALL sound/core/snd.ko
  INSTALL sound/soundcore.ko
  DEPMOD  4.20.0-rc4-gd35c78239
  LDS     arch/powerpc/boot/zImage.lds
  WRAP    arch/powerpc/boot/zImage.pseries
  WRAP    arch/powerpc/boot/zImage.epapr
sh -x ./arch/powerpc/boot/install.sh "4.20.0-rc4-gd35c78239" vmlinux System.map "/boot"
+ set -e
+ '[' -x /root/bin/installkernel ']'
+ '[' -x /sbin/installkernel ']'
+ exec /sbin/installkernel 4.20.0-rc4-gd35c78239 vmlinux System.map /boot
[console-expect]#
echo $?
0
[console-expect]#
grub2-mkconfig  --output=/boot/grub2/grub.cfg
[ 3389.018774] sd 0:2:0:0: alua: port group df8d state A preferred supports TOlUSNA
[ 3389.018901] sd 0:2:0:0: alua: port group df8d state A preferred supports TOlUSNA
Generating grub configuration file ...

Found linux image: /boot/vmlinuz-4.20.0-rc4-gd35c78239
Found initrd image: /boot/initramfs-4.20.0-rc4-gd35c78239.img
Found linux image: /boot/vmlinuz-4.20.0-rc4-ga932cbc34
Found initrd image: /boot/initramfs-4.20.0-rc4-ga932cbc34.img
Found linux image: /boot/vmlinuz-0-rescue-c52acf7c8cd840f88608f77cc09506b5
Found initrd image: /boot/initramfs-0-rescue-c52acf7c8cd840f88608f77cc09506b5.img
done

[console-expect]#
echo $?
0
[console-expect]#
grubby --set-default /boot/vmlinuz-`cat include/config/kernel.release 2> /dev/null`
[console-expect]#
echo $?
0
[console-expect]#
Rebooting after kernel install...
OpTestSystem START STATE: 6 (target 1)
ipmitool -H X.X.X.X -I lanplus -P passwd chassis power off
OpTestSystem TRANSITIONED TO: 7
System is in standby/Soft-off state
OpTestSystem TRANSITIONED TO: 1
OpTestSystem START STATE: 1 (target 6)
ipmitool -H X.X.X.X -I lanplus -P passwd sel clear
ipmitool -H X.X.X.X -I lanplus -P passwd sel elist
ipmitool -H X.X.X.X -I lanplus -P passwd chassis bootdev none
ipmitool -H X.X.X.X -I lanplus -P passwd chassis power on
OpTestSystem TRANSITIONED TO: 2
Terminating SOL monitoring thread
~. [terminated ipmitool]
ipmitool -H X.X.X.X -I lanplus -P passwd sol deactivate
#IPMI SOL CONNECT
[SOL Session operational.  Use ~? for help]

 *** WaitForIt CURRENT STATE "02" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "02"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "04" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="0" - Kill Cord="150"



zImage starting: loaded at 0x0000000020010000 (sp: 0x00000000203aeed8)

Allocating 0xa655d4 bytes for kernel ...

gunzipping (0x0000000000000000 <- 0x000000002001d000:0x00000000203acaab)...
done 0x8e0300 bytes



Linux/PowerPC load: 

Finalizing device tree... flat tree at 0x203bb520


 *** WaitForIt CURRENT STATE "02" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "03"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "04" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="0" - Kill Cord="150"

[    0.000000] opal: OPAL V3 detected !
[    0.000000] Using PowerNV machine description
[    0.000000] Page sizes from device-tree:
[    0.000000] base_shift=12: shift=12, sllp=0x0000, avpnm=0x000
00000, tlbiel=1, penc=0
[    0.000000] base_shift=12: shift=16, sllp=0x0000, avpnm=0x00000000, tlbiel=1, penc=7
[    0.000000] base_shift=12: shift=24, sllp=0x0000, avpnm=0x00000000, tlbiel=1, penc=
56
[    0.000000] base_shift=16: shift=16, sllp=0x0110, avpnm=0x00000000, tlbiel=1, penc=1
[    0.000000] base_shift=16: shift=24, sllp=0x0110, avpnm=0x00000000, tlbiel=1, penc=8
[    0.000000
] base_shift=24: shift=24, sllp=0x0100, avpnm=0x00000001, tlbiel=0, penc=0
[    0.000000] base_shift=34: shift=34, sllp=0x0120, avpnm=0x000007ff, tlbiel=0, penc=3
[    0.000000] Using 1TB segments
[    0.000000] Found initrd at 0xc000000028000000:0xc000000028a2f108
[    0.000000] bootconsole [udbg0] enabled
[    0.000000] CPU maps initialized for 8 threads per core
 -> smp_release_cpus()
spinning_secondaries = 159
 <- smp_release_cpus()
[    0.000000] Starting Linux ppc64le #1 SMP Thu Feb 22 05:44:34 UTC 2018
[    0.000000] -----------------------------------------------------
[  
  0.000000] ppc64_pft_size    = 0x0
[    0.000000] phys_mem_size     = 0x2000000000
[    0.000000] cpu_features      = 0x177c7aed18500249
[    0.000000]   possible        = 0x1f7fffef18500649
[   
 0.000000]   always          = 0x0000000018100040
[    0.000000] cpu_user_features = 0xdc0065c2 0xae000000
[    0.000000] mmu_features      = 0x7c000001
[    0.000000] firmware_features = 0x0000000
430000000
[    0.000000] htab_address      = 0xc000001ff0000000
[    0.000000] htab_hash_mask    = 0xfffff
[    0.000000] ------------------------------
-----------------------
 <- setup_system()
[    0.000000] Linux version 4.4.116-openpower1 (jenkins@p88) (gcc version 4.9.3 (Buildroot 2016.05-00007-g81b8d98) ) #1 SMP Thu Feb 22 05:44:34 UTC 2018
[    0.000000] rfi-flush: Using ori type flush
[    0.000000] Initializing IODA2 OPAL PHB /pciex@3fffe40000000
[    0.000000] PCI host bridge /pciex@3fffe40000000 (primary) ranges:
[    0.000000]  
MEM 0x00003fe000000000..0x00003fe07ffeffff -> 0x0000000080000000 
[    0.000000]  MEM64 0x0000200000000000..0x000020ffffffffff -> 0x0000200000000000
[    0.000000]   256 (255) PE's M32: 0x80000000 [
segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x800)
[    0.000000] Initializing IODA2 OPAL PH
B /pciex@3fffe40100000
[    0.000000] PCI hos
t bridge /pciex@3fffe40100000  ranges:
[    0.000000]  MEM 0x00003fe080000000..0x00003fe0fffeffff -> 0x0000000080000000 
[    0.000000]  MEM64 0x0000210000000000..0x000021ffffffffff -> 0x00002100000
00000
[    0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (ba
se IRQ 0x1000)
[    0.000000] Initializing IODA2 OPAL PHB /pciex@3fffe40400000
[    0.000000] PCI host bridge /pciex@3fffe40400000  ranges:
[    0.000000]  MEM 0x00003fe200000000..0x00003fe27ffefff
f -> 0x0000000080000000 
[    0.000000]  MEM64 0x0000240000000000..0x000024ffffffffff -> 0x0000240000000000
[    0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]        
          M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x2800)
[    0.000000] Initializing IODA2 OPAL PHB /pc
iex@3fffe40500000
[    0.000000] PCI host bridge /pciex@3fffe40500000  ranges:
[    0.000000]  MEM 0x00003fe280000000..0x00003fe2fffeffff -> 0x0000000080000000 
[    0.000000]  MEM64 0x000025000000
0000..0x000025ffffffffff -> 0x0000250000000000
[    0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000
000]   Allocated bitmap for 2040 MSIs (base IRQ 0x3000)
[    0.000000] Initializing IODA2 OPAL PHB /pciex@3fffe42000000
[    0.000000] PCI host bridge /pciex@3fffe42000000  ranges:
[    0.000000]  
MEM 0x00003ff000000000..0x00003ff07ffeffff -> 0x0000000080000000 
[    0.000000]  MEM64 0x0000280000000000..0x000028ffffffffff -> 0x0000280000000000
[    0.000000]   256 (255) PE's M32: 0x80000000 [
segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x20800)
[
    0.000000] Initializing IODA2 OPAL PHB /pciex@3fffe42400000
[    0.000000] PCI host bridge /pciex@3fffe42400000  ranges:
[    0.000000]  MEM 0x00003ff200000000..0x00003ff27ffeffff -> 0x0000000080
000000 
[    0.000000]  MEM64 0x00002c0000000000..0x00002cffffffffff -> 0x00002c0000000000
[    0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x22800)
[    0.000000] Initializing IODA2 OPAL PHB /pciex@3fffe42500000
[    0.000000] PCI host bridge /
pciex@3fffe42500000  ranges:
[    0.000000]  MEM 0x00003ff280000000..0x00003ff2fffeffff -> 0x0000000080000000 
[    0.000000]  MEM64 0x00002d0000000000..0x00002dffffffffff -> 0x00002d0000000000
[  
  0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]

[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x23000)
[    0.000000] OPAL nvram setup, 1048576 bytes
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x0
000001fffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0:
 [mem 0x0000000000000000-0x0000001fffffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000001fffffffff]
[    0.000000] PERCPU: Embedded 2 pages/cpu @c000001ffc100000 s43672 r0 d
87400 u131072
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 2095360
[  
  0.000000] Kernel command line: console=tty0 console=hvc0
[    0.000000] log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] log_buf_len total cpu_extra contributions: 651264 byt
es
[    0.000000] log_buf_len min size: 1048576 bytes
[    0.000000] log_buf_len: 2097152 bytes
[    0.000000] early log buf free: 1039944(99%)
[    0.000000] PID hash table entries: 4096 (order: 
-1, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 16777216 (order: 11, 134217728 bytes)
[    0.000000] Inode-cache hash table entries: 8388608 (order: 10, 67108864 bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 133575168K/134217728K available (5888K kernel code, 768K rwdata, 1964K rodata, 448K init, 1493K bss, 642560K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=160, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 64.
[    0.00000
0] 	RCU restricting CPUs from NR_CPUS=2048 to nr_cpu_ids=160.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_lea
f=64, nr_cpu_ids=160
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] ICS OPAL backend registered
[    0.000004] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x761537d007, max_idle_ns: 440795202126 ns
[    0.001582] clocksource: timebase mult[1f40000] shift[24] registered
[  
  0.003036] Console: colour dummy device 80x25
[    0.006348] console [tty0] enabled
[    0.007394] console [hvc0] enabled
[    0.007394] console [hvc0] enabled
[    0.008012] bootconsole [udbg0] disabled
[    0.008012] bootconsole [udbg0] disabled
[    0.008723] pid_max: default: 163840 minimum: 1280
[    0.009023] Security Framework initialized
[    0.009198] Mount-cache hash table entri
es: 262144 (order: 5, 2097152 bytes)
[    0.009300] Mountpoint-cache hash table entries: 262144 (order: 5, 2097152 bytes)
[    0.013983] EEH: PowerNV platform initialized
[    0.014139] POWER8 perf
ormance monitor hardware support registered
[    0.014362] power8-pmu: PMAO restore workaround active.
[    0.165493] random: nonblocking pool is initialized
[    0.241864] Brought up 160 CPUs
[    0.244578] devtmpfs: initialized
[    0.248488] evm: security.capability
[    0.248659] EEH: devices created
[    0.248784] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.248982] futex hash table entries: 65536 (order: 7, 8388608 bytes)
[    0.250495] NET: Registered protocol family 16
[    0.261902] PCI: Probing PCI hardware
[    0.261951] PCI: I/O resource not set f
or host bridge /pciex@3fffe40000000 (domain 0)
[    0.261990] PCI host bridge to bus 0000:00
[    0.262033] pci_bus 0000:00: root bus resource [mem 0x3fe000000000-0x3fe07ffeffff] (bus address [0x800
00000-0xfffeffff])
[    0.262133] pci_bus 0000:00: root bus resource [mem 0x200000000000-0x20feffffffff 64bit pref]
[    0.262221] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.262530] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.262620] PCI: I/O resource not set for host bridge /pciex@3fffe40100000 (domain 1)
[    0.262714] PCI host bridge to bus 0001:00
[    0.262754] pci_bus
 0001:00: root bus resource [mem 0x3fe080000000-0x3fe0fffeffff] (bus address [0x80000000-0xfffeffff])
[    0.262854] pci_bus 0001:00: root bus resource [mem 0x210000000000-0x21feffffffff 64bit pref]

[    0.262940] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.263511] pci 0001:00:00.0: PCI b
ridge to [bus 01-0d]
[    0.264512] pci 0001:01:00.0: PCI bridge to [bus 02-0d]
[    0.264809] pci 0001:02:01.0: PCI bridge to [bus 03-07]
[    0.265300] pci 0001:02:08.0: PCI bridge to [bus 08]
[
    0.265491] pci 0001:02:09.0: PCI bridge to [bus 09-0d]
[    0.265660] PCI: I/O resource not set for host bridge /pciex@3fffe40400000 (domain 2)
[    0.265820] PCI host bridge to bus 0002:00
[   
 0.265892] pci_bus 0002:00: root bus resource [mem 0x3fe200000000-0x3fe27ffeffff] (bus address [0x80000000-0xfffeffff])
[    0.266081] pci_bus 0002:00: root bus resource [mem 0x240000000000-0x24feffffffff 64bit pref]
[    0.266243] pci_bus 0002:00: root bus resource [bus 00-ff]
[    0.266557] pci 0002:00:00.0: PCI bridge to [bus 01-ff]
[    0.266685] PCI: I/O resource not set for host bridge /
pciex@3fffe40500000 (domain 3)
[    0.266843] PCI host bridge to bus 0003:00
[    0.266916] pci_bus 0003:00: root bus resource [mem 0x3fe280000000-0x3fe2fffeffff] (bus address [0x80000000-0xfffeffff
])
[    0.267104] pci_bus 0003:00: root bus resource [mem 0x250000000000-0x25feffffffff 64bit pref]
[    0.267267] pci_bus 0003:00: root bus resource [bus 00-ff]
[    0.267856] pci 0003:00:00.0: PCI bridge to [bus 01-0f]
[    0.269365] pci 0003:01:00.0: PCI bridge to [bus 02-0f]
[    0.270163] pci 0003:02:01.0: PCI bridge to [bus 03]
[    0.270589] pci 0003:02:08.0: PCI bridge to [bus 04]
[
    0.272122] pci 0003:02:09.0: PCI bridge to [bus 05]
[    0.272288] pci 0003:02:10.0: PCI bridge to [bus 06-0a]
[    0.272426] pci 0003:02:11.0: PCI bridge to [bus 0b-0f]
[    0.272562] PCI: I/O 
resource not set for host bridge /pciex@3fffe42000000 (domain 4)
[    0.272655] PCI host bridge to bus 0004:00
[    0.272695] pci_bus 0004:00: root bus resource [mem 0x3ff000000000-0x3ff07ffeffff] (
bus address [0x80000000-0xfffeffff])
[    0.272794] pci_bus 0004:00: root bus resource [mem 0x280000000000-0x28feffffffff 64bit pref]
[    0.272881] pci_bus 0004:00: root bus resource [bus 00-ff]
[
    0.273186] pci 0004:00:00.0: PCI bridge to [bus 01-ff]
[    0.273277] PCI: I/O resource not set for host bridge /pciex@3fffe42400000 (domain 5)
[    0.273371] PCI host bridge to bus 0005:00
[   
 0.273411] pci_bus 0005:00: root bus resource [mem 0x3ff200000000-0x3ff27ffeffff] (bus address [0x80000000-0xfffeffff])
[    0.273510] pci_bus 0005:00: root bus resource [mem 0x2c0000000000-0x2cfefff
fffff 64bit pref]
[    0.273597] pci_bus 0005:00: root bus resource [bus 00-ff]
[    0.273886] pci 0005:00:00.0: PCI bridge to [bus 01-ff]
[    0.273974] PCI: I/O resource not set for host bridge /
pciex@3fffe42500000 (domain 6)
[    0.274068] PCI host bridge to bus 0006:00
[    0.274109] pci_bus 0006:00: root bus resource [mem 0x3ff280000000-0x3ff2fffeffff] (bus address [0x80000000-0xfffeffff])
[    0.274208] pci_bus 0006:00: root bus resource [mem 0x2d0000000000-0x2dfeffffffff 64bit pref]
[    0.274296] pci_bus 0006:00: root bus resource [bus 00-ff]
[    0.274584] pci 0006:00:00.0: PC
I bridge to [bus 01-ff]
[    0.274828] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.275083] pci 0001:00:00.0: BAR 9: assigned [mem 0x210000000000-0x2102ffffffff 64bit pref]
[    0.275171] pci
 0001:00:00.0: BAR 8: assigned [mem 0x3fe080000000-0x3fe081ffffff]
[    0.275247] pci 0001:00:00.0: BAR 7: no space for [io  size 0x3000]
[    0.275310] pci 0001:00:00.0: BAR 7: failed to assign [io
  size 0x3000]
[    0.275374] pci 0001:00:00.0: BAR 7: no space for [io  size 0x3000]
[    0.275436] pci 0001:00:00.0: BAR 7: failed to assign [io  size 0x3000]
[    0.275518] pci 0001:01:00.0: BAR 9: assigned [mem 0x210000000000-0x2102ffffffff 64bit pref]
[    0.275605] pci 0001:01:00.0: BAR 8: assigned [mem 0x3fe080000000-0x3fe0817fffff]
[    0.275682] pci 0001:01:00.0: BAR 0: assigned [mem
 0x3fe081800000-0x3fe08183ffff]
[    0.275762] pci 0001:01:00.0: BAR 7: no space for [io  size 0x3000]
[    0.275824] pci 0001:01:00.0: BAR 7: failed to assign [io  size 0x3000]
[    0.275888] pci 
0001:01:00.0: BAR 7: no space for [io  size 0x3000]
[    0.275950] pci 0001:01:00.0: BAR 7: failed to assign [io  size 0x3000]
[    0.276063] pci 0001:02:01.0: BAR 9: assigned [mem 0x210000000000-0x
2100ffffffff 64bit pref]
[    0.276152] pci 0001:02:08.0: BAR 9: assigned [mem 0x210100000000-0x2101ffffffff 64bit pref]
[    0.276239] pci 0001:02:09.0: BAR 9: assigned [mem 0x210200000000-0x2102ffffffff 64bit pref]
[    0.276361] pci 0001:02:01.0: BAR 8: assigned [mem 0x3fe080000000-0x3fe0807fffff]
[    0.276502] pci 0001:02:08.0: BAR 8: assigned [mem 0x3fe080800000-0x3fe080ffffff]
[    0.2
76643] pci 0001:02:09.0: BAR 8: assigned [mem 0x3fe081000000-0x3fe0817fffff]
[    0.276785] pci 0001:02:01.0: BAR 7: no space for [io  size 0x1000]
[    0.276903] pci 0001:02:01.0: BAR 7: failed to 
assign [io  size 0x1000]
[    0.277022] pci 0001:02:08.0: BAR 7: no space for [io  size 0x1000]
[    0.277141] pci 0001:02:08.0: BAR 7: failed to assign [io  size 0x1000]
[    0.277260] pci 0001:02
:09.0: BAR 7: no space for [io  size 0x1000]
[    0.277379] pci 0001:02:09.0: BAR 7: failed to assign [io  size 0x1000]
[    0.277500] pci 0001:02:09.0: BAR 7: no space for [io  size 0x1000]
[    0
.277617] pci 0001:02:09.0: BAR 7: failed to assign [io  size 0x1000]
[    0.277737] pci 0001:02:08.0: BAR 7: no space for [io  size 0x1000]
[    0.277856] pci 0001:02:08.0: BAR 7: failed to assign [
io  size 0x1000]
[    0.277975] pci 0001:02:01.0: BAR 7: no space for [io  size 0x1000]
[    0.278094] pci 0001:02:01.0: BAR 7: failed to assign [io  size 0x1000]
[    0.278213] pci 0001:02:01.0: P
CI bridge to [bus 03-07]
[    0.278315] pci 0001:02:01.0:   bridge window [mem 0x3fe080000000-0x3fe0807fffff]
[    0.278462] pci 0001:02:01.0:   bridge window [mem 0x210000000000-0x2100ffffffff 64bi
t pref]
[    0.278634] pci 0001:08:00.0: BAR 6: assigned [mem 0x3fe080800000-0x3fe08081ffff pref]
[    0.278777] pci 0001:08:00.0: BAR 0: assigned [mem 0x3fe080820000-0x3fe08082ffff 64bit]
[    0.2
78933] pci 0001:08:00.0: BAR 2: assigned [mem 0x3fe080830000-0x3fe08083ffff 64bit]
[    0.279090] pci 0001:02:08.0: PCI bridge to [bus 08]
[    0.279189] pci 0001:02:08.0:   bridge window [mem 0x3fe
080800000-0x3fe080ffffff]
[    0.279335] pci 0001:02:08.0:   bridge window [mem 0x210100000000-0x2101ffffffff 64bit pref]
[    0.279506] pci 0001:02:09.0: PCI bridge to [bus 09-0d]
[    0.279608] p
ci 0001:02:09.0:   bridge window [mem 0x3fe081000000-0x3fe0817fffff]
[    0.279754] pci 0001:02:09.0:   bridge window [mem 0x210200000000-0x2102ffffffff 64bit pref]
[    0.279925] pci 0001:01:00.0: 
PCI bridge to [bus 02-0d]
[    0.280026] pci 0001:01:00.0:   bridge window [mem 0x3fe080000000-0x3fe0817fffff]
[    0.280172] pci 0001:01:00.0:   bridge window [mem 0x210000000000-0x2102ffffffff 64b
it pref]
[    0.280343] pci 0001:00:00.0: PCI bridge to [bus 01-0d]
[    0.280445] pci 0001:00:00.0:   bridge window [mem 0x3fe080000000-0x3fe081ffffff]
[    0.280591] pci 0001:00:00.0:   bridge window [mem 0x210000000000-0x2102ffffffff 64bit pref]
[    0.280802] pci 0002:00:00.0: PCI bridge to [bus 01-ff]
[    0.281080] pci 0003:00:00.0: BAR 9: assigned [mem 0x250000000000-0x2503ffffffff 64b
it pref]
[    0.281168] pci 0003:00:00.0: BAR 8: assigned [mem 0x3fe280000000-0x3fe282ffffff]
[    0.281244] pci 0003:00:00.0: BAR 7: no space for [io  size 0x4000]
[    0.281306] pci 0003:00:00.0:
 BAR 7: failed to assign [io  size 0x4000]
[    0.281369] pci 0003:00:00.0: BAR 7: no space for [io  size 0x4000]
[    0.281431] pci 0003:00:00.0: BAR 7: failed to assign [io  size 0x4000]
[    0.2
81513] pci 0003:01:00.0: BAR 9: assigned [mem 0x250000000000-0x2503ffffffff 64bit pref]
[    0.281600] pci 0003:01:00.0: BAR 8: assigned [mem 0x3fe280000000-0x3fe2827fffff]
[    0.281678] pci 0003:0
1:00.0: BAR 0: assigned [mem 0x3fe282800000-0x3fe28283ffff]
[    0.281758] pci 0003:01:00.0: BAR 7: no space for [io  size 0x4000]
[    0.281820] pci 0003:01:00.0: BAR 7: failed to assign [io  size 
0x4000]
[    0.281883] pci 0003:01:00.0: BAR 7: no space for [io  size 0x4000]
[    0.281945] pci 0003:01:00.0: BAR 7: failed to assign [io  size 0x4000]
[    0.282064] pci 0003:02:08.0: BAR 9: ass
igned [mem 0x250000000000-0x2500ffffffff 64bit pref]
[    0.282151] pci 0003:02:09.0: BAR 9: assigned [mem 0x250100000000-0x2501ffffffff 64bit pref]
[    0.282238] pci 0003:02:10.0: BAR 9: assigned [mem 0x250200000000-0x2502ffffffff 64bit pref]
[    0.282326] pci 0003:02:11.0: BAR 9: assigned [mem 0x250300000000-0x2503ffffffff 64bit pref]
[    0.282413] pci 0003:02:01.0: BAR 8: assigned [mem 0
x3fe280000000-0x3fe2807fffff]
[    0.282489] pci 0003:02:08.0: BAR 8: assigned [mem 0x3fe280800000-0x3fe280ffffff]
[    0.282624] pci 0003:02:09.0: BAR 8: assigned [mem 0x3fe281000000-0x3fe2817fffff
]
[    0.282766] pci 0003:02:10.0: BAR 8: assigned [mem 0x3fe281800000-0x3fe281ffffff]
[    0.282907] pci 0003:02:11.0: BAR 8: assigned [mem 0x3fe282000000-0x3fe2827fffff]
[    0.283048] pci 0003:0
2:08.0: BAR 7: no space for [io  size 0x1000]
[    0.283165] pci 0003:02:08.0: BAR 7: failed to assign [io  size 0x1000]
[    0.283285] pci 0003:02:09.0: BAR 7: no space for [io  size 0x1000]
[    
0.283404] pci 0003:02:09.0: BAR 7: failed to assign [io  size 0x1000]
[    0.283520] pci 0003:02:10.0: BAR 7: no space for [io  size 0x1000]
[    0.283640] pci 0003:02:10.0: BAR 7: failed to assign [io  size 0x1000]
[    0.283758] pci 0003:02:11.0: BAR 7: no space for [io  size 0x1000]
[    0.283877] pci 0003:02:11.0: BAR 7: failed to assign [io  size 0x1000]
[    0.283994] pci 0003:02:11.0: 
BAR 7: no space for [io  size 0x1000]
[    0.284112] pci 0003:02:11.0: BAR 7: failed to assign [io  size 0x1000]
[    0.284228] pci 0003:02:10.0: BAR 7: no space for [io  size 0x1000]
[    0.284347
] pci 0003:02:10.0: BAR 7: failed to assign [io  size 0x1000]
[    0.284464] pci 0003:02:09.0: BAR 7: no space for [io  size 0x1000]
[    0.284581] pci 0003:02:09.0: BAR 7: failed to assign [io  siz
e 0x1000]
[    0.284700] pci 0003:02:08.0: BAR 7: no space for [io  size 0x1000]
[    0.284819] pci 0003:02:08.0: BAR 7: failed to assign [io  size 0x1000]
[    0.284936] pci 0003:03:00.0: BAR 0: a
ssigned [mem 0x3fe280000000-0x3fe28000ffff 64bit]
[    0.285094] pci 0003:03:00.0: BAR 2: assigned [mem 0x3fe280010000-0x3fe280011fff 64bit]
[    0.285251] pci 0003:02:01.0: PCI bridge to [bus 03]
[    0.285350] pci 0003:02:01.0:   bridge window [mem 0x3fe280000000-0x3fe2807fffff]
[    0.285503] pci 0003:04:00.0: BAR 6: assigned [mem 0x3fe280800000-0x3fe28081ffff pref]
[    0.285643] pci 0003
:04:00.0: BAR 0: assigned [mem 0x3fe280820000-0x3fe28082ffff 64bit]
[    0.285799] pci 0003:04:00.0: BAR 2: assigned [mem 0x3fe280830000-0x3fe28083ffff 64bit]
[    0.285953] pci 0003:02:08.0: PCI br
idge to [bus 04]
[    0.286052] pci 0003:02:08.0:   bridge window [mem 0x3fe280800000-0x3fe280ffffff]
[    0.286198] pci 0003:02:08.0:   bridge window [mem 0x250000000000-0x2500ffffffff 64bit pref]

[    0.286371] pci 0003:05:00.0: BAR 6: assigned [mem 0x3fe281000000-0x3fe28107ffff pref]
[    0.286513] pci 0003:05:00.1: BAR 6: assigned [mem 0x3fe281080000-0x3fe2810fffff pref]
[    0.286654] pci 0003:05:00.2: BAR 6: assigned [mem 0x3fe281100000-0x3fe28117ffff pref]
[    0.286796] pci 0003:05:00.3: BAR 6: assigned [mem 0x3fe281180000-0x3fe2811fffff pref]
[    0.286937] pci 0003:05:00.0: BA
R 0: assigned [mem 0x250100000000-0x25010000ffff 64bit pref]
[    0.287083] pci 0003:05:00.0: BAR 2: assigned [mem 0x250100010000-0x25010001ffff 64bit pref]
[    0.287186] pci 0003:05:00.0: BAR 4: a
ssigned [mem 0x250100020000-0x25010002ffff 64bit pref]
[    0.287288] pci 0003:05:00.1: BAR 0: assigned [mem 0x250100030000-0x25010003ffff 64bit pref]
[    0.287391] pci 0003:05:00.1: BAR 2: assigne
d [mem 0x250100040000-0x25010004ffff 64bit pref]
[    0.287495] pci 0003:05:00.1: BAR 4: assigned [mem 0x250100050000-0x25010005ffff 64bit pref]
[    0.287599] pci 0003:05:00.2: BAR 0: assigned [mem
 0x250100060000-0x25010006ffff 64bit pref]
[    0.287702] pci 0003:05:00.2: BAR 2: assigned [mem 0x250100070000-0x25010007ffff 64bit pref]
[    0.287810] pci 0003:05:00.2: BAR 4: assigned [mem 0x250
100080000-0x25010008ffff 64bit pref]
[    0.287912] pci 0003:05:00.3: BAR 0: assigned [mem 0x250100090000-0x25010009ffff 64bit pref]
[    0.288015] pci 0003:05:00.3: BAR 2: assigned [mem 0x2501000a0000-0x2501000affff 64bit pref]
[    0.288120] pci 0003:05:00.3: BAR 4: assigned [mem 0x2501000b0000-0x2501000bffff 64bit pref]
[    0.288223] pci 0003:02:09.0: PCI bridge to [bus 05]
[    0.288279]
 pci 0003:02:09.0:   bridge window [mem 0x3fe281000000-0x3fe2817fffff]
[    0.288359] pci 0003:02:09.0:   bridge window [mem 0x250100000000-0x2501ffffffff 64bit pref]
[    0.288452] pci 0003:02:10.0
: PCI bridge to [bus 06-0a]
[    0.288508] pci 0003:02:10.0:   bridge window [mem 0x3fe281800000-0x3fe281ffffff]
[    0.288589] pci 0003:02:10.0:   bridge window [mem 0x250200000000-0x2502ffffffff 6
4bit pref]
[    0.288683] pci 0003:02:11.0: PCI bridge to [bus 0b-0f]
[    0.288739] pci 0003:02:11.0:   bridge window [mem 0x3fe282000000-0x3fe2827fffff]
[    0.288819] pci 0003:02:11.0:   bridge 
window [mem 0x250300000000-0x2503ffffffff 64bit pref]
[    0.288913] pci 0003:01:00.0: PCI bridge to [bus 02-0f]
[    0.288968] pci 0003:01:00.0:   bridge window [mem 0x3fe280000000-0x3fe2827fffff]
[    0.289047] pci 0003:01:00.0:   bridge window [mem 0x250000000000-0x2503ffffffff 64bit pref]
[    0.289141] pci 0003:00:00.0: PCI bridge to [bus 01-0f]
[    0.289196] pci 0003:00:00.0:   bridge 
window [mem 0x3fe280000000-0x3fe282ffffff]
[    0.289274] pci 0003:00:00.0:   bridge window [mem 0x250000000000-0x2503ffffffff 64bit pref]
[    0.289417] pci 0004:00:00.0: PCI bridge to [bus 01-ff]

[    0.289500] pci 0005:00:00.0: PCI bridge to [bus 01-ff]
[    0.289581] pci 0006:00:00.0: PCI bridge to [bus 01-ff]
[    0.289677] pci 0000:00     : [PE# 000] Secondary bus 0 associated with PE#0

[    0.289937] pci 0000:01     : [PE# 001] Secondary bus 1 associated with PE#1
[    0.290195] pci 0001:00     : [PE# 000] Secondary bus 0 associated with PE#0
[    0.290455] pci 0001:01     : [PE# 001] Secondary bus 1 associated with PE#1
[    0.290715] pci 0001:02     : [PE# 002] Secondary bus 2 associated with PE#2
[    0.290971] pci 0001:03     : [PE# 003] Secondary bus 3 associated with
 PE#3
[    0.291230] pci 0001:08     : [PE# 004] Secondary bus 8 associated with PE#4
[    0.291490] pci 0001:09     : [PE# 005] Secondary bus 9 associated with PE#5
[    0.291746] pci 0002:00     
: [PE# 000] Secondary bus 0 associated with PE#0
[    0.292006] pci 0002:01     : [PE# 001] Secondary bus 1 associated with PE#1
[    0.292262] pci 0003:00     : [PE# 000] Secondary bus 0 associated
 with PE#0
[    0.292521] pci 0003:01     : [PE# 002] Secondary bus 1 associated with PE#2
[    0.292777] pci 0003:02     : [PE# 003] Secondary bus 2 associated with PE#3
[    0.293033] pci 0003:03
     : [PE# 004] Secondary bus 3 associated with PE#4
[    0.293289] pci 0003:04     : [PE# 005] Secondary bus 4 associated with PE#5
[    0.293545] pci 0003:05     : [PE# 001] Secondary bus 5 assoc
iated with PE#1
[    0.293805] pci 0003:06     : [PE# 006] Secondary bus 6 associated with PE#6
[    0.294061] pci 0003:0b     : [PE# 007] Secondary bus 11 associated with PE#7
[    0.294254] pci 0004:00     : [PE# 000] Secondary bus 0 associated with PE#0
[    0.294447] pci 0004:01     : [PE# 001] Secondary bus 1 associated with PE#1
[    0.294641] pci 0005:00     : [PE# 000] Secondary bus 0
 associated with PE#0
[    0.294834] pci 0005:01     : [PE# 001] Secondary bus 1 associated with PE#1
[    0.295026] pci 0006:00     : [PE# 000] Secondary bus 0 associated with PE#0
[    0.295219] 
pci 0006:01     : [PE# 001] Secondary bus 1 associated with PE#1
[    0.296000] PCI: Domain 0000 has 8 available 32-bit DMA segments
[    0.296118] PCI: 0 PE# for a total weight of 0
[    0.296215]
 PCI: Domain 0001 has 8 available 32-bit DMA segments
[    0.296333] PCI: 1 PE# for a total weight of 15
[    0.296428] pci 0001:08     : [PE# 004] Assign DMA32 space
[    0.296524] pci 0001:08    
 : [PE# 004] Setting up 32-bit TCE table at 0..80000000
[    0.299465] IOMMU table initialized, virtual merging enabled
[    0.299585] pci 0001:08     : [PE# 004] Setting up window#0 0..7fffffff pg=
1000
[    0.299731] pci 0001:08     : [PE# 004] Enabling 64-bit DMA bypass
[    0.299850] PCI: Domain 0002 has 8 available 32-bit DMA segments
[    0.299970] PCI: 0 PE# for a total weight of 0
[    0.300066] PCI: Domain 0003 has 8 available 32-bit DMA segments
[    0.300163] PCI: 3 PE# for a total weight of 65
[    0.300214] pci 0003:05     : [PE# 001] Assign DMA32 space
[    0.300265] pci 
0003:05     : [PE# 001] Setting up 32-bit TCE table at 0..80000000
[    0.303130] pci 0003:05     : [PE# 001] Setting up window#0 0..7fffffff pg=1000
[    0.303272] pci 0003:05     : [PE# 001] Enabling 64-bit DMA bypass
[    0.303389] pci 0003:04     : [PE# 005] Assign DMA32 space
[    0.303484] pci 0003:04     : [PE# 005] Setting up 32-bit TCE table at 0..80000000
[    0.306449] pci 0003:04 
    : [PE# 005] Setting up window#0 0..7fffffff pg=1000
[    0.306527] pci 0003:04     : [PE# 005] Enabling 64-bit DMA bypass
[    0.306590] pci 0003:03     : [PE# 004] Assign DMA32 space
[    0.306641] pci 0003:03     : [PE# 004] Setting up 32-bit TCE table at 0..80000000
[    0.309528] pci 0003:03     : [PE# 004] Setting up window#0 0..7fffffff pg=1000
[    0.309669] pci 0003:03     : [PE# 
004] Enabling 64-bit DMA bypass
[    0.309787] PCI: Domain 0004 has 8 available 32-bit DMA segments
[    0.309904] PCI: 0 PE# for a total weight of 0
[    0.310004] PCI: Domain 0005 has 8 available 32-bit DMA segments
[    0.310120] PCI: 0 PE# for a total weight of 0
[    0.310215] PCI: Domain 0006 has 8 available 32-bit DMA segments
[    0.310332] PCI: 0 PE# for a total weight of 0
[    0.311519] EEH: PCI Enhanced I/O Error Handling Enabled
[    0.312269] create_dump_obj: New platform dump. ID = 0x41000000 Size 804576
[    0.312582] powernv-rng: Registering arch random hook.
[    0.
316994] opal-power: OPAL EPOW, DPO support detected.
[    0.346289] vgaarb: loaded
[    0.346419] SCSI subsystem initialized
[    0.346576] usbcore: registered new interface driver usbfs
[    0.346682] usbcore: registered new interface driver hub
[    0.347343] usbcore: registered new device driver usb
[    0.347476] pps_core: LinuxPPS API ver. 1 registered
[    0.347571] pps_core: Software
 ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.347739] PTP clock support registered
[    0.348640] clocksource: Switched to clocksource timebase
[    0.351459] NET: Registered protocol family 2
[    0.351780] TCP established hash table entries: 524288 (order: 6, 4194304 bytes)
[    0.352736] TCP bind hash table entries: 65536 (order: 4, 1048576 bytes)
[    0.352904] TCP: Hash tables configured (established 524288 bind 65536)
[    0.353016] UDP hash table entries: 65536 (order: 5, 2097152 bytes)
[    0.353298] UDP-Lite hash table entries: 65536 (order: 5, 
2097152 bytes)
[    0.354019] NET: Registered protocol family 1
[    0.354192] pci 0003:03:00.0: enabling device (0140 -> 0142)
[    0.354493] Trying to unpack rootfs image as initramfs...
[    2.085628] Freeing initrd memory: 10368K
[    2.123910] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    2.123994] io scheduler noop registered
[    2.124070] io scheduler cfq registered (default)
[    2.124293] i
pmi message handler version 39.2
[    2.124345] ipmi device interface
[    2.124406] ipmi-powernv ibm,opal:ipmi: Unable to map irq from device tree
[    2.152512] ipmi-powernv ibm,opal:ipmi: Found new BMC (man_id: 0x000000, prod_id: 0x0000, dev_id: 0x00)
[    2.163497] hvc0: raw protocol on /ibm,opal/consoles/serial@0 (boot console)
[    2.163936] hvc1: hvsi protocol on /ibm,opal/consoles/serial@1
[    2.164047] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.164419] powernv_rng: Registered powernv hwrng.
[    2.164521] [drm] Initialized drm 1.1.0 20060810
[    2.164583] [drm] radeon kernel modesetting enabled.
[    2.172801] brd: module loaded
[    2.181368] loop: module loaded
[    2.181509] Adaptec aacraid driver 1.2-1[41010]-ms
[    2.181704] tg3.c:v3.137 (May 11, 2014)
[    2.181804] tg3 0003:05:00.0: enabling device (0140 -> 0142)
[    2.206455] tg3 0003:05:00.0: Using 64-bit DMA iommu bypass
[    2.206832] tg3 0003:05:00.0 eth0: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:64
[    2.206935] t
g3 0003:05:00.0 eth0: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    2.207036] tg3 0003:05:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[    2.207113] tg3 0003:05:00.0 eth0: dma_rwctrl[00000000] dma_mask[64-bit]
[    2.207267] tg3 0003:05:00.1: enabling device (0140 -> 0142)
[    2.227492] tg3 0003:05:00.1: Using 64-bit DMA iommu bypass
[    2.227809] tg3 0003:05:00.1 eth1: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:65
[    2.227911] tg3 0003:05:00.1 eth1: attached PHY is 5719C (10/100/1000Base-T Ethernet
) (WireSpeed[1], EEE[1])
[    2.228012] tg3 0003:05:00.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[    2.228088] tg3 0003:05:00.1 eth1: dma_rwctrl[00000000] dma_mask[64-bit]
[    2.228239] tg3 0003:05:00.2: enabling device (0140 -> 0142)
[    2.257477] tg3 0003:05:00.2: Using 64-bit DMA iommu bypass
[    2.257814] tg3 0003:05:00.2 eth2: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:66
[    2.257917] t
g3 0003:05:00.2 eth2: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    2.258018] tg3 0003:05:00.2 eth2: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[    2.258095] tg3 0003:05:00.2 eth2: dma_rwctrl[00000000] dma_mask[64-bit]
[    2.258246] tg3 0003:05:00.3: enabling device (0140 -> 0142)
[    2.287490] tg3 0003:05:00.3: Using 64-bit DMA iommu bypass
[    2.
287799] tg3 0003:05:00.3 eth3: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:67
[    2.287902] tg3 0003:05:00.3 eth3: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[    2.288002] tg3 0003:05:00.3 eth3: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[    2.288079] tg3 0003:05:00.3 eth3: dma_rwctrl[00000000] dma_mask[64-bit]
[    2.
288294] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.288358] ehci-pci: EHCI PCI platform driver
[    2.288423] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.288
492] ohci-pci: OHCI PCI platform driver
[    2.288590] xhci_hcd 0003:03:00.0: xHCI Host Controller
[    2.288678] xhci_hcd 0003:03:00.0: new USB bus registered, assigned bus number 1
[    2.288839]
 xhci_hcd 0003:03:00.0: Using 64-bit DMA iommu bypass
[    2.288978] xhci_hcd 0003:03:00.0: hcc params 0x0270f06d hci version 0x96 quirks 0x00000000
[    2.289808] hub 1-0:1.0: USB hub found
[    2
.289863] hub 1-0:1.0: 4 ports detected
[    2.290127] xhci_hcd 0003:03:00.0: xHCI Host Controller
[    2.290229] xhci_hcd 0003:03:00.0: new USB bus registered, assigned bus number 2
[    2.290343] 
usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.290670] hub 2-0:1.0: USB hub found
[    2.290756] hub 2-0:1.0: 4 ports detected
[    2.290975] usbcore: registered new interface driver usb-storage
[    2.291283] mousedev: PS/2 mouse device common for all mice
[    2.368447] rtc rtc0: invalid alarm value: -1-1--1041528870 2005511117:71582844:32
[    2.368607] rtc-opal opal-rtc: rtc core: registered rtc-opal as rtc0
[    2.368684] i2c /dev entries driver
[    2.369111] powernv-cpufreq: cpufreq pstate min -49 nominal -8 max 0
[    2.372144] usbcore: registered new interface driver usbhid
[    2.372194] usbhid: USB HID core driver
[    2.372609] ipip: IPv4 over IPv4 tunneling driver
[    2.372820] NET: Registered protocol family 17
[    2.372883] Key type dns_resolver registered
[    2.373186] registered taskstats version 1
[    2.379171] Key type encrypted registered
[    2.379236] ima: No TPM chip found, activating TPM-bypass!
[    2.379324] evm: HMAC attrs: 0x1
[    2.418625] rtc-opal opal-rtc: setting system clock to 2018-11-29 04:58:07 UTC (1543467487)
[    2.420072] Freeing unused kernel memory: 448K
[    2.437028] udevd[2442]: starting version 3.1.5
[    2.477740] ipr: IBM Power RAID SCSI Device Driver version: 2.6.3 (October 17, 2015)
[    2.477990] ipr 0001:08:00.0: Found IOA with IRQ: 0
[    2.478107] tg3 0003:05:00.0 enP3p5s0f0: renamed fro
m eth0
[    2.478284] ipr 0001:08:00.0: enabling device (0140 -> 0142)
[    2.478401] ipr 0001:08:00.0: Using 64-bit DMA iommu bypass
[    2.479071] ipr 0001:08:00.0: Received IRQ : 505
[    2.479159] ipr 0001:08:00.0: Request for 2 MSIXs succeeded.
[    2.479984] ipr 0001:08:00.0: Initializing IOA.
[    2.480046] scsi host0: IBM 0 Storage Adapter
[    2.480359] ipr 0003:04:00.0: Found IOA with IRQ: 0
[    2.480645] ipr 0003:04:00.0: enabling device (0140 -> 0142)
[    2.480787] ipr 0003:04:00.0: Using 64-bit DMA iommu bypass
[    2.481136] ipr 0003:04:00.0: Received IRQ : 499
[    
2.481264] ipr 0003:04:00.0: Request for 2 MSIXs succeeded.
[    2.482043] ipr 0003:04:00.0: Initializing IOA.
[    2.482149] scsi host1: IBM 0 Storage Adapter

^[(B^[)0^[[1;24r^[[m\x0f^[[?7h^[[?1h^[=^[[H^[[J^[[H^[[J Petitboot (v1.4.4-e1658ec)
^[[1B ^[[0m\x0eqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\x0f
^[[2B  ^[[0m\x0e\x0fSystem information
^[[1B  Sy
ipmitool -H X.X.X.X -I lanplus -P passwd sel elist
OpTestSystem TRANSITIONED TO: 3
OpTestSystem TRANSITIONED TO: 5
stem configuration
^[[1B  System status log
^[[1B  Language
^[[1B  Rescan devices
^[[1B  Retrieve config from URL
^[[1B *^[[0;7m\x0fExit to shell           ^[[12B^[[25D^[[0m\x0eqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq\x0f
^[[1B ^[[0m\x0e\x0fEnter=accept, e=edit, n=new, x=exit, l=language, g=log, h=help
^[[1B Welcome to Petitboot
 Info: Waiting for device discovery
^[[J^[[1;64H8247-22L 2139F6A
^[[23B [enP3p5s0f0] Configuring with static address (ip: 9.40.192.88/24)

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "02"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "03"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 [sdc6] Processing new Disk device^[[K
^[[29D5^[[24;35H
^[[29D2^[[24;35H
^[[24;10Harsed GRUB configuration from /grub2/grub.cfg^[[3;21r^[[3;1H^[M^[M^[[1;24r^[[3;3H[Disk: sdc2 / 410f86ac-2e27-479b-a4ea-137c120f380a]^[[1B^[[49DFedora (4.19.0-0.rc5.git3.1.fc30.ppc64le) 30 (Server Edit
ion)^[[12;27H^[[0;7m\x0f                                       ^[[24;55H^[[m\x0f^[[4;21r^[[4;1H^[M^[[1;24r^[[4;5HFedora (0-rescue-ee34a2f03c71412a9e456d1d75624320) 30 (Server Edition)^[[13;66H^[[0;7m\x0f         ^[[24;55H
^[[m\x0f^[[50Db2] Processing new Disk device^[[K
^[[24;10Harsed GRUB configuration from /grub2/grub.cfg
 Booting in 10 sec: Fedora (4.20.0-rc4-gd35c78239) 30 (Rawhide)^[[6;21r^[[6;1H^[M^[M^[[1;24r^[[6;3H[Disk: sdb2 / 8ba09aad-722c-412a-8f79-d65aabc6127d]^[[
1B^[[49DFedora (4.20.0-rc4-gd35c78239) 30 (Rawhide)^[[24;64H^[[7;21r^[[7;1H^[M^[[1;24r^[[7;5HFedora (4.20.0-rc4-ga932cbc34) 30 (Rawhide)^[[24;64H^[[7;21r^[[7;1H^[M^[[1;24r^[[7;5HFedora (0-rescue-c52acf7c8cd840f88608f77cc09506b5) 30 (Rawhide)^[[24;64H
^[[24;13H9 sec: Fedora (4.20.0-rc4-gd35c78239) 30 (Rawhide) \b

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "04"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"

^[[24;13H8^[[24;63H
^[[24;13H7^[[24;63H
^[[24;13H6^[[24;63H
^[[24;13H5^[[24;63H
^[[24;13H4^[[24;63H

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "05"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"

^[[24;13H3^[[24;63H
^[[24;13H2^[[24;63H
^[[24;13H1^[[24;63H
^[[24;10HFedora (4.20.0-rc4-gd35c78239) 30 (Rawhide)          ^[[24;53H
 Loaded kernel image from file:///var/petitboot/mnt/dev/sdb2/vmlinuz-4.20.0-rc4^[[?7l-^[[?7h^[[24;9Hinitrd from file:///var/petitboot
/mnt/dev/sdb2/initramfs-4.20.0-rc4-gd3^[[?7l5^[[?7h
 Running boot hooks^[[K

 Performing kexec load
\b\b\b\breboot

The system is going down NOW!

Sent SIGTERM to all processes

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "06"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


Sent SIGKILL to all processes

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "07"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "08"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "09"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"

[   81.529556] kexec_core: Starting new kernel
[    0.000000] Using PowerNV machine description
[    0.000000] CPU maps initialized for 8 threads per core
[    0.000000]  (thread shift is 3)
[    0.000000] Allocated 4608 bytes for 160 pacas
[ 
   0.000000] -----------------------------------------------------
[    0.000000] ppc64_pft_size    = 0x0
[    0.000000] phys_mem_size     = 0x2000000000
[    0.000000] dcache_bsize      = 0x80
[ 
   0.000000] icache_bsize      = 0x80
[    0.000000] cpu_features      = 0x000002ff8f5db1a7
[    0.000000]   possible        = 0x0000fbffcf5fb1a7
[    0.000000]   always          = 0x00000003800081
a1
[    0.000000] cpu_user_features = 0xdc0065c2 0xef000000
[    0.000000] mmu_features      = 0x7c006001
[    0.000000] firmware_features = 0x0000000110000000
[    0.000000] htab_address      = 0
x(____ptrval____)
[    0.000000] htab_hash_mask    = 0xfffff
[    0.000000] -----------------------------------------------------
[    0.000000] cma: Reserved 6560 MiB at 0x0000001e56000000
[    0
.000000] numa:   NODE_DATA [mem 0x7ffcb2300-0x7ffcbbfff]
[    0.000000] numa:   NODE_DATA [mem 0xfffcb2300-0xfffcbbfff]
[    0.000000] numa:   NODE_DATA [mem 0x17ffcb2300-0x17ffcbbfff]
[    0.00000
0] numa:   NODE_DATA [mem 0x1fffc06300-0x1fffc0ffff]
[    0.000000] rfi-flush: ori type flush available
[    0.000000] rfi-flush: patched 8 locations (ori type flush)
[    0.000000] count-cache-flu
sh: software flush disabled.
[    0.000000] stf-barrier: hwsync barrier available
[    0.000000] stf-barrier: patched 61 entry locations (hwsync barrier)
[    0.000000] stf-barrier: patched 8 exit 
locations (hwsync barrier)
[    0.000000] Initializing IODA2 PHB (/pciex@3fffe40000000)
[    0.000000] PCI host bridge /pciex@3fffe40000000 (primary) ranges:
[    0.000000]  MEM 0x00003fe000000000.
.0x00003fe07ffeffff -> 0x0000000080000000 
[    0.000000]  MEM 0x0000200000000000..0x000020ffffffffff -> 0x0000200000000000 (M64 #0..15)
[    0.000000]  Using M64 #15 as default window
[    0.00000
0]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x800)
[   
 0.000000] Initializing IODA2 PHB (/pciex@3fffe40100000)
[    0.000000] PCI host bridge /pciex@3fffe40100000  ranges:
[    0.000000]  MEM 0x00003fe080000000..0x00003fe0fffeffff -> 0x0000000080000000
 
[    0.000000]  MEM 0x0000210000000000..0x000021ffffffffff -> 0x0000210000000000 (M64 #0..15)
[    0.000000]  Using M64 #15 as default window
[    0.000000]   256 (255) PE's M32: 0x80000000 [segm
ent=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x1000)
[    0.000000] Initializing IODA2 PHB (/pcie
x@3fffe40400000)
[    0.000000] PCI host bridge /pciex@3fffe40400000  ranges:
[    0.000000]  MEM 0x00003fe200000000..0x00003fe27ffeffff -> 0x0000000080000000 
[    0.000000]  MEM 0x000024000000000
0..0x000024ffffffffff -> 0x0000240000000000 (M64 #0..15)
[    0.000000]  Using M64 #15 as default window
[    0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]           
       M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x2800)
[    0.000000] Initializing IODA2 PHB (/pciex@3fffe40500000)
[    0.000000] PCI hos
t bridge /pciex@3fffe40500000  ranges:
[    0.000000]  MEM 0x00003fe280000000..0x00003fe2fffeffff -> 0x0000000080000000 
[    0.000000]  MEM 0x0000250000000000..0x000025ffffffffff -> 0x0000250000000
000 (M64 #0..15)
[    0.000000]  Using M64 #15 as default window
[    0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100
000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x3000)
[    0.000000] Initializing IODA2 PHB (/pciex@3fffe42000000)
[    0.000000] PCI host bridge /pciex@3fffe42000000  ranges:
[    0.000000]  MEM 0x00003ff000000000..0x00003ff07ffeffff -> 0x0000000080000000 
[    0.000000]  MEM 0x0000280000000000..0x000028ffffffffff -> 0x0000280000000000 (M64 #0..15)
[    0.000000]  Using 
M64 #15 as default window
[    0.000000]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitm
ap for 2040 MSIs (base IRQ 0x20800)
[    0.000000] Initializing IODA2 PHB (/pciex@3fffe42400000)
[    0.000000] PCI host bridge /pciex@3fffe42400000  ranges:
[    0.000000]  MEM 0x00003ff200000000.
.0x00003ff27ffeffff -> 0x0000000080000000 
[    0.000000]  MEM 0x00002c0000000000..0x00002cffffffffff -> 0x00002c0000000000 (M64 #0..15)
[    0.000000]  Using M64 #15 as default window
[    0.00000
0]   256 (255) PE's M32: 0x80000000 [segment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x22800)
[ 
   0.000000] Initializing IODA2 PHB (/pciex@3fffe42500000)
[    0.000000] PCI host bridge /pciex@3fffe42500000  ranges:
[    0.000000]  MEM 0x00003ff280000000..0x00003ff2fffeffff -> 0x00000000800000
00 
[    0.000000]  MEM 0x00002d0000000000..0x00002dffffffffff -> 0x00002d0000000000 (M64 #0..15)
[    0.000000]  Using M64 #15 as default window
[    0.000000]   256 (255) PE's M32: 0x80000000 [se
gment=0x800000]
[    0.000000]                  M64: 0x10000000000 [segment=0x100000000]
[    0.000000]   Allocated bitmap for 2040 MSIs (base IRQ 0x23000)
[    0.000000] OPAL nvram setup, 1048576 
bytes
[    0.000000] barrier-nospec: using ORI speculation barrier
[    0.000000] barrier-nospec: patched 521 locations
[    0.000000] Top of RAM: 0x2000000000, Total RAM: 0x2000000000
[    0.0000
00] Memory hole size: 0MB
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000000000-0x0000001fffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.
000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x00000007ffffffff]
[    0.000000]   node   1: [mem 0x00000008000
00000-0x0000000fffffffff]
[    0.000000]   node  16: [mem 0x0000001000000000-0x00000017ffffffff]
[    0.000000]   node  17: [mem 0x0000001800000000-0x0000001fffffffff]
[    0.000000] Initmem setup 
node 0 [mem 0x0000000000000000-0x00000007ffffffff]
[    0.000000] On node 0 totalpages: 524288
[    0.000000]   DMA zone: 512 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[   
 0.000000]   DMA zone: 524288 pages, LIFO batch:3
[    0.000000] Initmem setup node 1 [mem 0x0000000800000000-0x0000000fffffffff]
[    0.000000] On node 1 totalpages: 524288
[    0.000000]   DMA zo
ne: 512 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 524288 pages, LIFO batch:3
[    0.000000] Initmem setup node 16 [mem 0x0000001000000000-0x000000
17ffffffff]
[    0.000000] On node 16 totalpages: 524288
[    0.000000]   DMA zone: 512 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 524288 pages, L
IFO batch:3
[    0.000000] Initmem setup node 17 [mem 0x0000001800000000-0x0000001fffffffff]
[    0.000000] On node 17 totalpages: 524288
[    0.000000]   DMA zone: 512 pages used for memmap
[    
0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 524288 pages, LIFO batch:3
[    0.000000] random: get_random_u64 called from start_kernel+0xb8/0x628 with crng_init=0
[    0.000000
] percpu: Embedded 4 pages/cpu @(____ptrval____) s169112 r0 d93032 u262144
[    0.000000] pcpu-alloc: s169112 r0 d93032 u262144 alloc=1*1048576
[    0.000000] pcpu-alloc: [0] 000 001 002 003 [0] 004
 005 006 007 
[    0.000000] pcpu-alloc: [0] 008 009 010 011 [0] 012 013 014 015 
[    0.000000] pcpu-alloc: [0] 016 017 018 019 [0] 020 021 022 023 
[    0.000000] pcpu-alloc: [0] 024 025 026 027 
[0] 028 029 030 031 
[    0.000000] pcpu-alloc: [0] 032 033 034 035 [0] 036 037 038 039 
[    0.000000] pcpu-alloc: [1] 040 041 042 043 [1] 044 045 046 047 
[    0.000000] pcpu-alloc: [1] 048 049 0
50 051 [1] 052 053 054 055 
[    0.000000] pcpu-alloc: [1] 056 057 058 059 [1] 060 061 062 063 
[    0.000000] pcpu-alloc: [1] 064 065 066 067 [1] 068 069 070 071 
[    0.000000] pcpu-alloc: [1] 07
2 073 074 075 [1] 076 077 078 079 
[    0.000000] pcpu-alloc: [2] 080 081 082 083 [2] 084 085 086 087 
[    0.000000] pcpu-alloc: [2] 088 089 090 091 [2] 092 093 094 095 
[    0.000000] pcpu-alloc:
 [2] 096 097 098 099 [2] 100 101 102 103 
[    0.000000] pcpu-alloc: [2] 104 105 106 107 [2] 108 109 110 111 
[    0.000000] pcpu-alloc: [2] 112 113 114 115 [2] 116 117 118 119 
[    0.000000] pcpu
-alloc: [3] 120 121 122 123 [3] 124 125 126 127 
[    0.000000] pcpu-alloc: [3] 128 129 130 131 [3] 132 133 134 135 
[    0.000000] pcpu-alloc: [3] 136 137 138 139 [3] 140 141 142 143 
[    0.00000
0] pcpu-alloc: [3] 144 145 146 147 [3] 148 149 150 151 
[    0.000000] pcpu-alloc: [3] 152 153 154 155 [3] 156 157 158 159 
[    0.000000] Built 4 zonelists, mobility grouping on.  Total pages: 2095
104
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: root=/dev/mapper/fedora_ltc--test--ci2-root ro rd.lvm.lv=fedora_ltc-test-ci2/root rd.lvm.lv=fedora_ltc-test-ci2/swap
[    0.0
00000] printk: log_buf_len individual max cpu contribution: 8192 bytes
[    0.000000] printk: log_buf_len total cpu_extra contributions: 1302528 bytes
[    0.000000] printk: log_buf_len min size: 262144 bytes
[    0.000000] printk: log_buf_len: 2097152 bytes
[    0.000000] printk: early log buf free: 251136(95%)
[    0.000000] Memory: 126992000K/134217728K available (12480K kernel code, 1728K
 rwdata, 3200K rodata, 4096K init, 1544K bss, 508288K reserved, 6717440K cma-reserved)
[    0.000000] SLUB: HWalign=128, Order=0-3, MinObjects=0, CPUs=160, Nodes=18
[    0.000000] ftrace: allocating
 31274 entries in 12 pages
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=2048 to nr_
cpu_ids=160.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=160
[    0.000000] NR_IR
QS: 512, nr_irqs: 512, preallocated irqs: 16
[    0.000000] ICS OPAL backend registered
[    0.000000] time_init: decrementer frequency = 512.000000 MHz
[    0.000000] time_init: processor frequenc
y   = 3425.000000 MHz
[    0.000004] clocksource: timebase: mask: 0xffffffffffffffff max_cycles: 0x761537d007, max_idle_ns: 440795202126 ns
[    0.000161] clocksource: timebase mult[1f40000] shift[2
4] registered
[    0.000267] clockevent: decrementer mult[83126e98] shift[32] cpu[0]
[    0.000924] Console: colour dummy device 80x25
[    0.000997] printk: console [hvc0] enabled
[    0.000997] printk: console [hvc0] enabled
[    0.001066] printk: bootconsole [udbg0] disabled
[    0.001066] printk: bootconsole [udbg0] disabled
[    0.001679] mempolicy: Enabling automatic NUMA balancing. C
onfigure with numa_balancing= or the kernel.numa_balancing sysctl
[    0.001697] pid_max: default: 163840 minimum: 1280
[    0.012411] Dentry cache hash table entries: 8388608 (order: 10, 67108864 b
ytes)
[    0.016013] Inode-cache hash table entries: 4194304 (order: 9, 33554432 bytes)
[    0.016468] Mount-cache hash table entries: 131072 (order: 4, 1048576 bytes)
[    0.016586] Mountpoint-cac
he hash table entries: 131072 (order: 4, 1048576 bytes)
[    0.020428] EEH: PowerNV platform initialized
[    0.020441] POWER8 performance monitor hardware support registered
[    0.020525] power8-pmu: PMAO restore workaround active.
[    0.020569] rcu: Hierarchical SRCU implementation.
[    0.022808] smp: Bringing up secondary CPUs ...
[    0.681125] smp: Brought up 4 nodes, 160 CPUs
[    0.681159] numa: Node 0 CPUs: 0-39
[    0.681176] numa: Node 1 CPUs: 40-79
[    0.681193] numa: Node 16 CPUs: 80-119
[    0.681210] numa: Node 17 CPUs: 120-159
[    0.681227] Using standard scheduler topology
[    0.726038] devtmpfs: initialized
[    0.760792] kworker/u321:0 (816) used greatest stack depth: 12400 bytes left
[    0.761099
] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.761227] futex hash table entries: 65536 (order: 7, 8388608 bytes)
[    0.775915] NET: Registered protocol family 16
[    0.777384] kworker/u321:0 (829) used greatest stack depth: 12352 bytes left
[    0.777904] cpuidle: using governor menu

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "10"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"

[    0.922707] PCI: Probing PCI hardware
[    0.922853] PCI host bridge to bus 0000:00
[    0.922874] pci_bus 0000:00: root bus resource [mem 0x3fe000000000-0x3fe07ffeffff] (bus address [0x80000000-
0xfffeffff])
[    0.922898] pci_bus 0000:00: root bus resource [mem 0x200000000000-0x20fdffffffff 64bit pref]
[    0.922919] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.922937] pci_bus 00
00:00: busn_res: [bus 00-ff] end is updated to ff
[    0.923016] pci 0000:00:00.0: [1014:03dc] type 01 class 0x060400
[    0.923305] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    0.933001] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.933092] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to ff
[    0.933199] PCI host bridge to bus 0001:00
[    0.933217] pci_bus 0001
:00: root bus resource [mem 0x3fe080000000-0x3fe0fffeffff] (bus address [0x80000000-0xfffeffff])
[    0.933240] pci_bus 0001:00: root bus resource [mem 0x210000000000-0x21fdffffffff 64bit pref]
[   
 0.933260] pci_bus 0001:00: root bus resource [bus 00-ff]
[    0.933277] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to ff
[    0.933337] pci 0001:00:00.0: [1014:03dc] type 01 class 0x060400
[    0.933608] pci 0001:00:00.0: PME# supported from D0 D3hot D3cold
[    0.938718] pci 0001:01:00.0: [10b5:8732] type 01 class 0x060400
[    0.938836] pci 0001:01:00.0: reg 0x10: [mem 0x3fe081800000-0x3fe08183ffff]
[    0.939208] pci 0001:01:00.0: PME# supported fro
m D0 D3hot D3cold
[    0.944118] pci 0001:00:00.0: PCI bridge to [bus 01-0d]
[    0.944622] pci 0001:02:01.0: [10b5:8732] type 01 class 0x060400
[    0.945109] pci 0001:02:01.0: PME# supported from
 D0 D3hot D3cold
[    0.946387] pci 0001:02:08.0: [10b5:8732] type 01 class 0x060400
[    0.946881] pci 0001:02:08.0: PME# supported from D0 D3hot D3cold
[    0.947284] pci 0001:02:09.0: [10b5:8732
] type 01 class 0x060400
[    0.947781] pci 0001:02:09.0: PME# supported from D0 D3hot D3cold
[    0.951345] pci 0001:01:00.0: PCI bridge to [bus 02-0d]
[    0.956374] pci 0001:02:01.0: PCI bridge to [bus 03-07]
[    0.956651] pci 0001:08:00.0: [1014:034a] type 00 class 0x010400
[    0.956763] pci 0001:08:00.0: reg 0x10: [mem 0x3fe080820000-0x3fe080
82ffff 64bit]
[    0.956827] pci 0001:08:00.0: reg 0x18: [mem 0x3fe080830000-0x3fe08083ffff 64bit]
[    0.956931] pci 0001:08:00.0: reg 0x30: [mem 0x00000000-0x0001ffff pref]
[    0.957181] pci 0001:08:00.0: PME# supported from D0 D3hot D3cold
[    0.957287] pci 0001:08:00.0: 63.008 Gb/s available PCIe bandwidth, limited by 8 GT/s x8 link at 0001:00:00.0 (capable of 126.016 Gb/s with 8 GT/s x1
6 link)
[    0.962117] pci 0001:02:08.0: PCI bridge to [bus 08]
[    0.967007] pci 0001:02:09.0: PCI bridge to [bus 09-0d]
[    0.967165] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 0d
[    0.967278] PCI host bridge to bus 0004:00
[    0.967296] pci_bus 0004:00: root bus resource [mem 0x3fe200000000-0x3fe27ffeffff] (bus address [0x80000000-0xfffeffff])
[    0.967320] pci_bus 000
4:00: root bus resource [mem 0x240000000000-0x24fdffffffff 64bit pref]
[    0.967341] pci_bus 0004:00: root bus resource [bus 00-ff]
[    0.967357] pci_bus 0004:00: busn_res: [bus 00-ff] end is upda
ted to ff
[    0.967420] pci 0004:00:00.0: [1014:03dc] type 01 class 0x060400
[    0.967702] pci 0004:00:00.0: PME# supported from D0 D3hot D3cold
[    0.977389] pci 0004:00:00.0: PCI bridge to [bus 01-ff]
[    0.977481] pci_bus 0004:00: busn_res: [bus 00-ff] end is updated to ff
[    0.977587] PCI host bridge to bus 0005:00
[    0.977605] pci_bus 0005:00: root bus resource [mem 0x3fe280000000-0x3fe2fffeffff] (bus address [0x80000000-0xfffeffff])
[    0.977628] pci_bus 0005:00: root bus resource [mem 0x250000000000-0x25fdffffffff 64bit p
ref]
[    0.977648] pci_bus 0005:00: root bus resource [bus 00-ff]
[    0.977664] pci_bus 0005:00: busn_res: [bus 00-ff] end is updated to ff
[    0.977726] pci 0005:00:00.0: [1014:03dc] type 01 cl
ass 0x060400
[    0.978006] pci 0005:00:00.0: PME# supported from D0 D3hot D3cold
[    0.983045] pci 0005:01:00.0: [10b5:8748] type 01 class 0x060400
[    0.983165] pci 0005:01:00.0: reg 0x10: [mem 0x3fe282800000-0x3fe28283ffff]
[    0.983544] pci 0005:01:00.0: PME# supported from D0 D3hot D3cold
[    0.988446] pci 0005:00:00.0: PCI bridge to [bus 01-0f]
[    0.988916] pci 0005:02:01.0: [10b5:8748] type 01 class 0x060400
[    0.989412] pci 0005:02:01.0: PME# supported from
 D0 D3hot D3cold
[    0.990689] pci 0005:02:08.0: [10b5:8748] type 01 class 0x060400
[    0.991196] pci 0005:02:08.0: PME# supported from D0 D3hot D3cold
[    0.991687] pci 0005:02:09.0: [10b5:8748] type 01 class 0x
060400
[    0.992200] pci 0005:02:09.0: PME# supported from D0 D3hot D3cold
[    0.993486] pci 0005:02:10.0: [10b5:8748] type 01 class 0x060400
[    0.994008] pci 0005:02:10.0: PME# supported from D0 D3hot D3cold
[    0.994420] pci 0005:02:11.0: [10b5:8748] type 01 class 0x060400
[    0.994947] pci 0005:02:11.0: PME# supported from D0 D3hot D3cold
[    0.997338] pci 0005:01:00.0: PCI bridge 
to [bus 02-0f]
[    0.997957] pci 0005:03:00.0: [104c:8241] type 00 class 0x0c0330
[    0.998074] pci 0005:03:00.0: reg 0x10: [mem 0x3fe280000000-0x3fe28000ffff 64bit]
[    0.998140] pci 0005:03:00
.0: reg 0x18: [mem 0x3fe280010000-0x3fe280011fff 64bit]
[    0.998290] pci 0005:03:00.0: BAR2 [mem size 0x00002000 64bit]: requesting alignment to 0x10000
[    0.998505] pci 0005:03:00.0: supports D
1 D2
[    0.998520] pci 0005:03:00.0: PME# supported from D0 D1 D2 D3hot
[    0.998636] pci 0005:03:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x1 link at 0005:02:01.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[    1.003441] pci 0005:02:01.0: PCI bridge to [bus 03]
[    1.003773] pci 0005:04:00.0: [1014:034a] type 00 class 0x010400
[    1.003890] pci 0005:04:00.0: reg 0x10:
 [mem 0x3fe280820000-0x3fe28082ffff 64bit]
[    1.003958] pci 0005:04:00.0: reg 0x18: [mem 0x3fe280830000-0x3fe28083ffff 64bit]
[    1.004068] pci 0005:04:00.0: reg 0x30: [mem 0x00000000-0x0001ffff 
pref]
[    1.004341] pci 0005:04:00.0: PME# supported from D0 D3hot D3cold
[    1.004454] pci 0005:04:00.0: 63.008 Gb/s available PCIe bandwidth, limited by 8 GT/s x8 link at 0005:00:00.0 (capable o
f 126.016 Gb/s with 8 GT/s x16 link)
[    1.009276] pci 0005:02:08.0: PCI bridge to [bus 04]
[    1.009591] pci 0005:05:00.0: [14e4:1657] type 00 class 0x020000
[    1.009734] pci 0005:05:00.0: reg
 0x10: [mem 0x250100000000-0x25010000ffff 64bit pref]
[    1.009805] pci 0005:05:00.0: reg 0x18: [mem 0x250100010000-0x25010001ffff 64bit pref]
[    1.009876] pci 0005:05:00.0: reg 0x20: [mem 0x2501
00020000-0x25010002ffff 64bit pref]
[    1.009928] pci 0005:05:00.0: reg 0x30: [mem 0x00000000-0x0007ffff pref]
[    1.010299] pci 0005:05:00.0: PME# supported from D0 D3hot D3cold
[    1.010428] pci 0005:05:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 link at 0005:02:09.0 (capable of 31.504 Gb/s with 8 GT/s x4 link)
[    1.010643] pci 0005:05:00.1: [14e4:1657] type 00 cla
ss 0x020000
[    1.010786] pci 0005:05:00.1: reg 0x10: [mem 0x250100030000-0x25010003ffff 64bit pref]
[    1.010858] pci 0005:05:00.1: reg 0x18: [mem 0x250100040000-0x25010004ffff 64bit pref]
[    1.010929] pci 0005:05:00.1: reg 0x20: [mem 0x250100050000-0x25010005ffff 64bit pref]
[    1.010982] pci 0005:05:00.1: reg 0x30: [mem 0x00000000-0x0007ffff pref]
[    1.011360] pci 0005:05:00.1: PME#
 supported from D0 D3hot D3cold
[    1.011605] pci 0005:05:00.2: [14e4:1657] type 00 class 0x020000
[    1.011748] pci 0005:05:00.2: reg 0x10: [mem 0x250100060000-0x25010006ffff 64bit pref]
[    1.011820] pci 0005:05:00.2: reg 0x18: [mem 0x250100070000-0x25010007ffff 64bit pref]
[    1.011892] pci 0005:05:00.2: reg 0x20: [mem 0x250100080000-0x25010008ffff 64bit pref]
[    1.011945] pci 0005:0
5:00.2: reg 0x30: [mem 0x00000000-0x0007ffff pref]
[    1.012323] pci 0005:05:00.2: PME# supported from D0 D3hot D3cold
[    1.012569] pci 0005:05:00.3: [14e4:1657] type 00 class 0x020000
[    1.012716] pci 0005:05:00.3: reg 0x10: [mem 0x250100090000-0x25010009ffff 64bit pref]
[    1.012789] pci 0005:05:00.3: reg 0x18: [mem 0x2501000a0000-0x2501000affff 64bit pref]
[    1.012861] pci 0005:05:
00.3: reg 0x20: [mem 0x2501000b0000-0x2501000bffff 64bit pref]
[    1.012914] pci 0005:05:00.3: reg 0x30: [mem 0x00000000-0x0007ffff pref]
[    1.013296] pci 0005:05:00.3: PME# supported from D0 D3hot D3cold
[    1.018123] pci 0005:02:09.0: PCI bridge to [bus 05]
[    1.023077] pci 0005:02:10.0: PCI bridge to [bus 06-0a]
[    1.027958] pci 0005:02:11.0: PCI bridge to [bus 0b-0f]
[    1.02815
3] pci_bus 0005:00: busn_res: [bus 00-ff] end is updated to 0f
[    1.028272] PCI host bridge to bus 0040:00
[    1.028290] pci_bus 0040:00: root bus resource [mem 0x3ff000000000-0x3ff07ffeffff] (bus address [0x80000000-0xfffeffff])
[    1.028313] pci_bus 0040:00: root bus resource [mem 0x280000000000-0x28fdffffffff 64bit pref]
[    1.028333] pci_bus 0040:00: root bus resource [bus 00-ff]
[  
  1.028349] pci_bus 0040:00: busn_res: [bus 00-ff] end is updated to ff
[    1.028411] pci 0040:00:00.0: [1014:03dc] type 01 class 0x060400
[    1.028693] pci 0040:00:00.0: PME# supported from D0 D3
hot D3cold
[    1.038339] pci 0040:00:00.0: PCI bridge to [bus 01-ff]
[    1.038431] pci_bus 0040:00: busn_res: [bus 00-ff] end is updated to ff
[    1.038534] PCI host bridge to bus 0044:00
[    
1.038552] pci_bus 0044:00: root bus resource [mem 0x3ff200000000-0x3ff27ffeffff] (bus address [0x80000000-0xfffeffff])
[    1.038576] pci_bus 0044:00: root bus resource [mem 0x2c0000000000-0x2cfdffffffff 64bit pref]
[    1.038596] pci_bus 0044:00: root bus resource [bus 00-ff]
[    1.038612] pci_bus 0044:00: busn_res: [bus 00-ff] end is updated to ff
[    1.038675] pci 0044:00:00.0: [1014:03dc
] type 01 class 0x060400
[    1.038967] pci 0044:00:00.0: PME# supported from D0 D3hot D3cold
[    1.048667] pci 0044:00:00.0: PCI bridge to [bus 01-ff]
[    1.048761] pci_bus 0044:00: busn_res: [b
us 00-ff] end is updated to ff
[    1.048866] PCI host bridge to bus 0045:00
[    1.048884] pci_bus 0045:00: root bus resource [mem 0x3ff280000000-0x3ff2fffeffff] (bus address [0x80000000-0xfffeffff])
[    1.048906] pci_bus 0045:00: root bus resource [mem 0x2d0000000000-0x2dfdffffffff 64bit pref]
[    1.048927] pci_bus 0045:00: root bus resource [bus 00-ff]
[    1.048943] pci_bus 0045:00: bus
n_res: [bus 00-ff] end is updated to ff
[    1.049006] pci 0045:00:00.0: [1014:03dc] type 01 class 0x060400
[    1.049297] pci 0045:00:00.0: PME# supported from D0 D3hot D3cold
[    1.058945] pci 0045:00:00.0: PCI bridge to [bus 01-ff]
[    1.059039] pci_bus 0045:00: busn_res: [bus 00-ff] end is updated to ff
[    1.059100] pci 0000:00     : [PE# fe] Secondary bus 0 associated with PE#fe
[    1.059599] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.059646] pci_bus 0000:00: resource 4 [mem 0x3fe000000000-0x3fe07ffeffff]
[    1.059664] pci_bus 0000:00: resource 5 
[mem 0x200000000000-0x20fdffffffff 64bit pref]
[    1.059710] pci 0001:02:01.0: bridge window [io  0x1000-0x0fff] to [bus 03-07] add_size 1000
[    1.059734] pci 0001:02:01.0: bridge window [mem 0x100000000-0xffffffff 64bit pref] to [bus 03-07] add_size 100000000 add_align 100000000
[    1.059761] pci 0001:02:01.0: bridge window [mem 0x00800000-0x007fffff] to [bus 03-07] add_size 800000 add_ali
gn 800000
[    1.059808] pci 0001:02:08.0: bridge window [io  0x1000-0x0fff] to [bus 08] add_size 1000
[    1.059830] pci 0001:02:08.0: bridge window [mem 0x100000000-0xffffffff 64bit pref] to [bus 08] add_size 100000000 add_align 100000000
[    1.059880] pci 0001:02:09.0: bridge window [io  0x1000-0x0fff] to [bus 09-0d] add_size 1000
[    1.059903] pci 0001:02:09.0: bridge window [mem 0x10000
0000-0xffffffff 64bit pref] to [bus 09-0d] add_size 100000000 add_align 100000000
[    1.059929] pci 0001:02:09.0: bridge window [mem 0x00800000-0x007fffff] to [bus 09-0d] add_size 800000 add_align 800000
[    1.059975] pci 0001:01:00.0: bridge window [io  0x1000-0x0fff] to [bus 02-0d] add_size 3000
[    1.059999] pci 0001:01:00.0: bridge window [mem 0x100000000-0x3ffffffff 64bit pref] to [bus 
02-0d] add_size 300000000 add_align 100000000
[    1.060027] pci 0001:01:00.0: bridge window [mem 0x00800000-0x01ffffff] to [bus 02-0d] add_size 1000000 add_align 800000
[    1.060070] pci 0001:00:00.0: bridge window [io  0x1000-0x0fff] to [bus 01-0d] add_size 3000
[    1.060094] pci 0001:00:00.0: bridge window [mem 0x100000000-0x3ffffffff 64bit pref] to [bus 01-0d] add_size 300000000 add_align
 100000000
[    1.060120] pci 0001:00:00.0: bridge window [mem 0x00800000-0x027fffff] to [bus 01-0d] add_size 1000000 add_align 800000
[    1.060149] pci 0001:00:00.0: BAR 9: assigned [mem 0x210000000000-0x2105ffffffff 64bit pref]
[    1.060170] pci 0001:00:00.0: BAR 8: assigned [mem 0x3fe080000000-0x3fe082ffffff]
[    1.060190] pci 0001:00:00.0: BAR 7: no space for [io  size 0x3000]
[    1.0
60206] pci 0001:00:00.0: BAR 7: failed to assign [io  size 0x3000]
[    1.060226] pci 0001:00:00.0: BAR 7: no space for [io  size 0x3000]
[    1.060243] pci 0001:00:00.0: BAR 7: failed to assign [io
  size 0x3000]
[    1.060265] pci 0001:01:00.0: BAR 9: assigned [mem 0x210000000000-0x2105ffffffff 64bit pref]
[    1.060286] pci 0001:01:00.0: BAR 8: assigned [mem 0x3fe080000000-0x3fe0827fffff]
[    1.060305] pci 0001:01:00.0: BAR 0: assigned [mem 0x3fe082800000-0x3fe08283ffff]
[    1.060332] pci 0001:01:00.0: BAR 7: no space for [io  size 0x3000]
[    1.060349] pci 0001:01:00.0: BAR 7: fai
led to assign [io  size 0x3000]
[    1.060368] pci 0001:01:00.0: BAR 7: no space for [io  size 0x3000]
[    1.060385] pci 0001:01:00.0: BAR 7: failed to assign [io  size 0x3000]
[    1.060410] pci 
0001:02:01.0: BAR 9: assigned [mem 0x210000000000-0x2100ffffffff 64bit pref]
[    1.060432] pci 0001:02:08.0: BAR 9: assigned [mem 0x210100000000-0x2101ffffffff 64bit pref]
[    1.060454] pci 0001:02:09.0: BAR 9: assigned [mem 0x210200000000-0x2102ffffffff 64bit pref]
[    1.060475] pci 0001:02:01.0: BAR 8: assigned [mem 0x3fe080000000-0x3fe0807fffff]
[    1.060494] pci 0001:02:08.0: BAR 8: as
signed [mem 0x3fe080800000-0x3fe080ffffff]
[    1.060514] pci 0001:02:09.0: BAR 8: assigned [mem 0x3fe081000000-0x3fe0817fffff]
[    1.060532] pci 0001:02:01.0: BAR 7: no space for [io  size 0x1000]
[    1.060549] pci 0001:02:01.0: BAR 7: failed to assign [io  size 0x1000]
[    1.060566] pci 0001:02:08.0: BAR 7: no space for [io  size 0x1000]
[    1.060583] pci 0001:02:08.0: BAR 7: failed to 
assign [io  size 0x1000]
[    1.060601] pci 0001:02:09.0: BAR 7: no space for [io  size 0x1000]
[    1.060618] pci 0001:02:09.0: BAR 7: failed to assign [io  size 0x1000]
[    1.060639] pci 0001:02:09.0: BAR 7: no space for [io  size 0x1000]
[    1.060656] pci 0001:02:09.0: BAR 7: failed to assign [io  size 0x1000]
[    1.060673] pci 0001:02:08.0: BAR 7: no space for [io  size 0x1000]
[    1
.060689] pci 0001:02:08.0: BAR 7: failed to assign [io  size 0x1000]
[    1.060706] pci 0001:02:01.0: BAR 7: no space for [io  size 0x1000]
[    1.060723] pci 0001:02:01.0: BAR 7: failed to assign [io  size 0x1000]
[    1.060742] pci 0001:00     : [PE# fe] Secondary bus 0 associated with PE#fe
[    1.061235] pci 0001:02:01.0: PCI bridge to [bus 03-07]
[    1.061261] pci 0001:02:01.0:   bridge
 window [mem 0x3fe080000000-0x3fe0807fffff]
[    1.061287] pci 0001:02:01.0:   bridge window [mem 0x210000000000-0x2100ffffffff 64bit pref]
[    1.061324] pci 0001:08:00.0: BAR 6: assigned [mem 0x3f
e080800000-0x3fe08081ffff pref]
[    1.061346] pci 0001:08:00.0: BAR 0: assigned [mem 0x3fe080820000-0x3fe08082ffff 64bit]
[    1.061396] pci 0001:08:00.0: BAR 2: assigned [mem 0x3fe080830000-0x3fe08083ffff 64bit]
[    1.061448] pci 0001:08     : [PE# fd] Secondary bus 8 associated with PE#fd
[    1.061994] pci 0001:08     : [PE# fd] Setting up 32-bit TCE table at 0..80000000
[    1.095643] I
OMMU table initialized, virtual merging enabled
[    1.095662] pci 0001:08     : [PE# fd] Setting up window#0 0..7fffffff pg=1000
[    1.095685] pci 0001:08     : [PE# fd] Enabling 64-bit DMA bypass

[    1.095708] iommu: Adding device 0001:08:00.0 to group 0
[    1.095724] pci 0001:02:08.0: PCI bridge to [bus 08]
[    1.095751] pci 0001:02:08.0:   bridge window [mem 0x3fe080800000-0x3fe080fff
fff]
[    1.095778] pci 0001:02:08.0:   bridge window [mem 0x210100000000-0x2101ffffffff 64bit pref]
[    1.095812] pci 0001:02:09.0: PCI bridge to [bus 09-0d]
[    1.095839] pci 0001:02:09.0:   bridge window [mem 0x3fe081000000-0x3fe0817fffff]
[    1.095865] pci 0001:02:09.0:   bridge window [mem 0x210200000000-0x2102ffffffff 64bit pref]
[    1.095905] pci 0001:02     : [PE# fc] Secondary bu
s 2 associated with PE#fc
[    1.096401] pci 0001:01:00.0: PCI bridge to [bus 02-0d]
[    1.096428] pci 0001:01:00.0:   bridge window [mem 0x3fe080000000-0x3fe0ffefffff]
[    1.096454] pci 0001:01:
00.0:   bridge window [mem 0x210000000000-0x21fdfff0ffff 64bit pref]
[    1.096492] pci 0001:01     : [PE# fb] Secondary bus 1 associated with PE#fb
[    1.096987] pci 0001:00:00.0: PCI bridge to [b
us 01-0d]
[    1.097013] pci 0001:00:00.0:   bridge window [mem 0x3fe080000000-0x3fe0ffefffff]
[    1.097039] pci 0001:00:00.0:   bridge window [mem 0x210000000000-0x21fdfff0ffff 64bit pref]
[    1.097073] pci_bus 0001:00: resource 4 [mem 0x3fe080000000-0x3fe0fffeffff]
[    1.097091] pci_bus 0001:00: resource 5 [mem 0x210000000000-0x21fdffffffff 64bit pref]
[    1.097109] pci_bus 0001:01: res
ource 1 [mem 0x3fe080000000-0x3fe0ffefffff]
[    1.097127] pci_bus 0001:01: resource 2 [mem 0x210000000000-0x21fdfff0ffff 64bit pref]
[    1.097146] pci_bus 0001:02: resource 1 [mem 0x3fe080000000-0
x3fe0ffefffff]
[    1.097164] pci_bus 0001:02: resource 2 [mem 0x210000000000-0x21fdfff0ffff 64bit pref]
[    1.097183] pci_bus 0001:03: resource 1 [mem 0x3fe080000000-0x3fe0807fffff]
[    1.097200
] pci_bus 0001:03: resource 2 [mem 0x210000000000-0x2100ffffffff 64bit pref]
[    1.097220] pci_bus 0001:08: resource 1 [mem 0x3fe080800000-0x3fe080ffffff]
[    1.097237] pci_bus 0001:08: resource 2 [mem 0x210100000000-0x2101ffffffff 64bit pref]
[    1.097257] pci_bus 0001:09: resource 1 [mem 0x3fe081000000-0x3fe0817fffff]
[    1.097274] pci_bus 0001:09: resource 2 [mem 0x210200000000-0x2102ff
ffffff 64bit pref]
[    1.097319] pci 0004:00     : [PE# fe] Secondary bus 0 associated with PE#fe
[    1.097815] pci 0004:00:00.0: PCI bridge to [bus 01-ff]
[    1.097861] pci_bus 0004:00: resource 4 [mem 0x3fe200000000-0x3fe27ffeffff]
[    1.097879] pci_bus 0004:00: resource 5 [mem 0x240000000000-0x24fdffffffff 64bit pref]
[    1.097949] pci 0005:02:08.0: bridge window [io  0x1000-0x0fff] t
o [bus 04] add_size 1000
[    1.097971] pci 0005:02:08.0: bridge window [mem 0x100000000-0xffffffff 64bit pref] to [bus 04] add_size 100000000 add_align 100000000
[    1.098022] pci 0005:02:09.0: bridge window [io  0x1000-0x0fff] to [bus 05] add_size 1000
[    1.098071] pci 0005:02:10.0: bridge window [io  0x1000-0x0fff] to [bus 06-0a] add_size 1000
[    1.098094] pci 0005:02:10.0: bridge wind
ow [mem 0x100000000-0xffffffff 64bit pref] to [bus 06-0a] add_size 100000000 add_align 100000000
[    1.098120] pci 0005:02:10.0: bridge window [mem 0x00800000-0x007fffff] to [bus 06-0a] add_size 800000 add_align 800000
[    1.098169] pci 0005:02:11.0: bridge window [io  0x1000-0x0fff] to [bus 0b-0f] add_size 1000
[    1.098192] pci 0005:02:11.0: bridge window [mem 0x100000000-0xffffffff 64bit 
pref] to [bus 0b-0f] add_size 100000000 add_align 100000000
[    1.098218] pci 0005:02:11.0: bridge window [mem 0x00800000-0x007fffff] to [bus 0b-0f] add_size 800000 add_align 800000
[    1.098265] 
pci 0005:01:00.0: bridge window [io  0x1000-0x0fff] to [bus 02-0f] add_size 4000
[    1.098290] pci 0005:01:00.0: bridge window [mem 0x100000000-0x4ffffffff 64bit pref] to [bus 02-0f] add_size 300000
000 add_align 100000000
[    1.098318] pci 0005:01:00.0: bridge window [mem 0x00800000-0x02ffffff] to [bus 02-0f] add_size 1000000 add_align 800000
[    1.098363] pci 0005:00:00.0: bridge window [io  0x1000-0x0fff] to [bus 01-0f] add_size 4000
[    1.098387] pci 0005:00:00.0: bridge window [mem 0x100000000-0x4ffffffff 64bit pref] to [bus 01-0f] add_size 300000000 add_align 100000000
[    1.098
413] pci 0005:00:00.0: bridge window [mem 0x00800000-0x037fffff] to [bus 01-0f] add_size 1000000 add_align 800000
[    1.098439] pci 0005:00:00.0: BAR 9: assigned [mem 0x250000000000-0x2506ffffffff 6
4bit pref]
[    1.098460] pci 0005:00:00.0: BAR 8: assigned [mem 0x3fe280000000-0x3fe283ffffff]
[    1.098479] pci 0005:00:00.0: BAR 7: no space for [io  size 0x4000]
[    1.098496] pci 0005:00:00.
0: BAR 7: failed to assign [io  size 0x4000]
[    1.098515] pci 0005:00:00.0: BAR 7: no space for [io  size 0x4000]
[    1.098532] pci 0005:00:00.0: BAR 7: failed to assign [io  size 0x4000]
[    1.098553] pci 0005:01:00.0: BAR 9: assigned [mem 0x250000000000-0x2506ffffffff 64bit pref]
[    1.098574] pci 0005:01:00.0: BAR 8: assigned [mem 0x3fe280000000-0x3fe2837fffff]
[    1.098594] pci 0005
:01:00.0: BAR 0: assigned [mem 0x3fe283800000-0x3fe28383ffff]
[    1.098621] pci 0005:01:00.0: BAR 7: no space for [io  size 0x4000]
[    1.098638] pci 0005:01:00.0: BAR 7: failed to assign [io  size 0x4000]
[    1.098657] pci 0005:01:00.0: BAR 7: no space for [io  size 0x4000]
[    1.098674] pci 0005:01:00.0: BAR 7: failed to assign [io  size 0x4000]
[    1.098702] pci 0005:02:08.0: BAR 9: a
ssigned [mem 0x250000000000-0x2500ffffffff 64bit pref]
[    1.098724] pci 0005:02:09.0: BAR 9: assigned [mem 0x250100000000-0x2501ffffffff 64bit pref]
[    1.098745] pci 0005:02:10.0: BAR 9: assigne
d [mem 0x250200000000-0x2502ffffffff 64bit pref]
[    1.098767] pci 0005:02:11.0: BAR 9: assigned [mem 0x250300000000-0x2503ffffffff 64bit pref]
[    1.098787] pci 0005:02:01.0: BAR 8: assigned [mem 0x3fe280000000-0x3fe2807fffff]
[    1.098807] pci 0005:02:08.0: BAR 8: assigned [mem 0x3fe280800000-0x3fe280ffffff]
[    1.098827] pci 0005:02:09.0: BAR 8: assigned [mem 0x3fe281000000-0x3fe2817fff
ff]
[    1.098846] pci 0005:02:10.0: BAR 8: assigned [mem 0x3fe281800000-0x3fe281ffffff]
[    1.098867] pci 0005:02:11.0: BAR 8: assigned [mem 0x3fe282000000-0x3fe2827fffff]
[    1.098885] pci 0005:02:08.0: BAR 7: no space for [io  size 0x1000]
[    1.098902] pci 0005:02:08.0: BAR 7: failed to assign [io  size 0x1000]
[    1.098919] pci 0005:02:09.0: BAR 7: no space for [io  size 0x1000]
[  
  1.098936] pci 0005:02:09.0: BAR 7: failed to assign [io  size 0x1000]
[    1.098953] pci 0005:02:10.0: BAR 7: no space for [io  size 0x1000]
[    1.098970] pci 0005:02:10.0: BAR 7: failed to assign [io  size 0x1000]
[    1.098988] pci 0005:02:11.0: BAR 7: no space for [io  size 0x1000]
[    1.099005] pci 0005:02:11.0: BAR 7: failed to assign [io  size 0x1000]
[    1.099027] pci 0005:02:11.0
: BAR 7: no space for [io  size 0x1000]
[    1.099044] pci 0005:02:11.0: BAR 7: failed to assign [io  size 0x1000]
[    1.099061] pci 0005:02:10.0: BAR 7: no space for [io  size 0x1000]
[    1.099078] pci 0005:02:10.0: BAR 7: failed to assign [io  size 0x1000]
[    1.099095] pci 0005:02:09.0: BAR 7: no space for [io  size 0x1000]
[    1.099112] pci 0005:02:09.0: BAR 7: failed to assign [io  s
ize 0x1000]
[    1.099129] pci 0005:02:08.0: BAR 7: no space for [io  size 0x1000]
[    1.099145] pci 0005:02:08.0: BAR 7: failed to assign [io  size 0x1000]
[    1.099167] pci 0005:03:00.0: BAR 0: assigned [mem 0x3fe280000000-0x3fe28000ffff 64bit]
[    1.099217] pci 0005:03:00.0: BAR 2: assigned [mem 0x3fe280010000-0x3fe280011fff 64bit]
[    1.099266] pci 0005:00     : [PE# fe] Secondary bus
 0 associated with PE#fe
[    1.099766] pci 0005:03     : [PE# fd] Secondary bus 3 associated with PE#fd
[    1.100277] pci 0005:03     : [PE# fd] Setting up 32-bit TCE table at 0..80000000
[    1.
136982] pci 0005:03     : [PE# fd] Setting up window#0 0..7fffffff pg=1000
[    1.137149] pci 0005:03     : [PE# fd] Enabling 64-bit DMA bypass
[    1.137179] iommu: Adding device 0005:03:00.0 to group 1
[    1.137197] pci 0005:02:01.0: PCI bridge to [bus 03]
[    1.137238] pci 0005:02:01.0:   bridge window [mem 0x3fe280000000-0x3fe2807fffff]
[    1.137286] pci 0005:04:00.0: BAR 6: assigned [
mem 0x3fe280800000-0x3fe28081ffff pref]
[    1.137308] pci 0005:04:00.0: BAR 0: assigned [mem 0x3fe280820000-0x3fe28082ffff 64bit]
[    1.137367] pci 0005:04:00.0: BAR 2: assigned [mem 0x3fe28083000
0-0x3fe28083ffff 64bit]
[    1.137425] pci 0005:04     : [PE# fc] Secondary bus 4 associated with PE#fc
[    1.137955] pci 0005:04     : [PE# fc] Setting up 32-bit TCE table at 0..80000000
[    1.172330] pci 0005:04     : [PE# fc] Setting up window#0 0..7fffffff pg=1000
[    1.172364] pci 0005:04     : [PE# fc] Enabling 64-bit DMA bypass
[    1.172387] iommu: Adding device 0005:04:00.0 to gro
up 2
[    1.172403] pci 0005:02:08.0: PCI bridge to [bus 04]
[    1.172433] pci 0005:02:08.0:   bridge window [mem 0x3fe280800000-0x3fe280ffffff]
[    1.172462] pci 0005:02:08.0:   bridge window [mem 0x250000000000-0x2500ffffffff 64bit pref]
[    1.172507] pci 0005:05:00.0: BAR 6: assigned [mem 0x3fe281000000-0x3fe28107ffff pref]
[    1.172527] pci 0005:05:00.1: BAR 6: assigned [mem 0x3fe2810
80000-0x3fe2810fffff pref]
[    1.172548] pci 0005:05:00.2: BAR 6: assigned [mem 0x3fe281100000-0x3fe28117ffff pref]
[    1.172569] pci 0005:05:00.3: BAR 6: assigned [mem 0x3fe281180000-0x3fe2811fff
ff pref]
[    1.172589] pci 0005:05:00.0: BAR 0: assigned [mem 0x250100000000-0x25010000ffff 64bit pref]
[    1.172645] pci 0005:05:00.0: BAR 2: assigned [mem 0x250100010000-0x25010001ffff 64bit pref]
[    1.172699] pci 0005:05:00.0: BAR 4: assigned [mem 0x250100020000-0x25010002ffff 64bit pref]
[    1.172754] pci 0005:05:00.1: BAR 0: assigned [mem 0x250100030000-0x25010003ffff 64bit pref]
[ 
   1.172809] pci 0005:05:00.1: BAR 2: assigned [mem 0x250100040000-0x25010004ffff 64bit pref]
[    1.172864] pci 0005:05:00.1: BAR 4: assigned [mem 0x250100050000-0x25010005ffff 64bit pref]
[    1.172919] pci 0005:05:00.2: BAR 0: assigned [mem 0x250100060000-0x25010006ffff 64bit pref]
[    1.172975] pci 0005:05:00.2: BAR 2: assigned [mem 0x250100070000-0x25010007ffff 64bit pref]
[    1.173031] pci 0005:05:00.2: BAR 4: assigned [mem 0x250100080000-0x25010008ffff 64bit pref]
[    1.173086] pci 0005:05:00.3: BAR 0: assigned [mem 0x250100090000-0x25010009ffff 64bit pref]
[    1.173141] pci 0
005:05:00.3: BAR 2: assigned [mem 0x2501000a0000-0x2501000affff 64bit pref]
[    1.173196] pci 0005:05:00.3: BAR 4: assigned [mem 0x2501000b0000-0x2501000bffff 64bit pref]
[    1.173286] pci 0005:05     : [PE# 01] Secondary bus 5 associated with PE#1
[    1.173808] pci 0005:05     : [PE# 01] Setting up 32-bit TCE table at 0..80000000
[    1.208100] pci 0005:05     : [PE# 01] Setting up window#0 0..7fffffff pg=1000
[    1.208126] pci 0005:05     : [PE# 01] Enabling 64-bit DMA bypass
[    1.208149] iommu: Adding device 0005:05:00.0 to group 3
[    1.208168] iommu: Adding device 0005:05:00.1 to group 3
[    1.208187] iommu: Adding device 0005:05:00.2 to group 3
[    1.208206] iommu: Adding device 0005:05:00.3 to group 3
[    1.208222] pci 0005:02:09.0: PCI bridge to [bus 05]
[    1.208251] pci 0005:02:09.0:   bridge window [mem 0x3fe281000000-0x3fe2817fffff]
[    1.208278] pci 0005:02:09.0:   bridge window [mem 0x2501
00000000-0x2501ffffffff 64bit pref]
[    1.208313] pci 0005:02:10.0: PCI bridge to [bus 06-0a]
[    1.208340] pci 0005:02:10.0:   bridge window [mem 0x3fe281800000-0x3fe281ffffff]
[    1.208367] pci 0005:02:10.0:   bridge window [mem 0x250200000000-0x2502ffffffff 64bit pref]
[    1.208402] pci 0005:02:11.0: PCI bridge to [bus 0b-0f]
[    1.208430] pci 0005:02:11.0:   bridge window [mem 0x3fe2
82000000-0x3fe2827fffff]
[    1.208457] pci 0005:02:11.0:   bridge window [mem 0x250300000000-0x2503ffffffff 64bit pref]
[    1.208499] pci 0005:02     : [PE# fb] Secondary bus 2 associated with PE#fb
[    1.208998] pci 0005:01:00.0: PCI bridge to [bus 02-0f]
[    1.209025] pci 0005:01:00.0:   bridge window [mem 0x3fe280000000-0x3fe2ffefffff]
[    1.209051] pci 0005:01:00.0:   bridge window [
mem 0x250000000000-0x25fdfff0ffff 64bit pref]
[    1.209089] pci 0005:01     : [PE# fa] Secondary bus 1 associated with PE#fa
[    1.209585] pci 0005:00:00.0: PCI bridge to [bus 01-0f]
[    1.209611] pci 0005:00:00.0:   bridge window [mem 0x3fe280000000-0x3fe2ffefffff]
[    1.209637] pci 0005:00:00.0:   bridge window [mem 0x250000000000-0x25fdfff0ffff 64bit pref]
[    1.209672] pci_bus 0005:0
0: resource 4 [mem 0x3fe280000000-0x3fe2fffeffff]
[    1.209690] pci_bus 0005:00: resource 5 [mem 0x250000000000-0x25fdffffffff 64bit pref]
[    1.209709] pci_bus 0005:01: resource 1 [mem 0x3fe280000000-0x3fe2ffefffff]
[    1.209727] pci_bus 0005:01: resource 2 [mem 0x250000000000-0x25fdfff0ffff 64bit pref]
[    1.209746] pci_bus 0005:02: resource 1 [mem 0x3fe280000000-0x3fe2ffefffff]
[    1.209764] pci_bus 0005:02: resource 2 [mem 0x250000000000-0x25fdfff0ffff 64bit pref]
[    1.209783] pci_bus 0005:03: resource 1 [mem 0x3fe280000000-0x3fe2807fffff]
[    1.209801] pci_bus 0005:04: reso
urce 1 [mem 0x3fe280800000-0x3fe280ffffff]
[    1.209819] pci_bus 0005:04: resource 2 [mem 0x250000000000-0x2500ffffffff 64bit pref]
[    1.209838] pci_bus 0005:05: resource 1 [mem 0x3fe281000000-0x
3fe2817fffff]
[    1.209856] pci_bus 0005:05: resource 2 [mem 0x250100000000-0x2501ffffffff 64bit pref]
[    1.209876] pci_bus 0005:06: resource 1 [mem 0x3fe281800000-0x3fe281ffffff]
[    1.209894] pci_bus 0005:06: resource 2 [mem 0x250200000000-0x2502ffffffff 64bit pref]
[    1.209913] pci_bus 0005:0b: resource 1 [mem 0x3fe282000000-0x3fe2827fffff]
[    1.209932] pci_bus 0005:0b: resource 2 [mem 0x250300000000-0x2503ffffffff 64bit pref]
[    1.209982] pci 0040:00     : [PE# fe] Secondary bus 0 associated with PE#fe
[    1.210478] pci 0040:00:00.0: PCI bridge to [bus 01-ff]
[    1.2105
25] pci_bus 0040:00: resource 4 [mem 0x3ff000000000-0x3ff07ffeffff]
[    1.210543] pci_bus 0040:00: resource 5 [mem 0x280000000000-0x28fdffffffff 64bit pref]
[    1.210590] pci 0044:00     : [PE# fe
] Secondary bus 0 associated with PE#fe
[    1.211085] pci 0044:00:00.0: PCI bridge to [bus 01-ff]
[    1.211133] pci_bus 0044:00: resource 4 [mem 0x3ff200000000-0x3ff27ffeffff]
[    1.211153] pci_
bus 0044:00: resource 5 [mem 0x2c0000000000-0x2cfdffffffff 64bit pref]
[    1.211201] pci 0045:00     : [PE# fe] Secondary bus 0 associated with PE#fe
[    1.211700] pci 0045:00:00.0: PCI bridge to [bus 01-ff]
[    1.211747] pci_bus 0045:00: resource 4 [mem 0x3ff280000000-0x3ff2fffeffff]
[    1.211765] pci_bus 0045:00: resource 5 [mem 0x2d0000000000-0x2dfdffffffff 64bit pref]
[    1.211901] p
ci 0001:00:00.0: enabling device (0141 -> 0143)
[    1.211944] pci 0001:01:00.0: enabling device (0141 -> 0143)
[    1.211991] pci 0001:02:08.0: enabling device (0141 -> 0143)
[    1.212035] pci 0005:00:00.0: enabling device (0141 -> 0143)
[    1.212074] pci 0005:01:00.0: enabling device (0141 -> 0143)
[    1.212118] pci 0005:02:01.0: enabling device (0141 -> 0143)
[    1.212162] pci 0005:02
:08.0: enabling device (0141 -> 0143)
[    1.212208] pci 0005:02:09.0: enabling device (0141 -> 0143)
[    1.214548] EEH: PCI Enhanced I/O Error Handling Enabled
[    1.215025] PCI: Probing PCI har
dware done
[    1.217170] create_dump_obj: New platform dump. ID = 0x41000000 Size 804576
[    1.222318] powernv-rng: Registering arch random hook.
[    1.225721] opal-power: OPAL EPOW, DPO support detected.
[    1.227748] random: fast init done
[    1.229239] HugeTLB registered 16.0 MiB page size, pre-allocated 0 pages
[    1.229247] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pa
ges
[    1.230582] random: crng init done
[    1.232113] vgaarb: loaded
[    1.232406] SCSI subsystem initialized
[    1.232760] libata version 3.00 loaded.
[    1.232882] usbcore: registered new interface driver usbfs
[    1.232900] usbcore: registered new interface driver hub
[    1.233469] usbcore: registered new device driver usb
[    1.233544] pps_core: LinuxPPS API ver. 1 registered
[    1.233552] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.233568] PTP clock support registered
[    1.234107] EDAC MC: Ver: 3.0.0
[    1.235142
] clocksource: Switched to clocksource timebase
[    1.250735] NET: Registered protocol family 2
[    1.251486] tcp_listen_portaddr_hash hash table entries: 65536 (order: 4, 1048576 bytes)
[    1.251642] TCP established hash table entries: 524288 (order: 6, 4194304 bytes)
[    1.252490] TCP bind hash table entries: 65536 (order: 4, 1048576 bytes)
[    1.252624] TCP: Hash tables configured (es
tablished 524288 bind 65536)
[    1.252798] UDP hash table entries: 65536 (order: 5, 2097152 bytes)
[    1.253070] UDP-Lite hash table entries: 65536 (order: 5, 2097152 bytes)
[    1.253841] NET: Registered protocol family 1
[    1.254594] RPC: Registered named UNIX socket transport module.
[    1.254599] RPC: Registered udp transport module.
[    1.254602] RPC: Registered tcp transport module.
[    1.254606] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.254670] pci 0005:03:00.0: enabling device (0140 -> 0142)
[    1.254728] PCI: CLS 128 bytes, default 128
[    1.2
54786] Trying to unpack rootfs image as initramfs...
[    1.565749] Freeing initrd memory: 18880K
[    1.566060] numa: Starting topology update
[    1.570671] workingset: timestamp_bits=38 max_order=21 bucket_order=0
[    1.577354] NFS: Registering the id_resolver key type
[    1.577370] Key type id_resolver registered
[    1.577373] Key type id_legacy registered
[    1.577383] SGI XFS with ACLs, security attributes, no debug enabled
[    1.581550] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.581558] Oops: Bad kernel stack pointer, sig: 6 [#1]
[    1.581562] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.581567] Modules linked in:
[    1.581572] CPU: 3 PID: 1937 Comm: modprobe Not tainted 4.20.0-rc4-gd35c78239 #1
[    1.581577] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[    1.581582] REGS: c0000007ffe77d30 TRAP: 0e40   Not tainted  (4.20.0-rc4-gd35c78239)
[    1.581586] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[    1.5815
94] CFAR: c00000000000b9e0 IRQMASK: c0000000014d1bd8 
[    1.581594] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[    1.581594] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[    1.581594] GPR08: 0000000000000000 c000001e5104fe90 0000000000000000 c000000000c30ff8 
[    1.581594] GPR12: c000000000e2cee0 c0000007ffffd800 4f4c5f4543415254 00007fffb55927d0 
[    1.581594] GPR16: 00007fffb55bfbf0 00007fffc087b160 c000000065b70ff8 00007fffc087b5c8 
[    1.581594] GPR20: 000000000000000d 0000000000000000 0000000000000000 000000000000
0000 
[    1.581594] GPR24: 000000012b660d79 0000000000000000 00007fffb55c0000 0000000000000000 
[    1.581594] GPR28: 00007fffb55c1110 0000000000000001 00007fffb55c1050 00007fffc087a880 
[    1.58
1637] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.581643] LR [c00000000000b9e4] system_call+0x5c/0x70
[    1.581646] Call Trace:
[    1.581648] Instruction dump:
[    1.581652] 
XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.581657] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.581664] ---[ end trace 37e56b4
4979b6992 ]---
[    1.582355] 
[    1.582585] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.582590] Oops: Bad kernel stack pointer, sig: 6 [#2]
[    1.582593] LE SMP NR_CPUS=2048 NU
MA PowerNV
[    1.582597] Modules linked in:
[    1.582601] CPU: 5 PID: 1939 Comm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[    1.582606] NIP:  c000000000e2ceec LR: c000000000
00b9e4 CTR: c000000000e2cee0
[    1.582611] REGS: c0000007ffe5fd30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[    1.582616] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  
CR: 48024488  XER: 00000000
[    1.582622] CFAR: c00000000000b9e0 IRQMASK: f000000003ff0000 
[    1.582622] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[    1.582622
] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[    1.582622] GPR08: 0000000000000000 c000001e51057e90 0000000000000000 c000000000c30ff8 
[    1.582622] GPR12: c000000000e2cee0 c0000007ffffbd00 4f4c5f4543415254 00007fff930127d0 
[    1.582622] GPR16: 00007fff9303fbf0 00007fffeb7b0510 c000000065b70ff8 00007fffeb7b0978 
[    1.582622] GPR20: 000000000000000d 000000
0000000000 0000000000000000 0000000000000000 
[    1.582622] GPR24: 0000000130920d79 0000000000000000 00007fff93040000 0000000000000000 
[    1.582622] GPR28: 00007fff93041110 0000000000000001 00007
fff93041050 00007fffeb7afc30 
[    1.582663] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.582668] LR [c00000000000b9e4] system_call+0x5c/0x70
[    1.582672] Call Trace:
[    1.582674] Instruction dump:
[    1.582676] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.582682] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX
 
[    1.582687] ---[ end trace 37e56b44979b6993 ]---
[    1.583344] 
[    1.583546] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.583551] Oops: Bad kernel stack pointer, sig: 6 [#3
]
[    1.583553] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.583557] Modules linked in:
[    1.583562] CPU: 4 PID: 1941 Comm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[    1.583567] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[    1.583571] REGS: c0000007ffe6bd30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[    1.583576] MSR:  9000
000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[    1.583582] CFAR: c00000000000b9e0 IRQMASK: c0000007ff313710 
[    1.583582] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[    1.583582] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[    1.583582] GPR08: 0000000000000000 c000001e5105fe90 0000000000000000 c0000000
00c30ff8 
[    1.583582] GPR12: c000000000e2cee0 c0000007ffffca80 4f4c5f4543415254 00007fffb2c027d0 
[    1.583582] GPR16: 00007fffb2c2fbf0 00007fffd560c8a0 c000000065b70ff8 00007fffd560cd08 
[    
1.583582] GPR20: 000000000000000d 0000000000000000 0000000000000000 0000000000000000 
[    1.583582] GPR24: 000000013cb90d79 0000000000000000 00007fffb2c30000 0000000000000000 
[    1.583582] GPR28:
 00007fffb2c31110 0000000000000001 00007fffb2c31050 00007fffd560bfc0 
[    1.583623] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.583628] LR [c00000000000b9e4] system_call+0x5c/0x70
[    1.583631] Call Trace:
[    1.583633] Instruction dump:
[    1.583636] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.583641] XXXXXXXX XXXXXXXX XXXXXXXX XXXX
XXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.583647] ---[ end trace 37e56b44979b6994 ]---
[    1.584280] 
[    1.584481] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.584486] Oo
ps: Bad kernel stack pointer, sig: 6 [#4]
[    1.584488] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.584493] Modules linked in:
[    1.584497] CPU: 6 PID: 1943 Comm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[    1.584502] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[    1.584506] REGS: c0000007ffe53d30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc
4-gd35c78239)
[    1.584511] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[    1.584518] CFAR: c00000000000b9e0 IRQMASK: c0000007ffcb2300 
[    1.584518] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[    1.584518] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[    1.584518] GPR08: 0000000000000000 c0
00000002c83e90 0000000000000000 c000000000c30ff8 
[    1.584518] GPR12: c000000000e2cee0 c0000007ffffaf80 4f4c5f4543415254 00007fff86c727d0 
[    1.584518] GPR16: 00007fff86c9fbf0 00007fffea344410 c
000000065b70ff8 00007fffea344878 
[    1.584518] GPR20: 000000000000000d 0000000000000000 0000000000000000 0000000000000000 
[    1.584518] GPR24: 000000013a450d79 0000000000000000 00007fff86ca0000 0000000000000000 
[    1.584518] GPR28: 00007fff86ca1110 0000000000000001 00007fff86ca1050 00007fffea343b30 
[    1.584558] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.584564] LR
 [c00000000000b9e4] system_call+0x5c/0x70
[    1.584567] Call Trace:
[    1.584569] Instruction dump:
[    1.584572] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.584577] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.584583] ---[ end trace 37e56b44979b6995 ]---
[    1.585204] 
[    1.585351] Bad kernel stack pointer 6e69000
0 at c000000000e2ceec
[    1.585356] Oops: Bad kernel stack pointer, sig: 6 [#5]
[    1.585359] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.585363] Modules linked in:
[    1.585367] CPU: 4 PID: 1945 C
omm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[    1.585372] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[    1.585376] REGS: c0000007ffe6bd30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[    1.585381] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[    1.585387] CFAR: c00000000000b9e0 IRQMASK: c0000007ff313710 
[    1.585387] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[    1.585387] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[
    1.585387] GPR08: 0000000000000000 c000000002c8be90 0000000000000000 c000000000c30ff8 
[    1.585387] GPR12: c000000000e2cee0 c0000007ffffca80 4f4c5f4543415254 00007fffb8cd27d0 
[    1.585387] GP
R16: 00007fffb8cffbf0 00007ffff19bacb0 c000000065b70ff8 00007ffff19bb118 
[    1.585387] GPR20: 000000000000000d 0000000000000000 0000000000000000 0000000000000000 
[    1.585387] GPR24: 00000001181
10d79 0000000000000000 00007fffb8d00000 0000000000000000 
[    1.585387] GPR28: 00007fffb8d01110 0000000000000001 00007fffb8d01050 00007ffff19ba3d0 
[    1.585429] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.585434] LR [c00000000000b9e4] system_call+0x5c/0x70
[    1.585437] Call Trace:
[    1.585439] Instruction dump:
[    1.585441] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXX
XXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.585447] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.585452] ---[ end trace 37e56b44979b6996 ]---
[    1.586032] 
[    1.586270] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.586278] Oops: Bad kernel stack pointer, sig: 6 [#6]
[    1.586281] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.586286] Modules linke
d in:
[    1.586290] CPU: 10 PID: 1947 Comm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[    1.586296] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[    1.58
6300] REGS: c0000007ffe23d30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[    1.586305] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[    1.586
312] CFAR: c00000000000b9e0 IRQMASK: c0000007ff493710 
[    1.586312] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[    1.586312] GPR04: c00000006ecb0ff8 0000000000080
000 0000000000000000 7f7f7f7f7f7f7f7f 
[    1.586312] GPR08: 0000000000000000 c000000002c93e90 0000000000000000 c000000000c30ff8 
[    1.586312] GPR12: c000000000e2cee0 c0000007ffff7980 4f4c5f454341
5254 00007fff8b6d27d0 
[    1.586312] GPR16: 00007fff8b6ffbf0 00007fffde9bb230 c000000065b70ff8 00007fffde9bb698 
[    1.586312] GPR20: 000000000000000d 0000000000000000 0000000000000000 0000000000000000 
[    1.586312] GPR24: 0000000132500d79 0000000000000000 00007fff8b700000 0000000000000000 
[    1.586312] GPR28: 00007fff8b701110 0000000000000001 00007fff8b701050 00007fffde9ba950 
[    1.5
86354] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.586359] LR [c00000000000b9e4] system_call+0x5c/0x70
[    1.586362] Call Trace:
[    1.586365] Instruction dump:
[    1.586368]
 XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.586373] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.586379] ---[ end trace 37e56b44979b6997 ]---
[    1.586977] 
[    1.587167] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.587172] Oops: Bad kernel stack pointer, sig: 6 [#7]
[    1.587175] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.587179] Modules linked in:
[    1.587183] CPU: 8 PID: 1949 Comm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[    1.587188] NIP:  c000000000e2ceec LR: c00000000
000b9e4 CTR: c000000000e2cee0
[    1.587193] REGS: c0000007ffe3bd30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[    1.587197] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE> 
 CR: 48024488  XER: 00000000
[    1.587204] CFAR: c00000000000b9e0 IRQMASK: c000000001088c80 
[    1.587204] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[    1.58720
4] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[    1.587204] GPR08: 0000000000000000 c000000002c9be90 0000000000000000 c000000000c30ff8 
[    1.587204] GPR12: c00000
0000e2cee0 c0000007ffff9480 4f4c5f4543415254 00007fff956727d0 
[    1.587204] GPR16: 00007fff9569fbf0 00007fffc9b08ba0 c000000065b70ff8 00007fffc9b09008 
[    1.587204] GPR20: 000000000000000d 0000000000000000 0000000000000000 0000000000000000 
[    1.587204] GPR24: 000000012ab80d79 0000000000000000 00007fff956a0000 0000000000000000 
[    1.587204] GPR28: 00007fff956a1110 0000000000000001 0000
7fff956a1050 00007fffc9b082c0 
[    1.587245] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.587250] LR [c00000000000b9e4] system_call+0x5c/0x70
[    1.587253] Call Trace:
[    1.587255] Instruction dump:
[    1.587258] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.587263] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.587269] ---[ end trace 37e56b44979b6998 ]---
[    1.587864] 
[    1.588070] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[    1.588075] Oops: Bad kernel stack pointer, sig: 6 [#
8]
[    1.588078] LE SMP NR_CPUS=2048 NUMA PowerNV
[    1.588082] Modules linked in:
[    1.588086] CPU: 12 PID: 1951 Comm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[    1.588091] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[    1.588095] REGS: c0000007ffe0bd30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[    1.588100] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[    1.588107] CFAR: c00000000000b9e0 IRQMASK: c0000000014d1bd8 
[    1.588107] GPR00: 00000000000011e0 000000006e690000 c000000
001498900 ffffffffffffff9c 
[    1.588107] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[    1.588107] GPR08: 0000000000000000 c000000002ca3e90 0000000000000000 c000000000c30ff8 
[    1.588107] GPR12: c000000000e2cee0 c0000007ffff5e80 4f4c5f4543415254 00007fff8f2027d0 
[    1.588107] GPR16: 00007fff8f22fbf0 00007fffff95f810 c000000065b70ff8 00007fffff95fc78 
[    1.588107] GPR20: 000000000000000d 0000000000000000 0000000000000000 0000000000000000 
[    1.588107] GPR24: 0000000116cf0d79 0000000000000000 00007fff8f230000 0000000000000000 
[    1.588107] GPR28: 00007fff8f231110 0000000000000001 00007fff8f231050 00007fffff95ef30 
[    1.588147] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[    1.588152] LR [c00000000000b9e4] system_call+0x5c/0
x70
[    1.588156] Call Trace:
[    1.588158] Instruction dump:
[    1.588160] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.588166] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[    1.588172] ---[ end trace 37e56b44979b6999 ]---
[    1.588778] 
[    1.588819] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.588828] io scheduler noop registered
[    1.588832] io scheduler deadline registered
[    1.589033] io scheduler cfq registered (default)
[    1.589039] io scheduler mq-deadline registered
[    1.589044] io scheduler kyber registered
[    1.602488] __vio_register_driver: driver hvc_console registering
[    1.602530] hvc0: raw protocol on /ibm,opal/consoles/serial@0 (boot console)
[  
  1.602758] hvc1: hvsi protocol on /ibm,opal/consoles/serial@1
[    1.602792] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.606507] brd: module loaded
[    1.615736] loop: module loaded
[    1.615817] ipr: IBM Power RAID SCSI Device Driver version: 2.6.4 (March 14, 2017)
[    1.615864] ipr 0001:08:00.0: Found IOA with IRQ: 0
[    1.615977] ipr 0001:08:00.0: enabling device (0140 -> 0142)
[    1.615990] ipr 0001:08:00.0: Using 64-bit DMA iommu bypass
[    1.616268] ipr 0001:08:00.0: Received IRQ : 505
[    1.616282] ipr 0001:08:00.0: Request for 16 MSI-Xs succeeded.
[    1.616701] ipr 0001:08:00.0: Initializing IOA.
[    1.616707] scsi host0: IBM 0 Storage Adapter

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "11"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "12"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "13"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "14"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "15"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"

[   29.553279] ipr 0001:08:00.0: Starting IOA initialization sequence.
[   29.568930] ipr 0001:08:00.0: Adapter firmware version: 13512400
[   29.570584] ipr 0001:08:00.0: IOA initialized.
[   29.571026] scsi 0:3:0:0: No Device         IBM      57D8001SISIOA    0150 PQ: 0 ANSI: 0
[   29.571034] scsi 0:3:0:0: Resource path: 0/FE
[   29.575672] scsi 0:0:0:0: Direct-Access     IBM      ST600MP0064      7D0F PQ: 0 ANSI: 6
[   29.575679] scsi 0:0:0:0: Resource path: 0/00-0C-00
[   29.629047] scsi 0:0:1:0: Direct-Access     IBM      ST1200MM0007     BF05 PQ: 0 ANSI: 6
[   29.629059] scsi 0:0:1:0: Resource path: 0/00-0C-01
[   29.629434] scsi 0:1:0:0: No Device         IBM      IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   29.629440] scsi 0:1:0:0: Resource path: 0/FD-00
[   29.629974] scsi 0:1:1:0: No Device         IBM      IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   29.629980] scsi 0:1:1:0: Resource path: 0/FD-01
[   29.630333] scsi 0:2:0:0: Direct-Access     IBM      IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   29.630341] scsi 0:2:0:0: Resource path: 0/FC-01-00
[   29.630776] scsi 0:2:1:0: Direct-Access     IBM      IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   29.630783] scsi 0:2:1:0: Resource path: 0/FC-00-00
[   29.631861] scsi 0:0:2:0: Enclosure         IBM      PSBPD14M1 6GSAS  1508 PQ: 0 ANSI: 4
[   29.631867] scsi 0:0:2:0: Resource path: 0/00-08-18
[   29.633164] scsi 0:0:3:0: Enclosure         IBM 
     PSBPD14M1 6GSAS  1508 PQ: 0 ANSI: 4
[   29.633171] scsi 0:0:3:0: Resource path: 0/00-0C-18
[   29.635079] ipr 0005:04:00.0: Found IOA with IRQ: 0
[   29.635177] ipr 0005:04:00.0: enabling device (0140 -> 0142)
[   29.635194] ipr 0005:04:00.0: Using 64-bit DMA iommu bypass
[   29.635492] ipr 0005:04:00.0: Received IRQ : 397
[   29.635511] ipr 0005:04:00.0: Request for 16 MSI-Xs succeeded.
[   29.635938] ipr 0005:04:00.0: Initializing IOA.
[   29.635945] scsi host1: IBM 0 Storage Adapter

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "16"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "17"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "18"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "19"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "20"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "21"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"


 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "22"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"

[   64.491925] ipr 0005:04:00.0: Starting IOA initialization sequence.
[   64.577068] ipr 0005:04:00.0: Adapter firmware version: 13512400
[   64.578736] ipr 0005:04:00.0: IOA initialized.
[   64.628396] scsi 1:3:0:0: No Device         IBM      57D8001SISIOA    0150 PQ: 0 ANSI: 0
[   64.628406] scsi 1:3:0:0: Resource path: 1/FE
[   64.754741] scsi 1:0:0:0: Enclosure         IBM      VSBPD14M1 6GSAS    03 PQ: 0 ANSI: 2
[   64.754753] scsi 1:0:0:0: Resource path: 1/00-14
[   64.755909] scsi 1:0:2:0: Enclosure         IBM    
  PSBPD14M1 6GSAS  1508 PQ: 0 ANSI: 4
[   64.755916] scsi 1:0:2:0: Resource path: 1/00-08-18
[   64.757257] scsi 1:0:3:0: Enclosure         IBM      PSBPD14M1 6GSAS  1508 PQ: 0 ANSI: 4
[   64.757264] scsi 1:0:3:0: Resource path: 1/00-0C-18
[   64.761685] scsi 1:0:4:0: Direct-Access     IBM      ST600MP0064      7D0F PQ: 0 ANSI: 6
[   64.761692] scsi 1:0:4:0: Resource path: 1/00-0C-00
[   64.765637] scsi 1:0:5:0: Direct-Access     IBM      ST1200MM0007     BF05 PQ: 0 ANSI: 6
[   64.765643] scsi 1:0:5:0: Resource path: 1/00-0C-01
[   64.766001] scsi 1:1:0:0: No Device         IBM 
     IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   64.766007] scsi 1:1:0:0: Resource path: 1/FD-00
[   64.766372] scsi 1:1:1:0: No Device         IBM      IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   64.766378] scsi 1:1:1:0: Resource path: 1/FD-01
[   64.774245] scsi 1:2:0:0: Direct-Access     IBM      IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   64.774251] scsi 1:2:0:0: Resource path: 1/FC-01-00
[   64.782273] scsi 1:2:1:0: Direct-Access     IBM      IPR-0   5EDF3D00      PQ: 0 ANSI: 3
[   64.782287] scsi 1:2:1:0: Resource path: 1/FC-00-00
[   64.795250] sd 0:2:0:0: Power-on or device reset occurred
[   64.795283] sd 0:2:1:0: Power-on or device reset occurred
[   64.795492] sd 0:2:0:0: [sda] Spinning up disk...
[   64.795527] sd 0:2:
1:0: [sdb] Spinning up disk...
[   64.795628] sd 1:2:0:0: Power-on or device reset occurred
[   64.795719] scsi 0:3:0:0: Attached scsi generic sg0 type 31
[   64.795783] scsi 0:0:0:0: Attached scsi generic sg1 type 12
[   64.795850] scsi 0:0:1:0: Attached scsi generic sg2 type 12
[   64.795892] sd 1:2:1:0: Power-on or device reset occurred
[   64.795921] scsi 0:1:0:0: Attached scsi generic sg3 type 31
[   64.795989] scsi 0:1:1:0: Attached scsi generic sg4 type 31
[   64.796054] sd 0:2:0:0: Attached scsi generic sg5 type 0
[   64.796118] sd 0:2:1:0: Attached scsi generic sg6 type 0
[   64.796153] scsi 0:0:2:0: Attached scsi generic sg7 type 13
[   64.796225] scsi 0:0:3:0: Attached scsi generic sg8 type 13
[   64.796290] scsi 1:3:0:0: Attached scsi generic sg9 type 31
[   64.796
354] scsi 1:0:0:0: Attached scsi generic sg10 type 13
[   64.796418] scsi 1:0:2:0: Attached scsi generic sg11 type 13
[   64.796483] scsi 1:0:3:0: Attached scsi generic sg12 type 13
[   64.796548] scsi 1:0:4:0: Attached scsi generic sg13 type 12
[   64.796615] scsi 1:0:5:0: Attached scsi generic sg14 type 12
[   64.796680] scsi 1:1:0:0: Attached scsi generic sg15 type 31
[   64.796745] scsi 1:1:1:0: Attached scsi generic sg16 type 31
[   64.796809] sd 1:2:0:0: Attached scsi generic sg17 type 0
[   64.796879] sd 1:2:1:0: Attached scsi generic sg18 type 0
[   64.797070] libphy: Fixed MDIO Bus: probed
[   64.797203] tg3.c:v3.137 (May 11, 2014)
[   64.797216] tg3 0005:05:00.0: enabling device (0140 -> 0142)
[   64.832953] tg3 0005:05:00.0: Using 64-bit DMA iommu bypass
[   64.833446] tg3 0005:05:00.0 eth0: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:64
[   64.833458] t
g3 0005:05:00.0 eth0: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[   64.833464] tg3 0005:05:00.0 eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[   64.833470] tg3 0005:05:00.0 eth0: dma_rwctrl[00000000] dma_mask[64-bit]
[   64.833586] tg3 0005:05:00.1: enabling device (0140 -> 0142)
[   64.864036] tg3 0005:05:00.1: Using 64-bit DMA iommu bypass
[   64.864299] tg3 0005:05:00.1 eth1: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:65
[   64.864309] tg3 0005:05:00.1 eth1: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[   64.864316] tg3 0005:05:00.1 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[   64.864321] tg3 0005:05:00.1 eth1: dma_rwctrl[00000000] dma_mask[64-bit]
[   64.864434] tg3 0005:05:00.2: enabling device (0140 -> 0142)
[   64.894032] tg3 0005:05:00.2: Using 64-bit DMA iommu bypass
[   64.894293] tg3 0005:05:00.2 eth2: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:66
[   64.894303] t
g3 0005:05:00.2 eth2: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[   64.894310] tg3 0005:05:00.2 eth2: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[   64.894315] tg3 0005:05:00.2 eth2: dma_rwctrl[00000000] dma_mask[64-bit]
[   64.894429] tg3 0005:05:00.3: enabling device (0140 -> 0142)
[   64.898483] sd 1:2:0:0: [sdc] Spinning up disk...
[   64.924033] tg3 0005:05:00.3: Using 64-bit DMA iommu bypass
[   64.924283] tg3 0005:05:00.3 eth3: Tigon3 [partno(00RX892) rev 5719001] (PCI Express) MAC address 98:be:94:02:8f:67
[   64.924293] t
g3 0005:05:00.3 eth3: attached PHY is 5719C (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[1])
[   64.924300] tg3 0005:05:00.3 eth3: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]
[   64.924305] tg3 0005:05:00.3 eth3: dma_rwctrl[00000000] dma_mask[64-bit]
[   64.924307] sd 1:2:1:0: [sdd] Spinning up disk...
[   64.924432] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[   64.924439] e100: Copyright(c) 1999-2006 Intel Corporation
[   64.924457] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[   64.924463] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 
  64.924485] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[   64.924491] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[   64.924534] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   64.924542] ehci-pci: EHCI PCI platform driver
[   64.924554] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   64.924565] ohci-pci: OHCI PCI platform driver
[   64.960302] rtc-opal opal-rtc: rtc core: registered rtc-opal as rtc0
[   64.960324] i2c /dev entries driver
[   64.963642] device-mapper: uevent: version 1.0.3
[   64.963862] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com
[   64.963877] powernv-cpufreq: cpufreq pstate min
 0xffffffcf nominal 0xfffffff8 max 0x0
[   64.963881] powernv-cpufreq: Workload Optimized Frequency is disabled in the platform
[   64.967626] powernv_idle_driver registered
[   64.967734] nx_compress_powernv: coprocessor found on chip 0, CT 3 CI 1
[   64.967740] nx_compress_powernv: coprocessor found on chip 1, CT 3 CI 2
[   64.967745] nx_compress_powernv: coprocessor found on chip 16, CT 3 
CI 17
[   64.967750] nx_compress_powernv: coprocessor found on chip 17, CT 3 CI 18
[   64.968148] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[   64.968158] Oops: Bad kernel stack pointer
, sig: 6 [#9]
[   64.968163] LE SMP NR_CPUS=2048 NUMA PowerNV
[   64.968172] Modules linked in:
[   64.968180] CPU: 5 PID: 2792 Comm: modprobe Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[   64.968189] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[   64.968197] REGS: c0000007ffe5fd30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[   64.968204
] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 48024488  XER: 00000000
[   64.968217] CFAR: c00000000000b9e0 IRQMASK: f000000003ff0000 
[   64.968217] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[   64.968217] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 7f7f7f7f7f7f7f7f 
[   64.968217] GPR08: 0000000000000000 c0000007efb07e90 0000000000000
000 c000000000c30ff8 
[   64.968217] GPR12: c000000000e2cee0 c0000007ffffbd00 4f4c5f4543415254 00007fff9ba227d0 
[   64.968217] GPR16: 00007fff9ba4fbf0 00007fffdc860570 c000000065b70ff8 00007fffdc86
09d8 
[   64.968217] GPR20: 000000000000000d 0000000000000000 0000000000000000 0000000000000000 
[   64.968217] GPR24: 0000000128be0d79 0000000000000000 00007fff9ba50000 0000000000000000 
[   64.968217] GPR28: 00007fff9ba51110 0000000000000001 00007fff9ba51050 00007fffdc85fc90 
[   64.968291] NIP [c000000000e2ceec] str_spec.65753+0x147da0/0x1f1c5c
[   64.968300] LR [c00000000000b9e4] system_call+0x5c/0x70
[   64.968305] Call Trace:
[   64.968309] Instruction dump:
[   64.968316] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[   64.968326] XXXXXXXX XXXXXXXX X
XXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[   64.968337] ---[ end trace 37e56b44979b699a ]---
[   64.969254] 
[   64.969611] usbcore: registered new interface driver usbhid
[   64.9696
17] usbhid: USB HID core driver
[   64.969973] ipip: IPv4 and MPLS over IPv4 tunneling driver
[   64.970217] NET: Registered protocol family 17
[   64.970255] Key type dns_resolver registered
[   64.970315] drmem: No dynamic reconfiguration memory found
[   64.970319] Running code patching self-tests ...
[   64.970471] Running feature fixup self-tests ...
[   64.970478] Running MSI bitmap s
elf-tests ...
[   64.970680] registered taskstats version 1
[   64.970931] printk: console [netcon0] enabled
[   64.970937] netconsole: network logging started
[   65.026942] rtc-opal opal-rtc: se
tting system clock to 2018-11-29 05:00:35 UTC (1543467635)

 *** WaitForIt CURRENT STATE "05" TARGET STATE "06"
 *** WaitForIt working on transition
 *** Current loop iteration "23"             - Reconnect attempts "00" - loop_max "100"
 *** WaitForIt timeout interval "05" seconds - Stale buffer check every "12" times

 *** WaitForIt Refresh="0" Buffer Kicker="1" - Kill Cord="150"

[   65.915019] .
[   65.915651] .
[   65.915696] ready
[   65.915755] ready
[   65.916247] sd 0:2:0:0: [sda] 139466752 4096-byte logical blocks: (571 GB/532 GiB)
[   65.916314] sd 0:2:0:0: [sda] Write Protect is off
[   65.916326] sd 0:2:0:0: [sda] Mode Sense: 0b 00 00 08
[   65.917129] sd 1:2:0:0: [sdc] 139466752 4096-byte logical blocks: (571 GB/532 GiB)
[   65.917269] sd 1:2:0:0: [sdc] Write Protect is off
[   65.917276] sd 1:2:0:0: [sdc] Mode Sense: 0b 00 00 08
[   65.995025] .
[   65.995032] .ready
[   65.995387] sd 0:2:1:0: [sdb] 2231484416 512-byte logical blocks: (1.14 TB/1.04 TiB)
[   65.995400] sd 0:2:1:0: [sdb] 4096-byte physical blocks
[   65.995401] ready
[   65.995492] sd 0:2:1:0: [sdb] Write Protect is off
[   65.995503] sd 0:2:1:0: [sdb] Mode Sense: 0b 00 00
 08
[   65.996372] sd 1:2:1:0: [sdd] 2231484416 512-byte logical blocks: (1.14 TB/1.04 TiB)
[   65.996383] sd 1:2:1:0: [sdd] 4096-byte physical blocks
[   65.996449] sd 1:2:1:0: [sdd] Write Protect is off
[   65.996459] sd 1:2:1:0: [sdd] Mode Sense: 0b 00 00 08
[   66.155085] sd 0:2:0:0: [sda] Cache data unavailable
[   66.155101] sd 0:2:0:0: [sda] Assuming drive cache: write through
[   66.155306] sd 1:2:0:0: [sdc] Cache data unavailable
[   66.155320] sd 1:2:0:0: [sdc] Assuming drive cache: write through
[   66.235084] sd 0:2:1:0: [sdb] Cache data unavailable
[   66.235099] sd 0:2:1:0: [sdb] Assuming drive cache: write through
[   66.235350] sd 1:2:1:0: [sdd] Cache data unavailable
[   66.235360] sd 1:2:1:0: [sdd] Assuming drive cache: write through
[   66.386112]  sda: sda1 sda2 sda3 sda4 < sda5 sda6 >
[   66.387966]  sdc: sdc1 sdc2 sdc3 sdc4 < sdc5 sdc6 >
[   66.455435]  sdb: sdb1 sdb2 sdb3
[   66.457072]  sdd: sdd1 sdd2 sdd3
[   66.635114] sd 0:2:0:0: [sda] Attached SCSI disk
[   66.636507] sd 1:2:0:0: [sdc] Attached SCSI disk
[   66.695457] sd 0:2:1:0: [sdb] Attached SCSI disk
[   66.696747] sd 1:2:1:0: [sdd] Attached SCSI disk
[   66.698543] Freeing unused kernel memory: 4096K
[   66.698550] This architecture does not have kernel memory protection.
[   66.698567] Run /init as init process
[   66.698827] Bad kernel stack pointer 6e690000 at c000000000e2ceec
[   66.698837] Oops: Bad kernel stack pointer, sig: 6 [#10]
[   66.698842] LE SMP NR_CPUS=2048 NUMA PowerNV
[   66.698850] Modules linked in:
[   66.698859] CPU: 5 PID: 1 Comm: init Tainted: G      D           4.20.0-rc4-gd35c78239 #1
[   66.698867] NIP:  c000000000e2ceec LR: c00000000000b9e4 CTR: c000000000e2cee0
[   66.698874] REGS: c0000007ffe5fd30 TRAP: 0e40   Tainted: G      D            (4.20.0-rc4-gd35c78239)
[   66.698882] MSR:  9000000000009033 <SF,HV,EE,ME,IR,DR,RI,LE>  CR: 44042448  XER: 20000000
[   66.698894] CFAR: c00000000000b9e0 IRQM
ASK: f000000003ff0000 
[   66.698894] GPR00: 00000000000011e0 000000006e690000 c000000001498900 ffffffffffffff9c 
[   66.698894] GPR04: c00000006ecb0ff8 0000000000080000 0000000000000000 0000000000000000 
[   66.698894] GPR08: 0000000000000000 c000000ffb983e90 0000000000000000 c000000000c30ff8 
[   66.698894] GPR12: c000000000e2cee0 c0000007ffffbd00 0000000000000000 00000001116c6b81 
[   66.6
98894] GPR16: 0000000000000002 00007fffe8d5d878 c000000065b70ff8 00007fffe8d5d520 
[   66.698894] GPR20: 0000000000000000 0000000000000019 00007fffe8d5d2e1 00007fff9c70f2a8 
[   66.698894] GPR24: 00
007fff9c711110 00007fffe8d5d520 00007fffe8d5d878 0000000000000000 
[   66.698894] GPR28: 00007fff9c70f2a8 00007fffe8d5d2d0 0000000000000000 00007fffe8d5d190 
[   66.698963] NIP [c000000000e2ceec] st
r_spec.65753+0x147da0/0x1f1c5c
[   66.698972] LR [c00000000000b9e4] system_call+0x5c/0x70
[   66.698978] Call Trace:
[   66.698981] Instruction dump:
[   66.698987] XXXXXXXX XXXXXXXX XXXXXXXX XXXX
XXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[   66.698995] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX 
[   66.699005] ---[ end trace 37e56b44979b699c ]---
[   66.700530] 
[   67.700653] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000006
[   67.703647] Rebooting in 10 seconds..
Exit with Result errors="1" and failures="0"

----------------------------------------------------------
OpTestSystem Firmware Versions Tested
(if flashed things like skiboot.lid, may not be accurate)
----------------------------------------------------------
Firmware Versions Unavailable
----------------------------------------------------------
----------------------------------------------------------

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

* [PATCH 0/3] System call table generation support
@ 2018-09-14  8:32 Firoz Khan
  2018-11-29  6:34 ` Satheesh Rajendran
  0 siblings, 1 reply; 20+ messages in thread
From: Firoz Khan @ 2018-09-14  8:32 UTC (permalink / raw)
  To: Arnd Bergmann, linuxppc-dev, Benjamin Herrenschmidt,
	Paul Mackerras, Michael Ellerman, Ram Pai, Breno Leitao,
	Boqun Feng, Greg Kroah-Hartman, Philippe Ombredanne,
	Thomas Gleixner, Kate Stewart
  Cc: y2038, linux-kernel, linux-arch, deepa.kernel,
	marcin.juszkiewicz, firoz.khan

The purpose of this patch series is:
1. We can easily add/modify/delete system call by changing entry 
in syscall.tbl file. No need to manually edit many files.

2. It is easy to unify the system call implementation across all 
the architectures. 

The system call tables are in different format in all architecture 
and it will be difficult to manually add or modify the system calls
in the respective files manually. To make it easy by keeping a script 
and which'll generate the header file and syscall table file so this 
change will unify them across all architectures.

syscall.tbl contains the list of available system calls along with 
system call number and corresponding entry point. Add a new system 
call in this architecture will be possible by adding new entry in 
the syscall.tbl file.

Adding a new table entry consisting of:
        - System call number.
        - ABI.
        - System call name.
        - Entry point name.
        - Compat entry name, if required.

ARM, s390 and x86 architecuture does exist the similar support. I 
leverage their implementation to come up with a generic solution.

I have done the same support for work for alpha, m68k, microblaze, 
ia64, mips, parisc, sh, sparc, and xtensa. But I started sending 
the patch for one architecuture for review. Below mentioned git
repository contains more details.
Git repo:- https://github.com/frzkhn/system_call_table_generator/

Finally, this is the ground work for solving the Y2038 issue. We 
need to add/change two dozen of system calls to solve Y2038 issue. 
So this patch series will help to easily modify from existing 
system call to Y2038 compatible system calls.

I started working system call table generation on 4.17-rc1. I used 
marcin's script - https://github.com/hrw/syscalls-table to generate 
the syscall.tbl file. And this will be the input to the system call 
table generation script. But there are couple system call got add 
in the latest rc release. If run Marcin's script on latest release,
It will generate a new syscall.tbl. But I still use the old file - 
syscall.tbl and once all review got over I'll update syscall.tbl 
alone w.r.to the tip of the kernel. The impact of this thing, few 
of the system call won't work. 

Firoz Khan (3):
  powerpc: Replace NR_syscalls macro from asm/unistd.h
  powerpc: Add system call table generation support
  powerpc: uapi header and system call table file generation

 arch/powerpc/Makefile                       |   3 +
 arch/powerpc/include/asm/Kbuild             |   3 +
 arch/powerpc/include/asm/unistd.h           |   3 +-
 arch/powerpc/include/uapi/asm/Kbuild        |   2 +
 arch/powerpc/include/uapi/asm/unistd.h      | 391 +---------------------------
 arch/powerpc/kernel/Makefile                |   3 +-
 arch/powerpc/kernel/syscall_table_32.S      |   9 +
 arch/powerpc/kernel/syscall_table_64.S      |  17 ++
 arch/powerpc/kernel/syscalls/Makefile       |  51 ++++
 arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 +++++++++++++++++++++++++++
 arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 ++++++++++++++++++++++++++
 arch/powerpc/kernel/syscalls/syscallhdr.sh  |  37 +++
 arch/powerpc/kernel/syscalls/syscalltbl.sh  |  38 +++
 arch/powerpc/kernel/systbl.S                |  50 ----
 14 files changed, 916 insertions(+), 441 deletions(-)
 create mode 100644 arch/powerpc/kernel/syscall_table_32.S
 create mode 100644 arch/powerpc/kernel/syscall_table_64.S
 create mode 100644 arch/powerpc/kernel/syscalls/Makefile
 create mode 100644 arch/powerpc/kernel/syscalls/syscall_32.tbl
 create mode 100644 arch/powerpc/kernel/syscalls/syscall_64.tbl
 create mode 100644 arch/powerpc/kernel/syscalls/syscallhdr.sh
 create mode 100644 arch/powerpc/kernel/syscalls/syscalltbl.sh
 delete mode 100644 arch/powerpc/kernel/systbl.S

-- 
1.9.1


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

* [PATCH 0/3] System call table generation support
@ 2018-08-09  5:36 Firoz Khan
  0 siblings, 0 replies; 20+ messages in thread
From: Firoz Khan @ 2018-08-09  5:36 UTC (permalink / raw)
  To: linux-sh, Yoshinori Sato, Rich Felker, Steven Rostedt,
	Ingo Molnar, Greg Kroah-Hartman, Philippe Ombredanne,
	Thomas Gleixner, Kate Stewart
  Cc: y2038, linux-kernel, linux-arch, arnd, deepa.kernel,
	marcin.juszkiewicz, firoz.khan

The purpose of this patch series is:
1. We can easily add/modify/delete system call by changing entry 
in syscall.tbl file. No need to manually edit many files.

2. It is easy to unify the system call implementation across all 
the architectures. 

The system call tables are in different format in all architecture 
and it will be difficult to manually add or modify the system calls
manually in the respective files. To make it easy by keeping a script 
and which'll generate the header file and syscall table file so this 
change will unify the implementation across all architectures.

syscall.tbl contains the list of available system calls along with 
system call number and corresponding entry point. Add a new system 
call in this architecture will be possible by adding new entry in 
the syscall.tbl file.

Adding a new table entry consisting of:
        - System call number.
        - ABI.
        - System call name.
        - Entry point name.

Important thing to note, I have added this support only for 32-bit
ABI. It seems like no one using 64-bit ABI for long time. But it is
very easy to add the support for64-bit. Please let me know if any-
one need this support:)

ARM, s390 and x86 architecuture does exist the similar support. I 
leverage their implementation to come up with a generic solution.

I have done the same support for work for alpha, m68k, microblaze, 
ia64, mips, parisc, powerpc, sparc, and xtensa. But I started sending 
the patch for one architecuture for review. Below mentioned git
repository contains more details.
Git repo:- https://github.com/frzkhn/system_call_table_generator/

Finally, this is the ground work for solving the Y2038 issue. We 
need to add/change two dozen of system calls to solve Y2038 issue. 
So this patch series will help to easily modify from existing 
system call to Y2038 compatible system calls.

I started working system call table generation on 4.17-rc1. I used 
marcin's script - https://github.com/hrw/syscalls-table to generate 
the syscall.tbl file. And this will be the input to the system call 
table generation script. But there are couple system call got add 
in the latest rc release. If run Marcin's script on latest release,
it will generate a different syscall.tbl. But I still use the old 
file - syscall.tbl and once all review got over I'll update 
syscall.tbl alone w.r.to the tip of the kernel. The impact of this
is, few of the system call won't work.

Firoz Khan (3):
  sh: Rename NR_syscalls macro to __NR_syscalls
  sh: Added system call table generation support
  sh: uapi header and system call table file generation

 arch/sh/Makefile                      |   3 +
 arch/sh/include/asm/Kbuild            |   2 +
 arch/sh/include/asm/ftrace.h          |   2 +-
 arch/sh/include/uapi/asm/Kbuild       |   2 +
 arch/sh/include/uapi/asm/unistd_32.h  |   2 +-
 arch/sh/include/uapi/asm/unistd_64.h  |   2 +-
 arch/sh/kernel/Makefile               |   2 +-
 arch/sh/kernel/cpu/sh5/entry.S        |   2 +-
 arch/sh/kernel/entry-common.S         |   2 +-
 arch/sh/kernel/syscall.S              |   9 +
 arch/sh/kernel/syscalls/Makefile      |  37 ++++
 arch/sh/kernel/syscalls/syscall.tbl   | 388 ++++++++++++++++++++++++++++++++
 arch/sh/kernel/syscalls/syscallhdr.sh |  33 +++
 arch/sh/kernel/syscalls/syscalltbl.sh |  28 +++
 arch/sh/kernel/syscalls_32.S          | 402 ----------------------------------
 15 files changed, 508 insertions(+), 408 deletions(-)
 create mode 100644 arch/sh/kernel/syscall.S
 create mode 100644 arch/sh/kernel/syscalls/Makefile
 create mode 100644 arch/sh/kernel/syscalls/syscall.tbl
 create mode 100644 arch/sh/kernel/syscalls/syscallhdr.sh
 create mode 100644 arch/sh/kernel/syscalls/syscalltbl.sh
 delete mode 100644 arch/sh/kernel/syscalls_32.S

-- 
1.9.1


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

* [PATCH 0/3] System call table generation support
@ 2018-08-09  5:27 Firoz Khan
  0 siblings, 0 replies; 20+ messages in thread
From: Firoz Khan @ 2018-08-09  5:27 UTC (permalink / raw)
  To: Michal Simek, Greg Kroah-Hartman, Philippe Ombredanne,
	Thomas Gleixner, Kate Stewart
  Cc: y2038, linux-kernel, linux-arch, arnd, deepa.kernel,
	marcin.juszkiewicz, firoz.khan

The purpose of this patch series is:
1. We can easily add/modify/delete system call by changing entry 
in syscall.tbl file. No need to manually edit many files.

2. It is easy to unify the system call implementation across all 
the architectures. 

The system call tables are in different format in all architecture 
and it will be difficult to manually add or modify the system calls
manually in the respective files. To make it easy by keeping a script 
and which'll generate the header file and syscall table file so this 
change will unify the implementation across all architectures.

syscall.tbl contains the list of available system calls along with 
system call number and corresponding entry point. Add a new system 
call in this architecture will be possible by adding new entry in 
the syscall.tbl file.

Adding a new table entry consisting of:
        - System call number.
        - ABI.
        - System call name.
        - Entry point name.

ARM, s390 and x86 architecuture does exist the similar support. I 
leverage their implementation to come up with a generic solution.

I have done the same support for work for alpha, ia64,m68k, mips,
parisc, powerpc, sh, sparc, and xtensa. But I started sending 
the patch for one architecuture for review. Below mentioned git
repository contains more details.
Git repo:- https://github.com/frzkhn/system_call_table_generator/

Finally, this is the ground work for solving the Y2038 issue. We 
need to add/change two dozen of system calls to solve Y2038 issue. 
So this patch series will help to easily modify from existing 
system call to Y2038 compatible system calls.

I started working system call table generation on 4.17-rc1. I used 
marcin's script - https://github.com/hrw/syscalls-table to generate 
the syscall.tbl file. And this will be the input to the system call 
table generation script. But there are couple system call got add 
in the latest rc release. If run Marcin's script on latest release,
it will generate a different syscall.tbl. But I still use the old 
file - syscall.tbl and once all review got over I'll update 
syscall.tbl alone w.r.to the tip of the kernel. The impact of this
is, few of the system call won't work.

Firoz Khan (3):
  microblaze: Replace NR_syscalls macro from asm/unistd.h
  microblaze: Added system call table generation support
  microblaze: uapi header and system call table file generation

 arch/microblaze/Makefile                      |   3 +
 arch/microblaze/include/asm/Kbuild            |   2 +
 arch/microblaze/include/asm/unistd.h          |   2 -
 arch/microblaze/include/uapi/asm/Kbuild       |   2 +
 arch/microblaze/include/uapi/asm/unistd.h     | 407 +-------------------------
 arch/microblaze/kernel/syscall_table.S        | 406 +------------------------
 arch/microblaze/kernel/syscalls/Makefile      |  37 +++
 arch/microblaze/kernel/syscalls/syscall.tbl   | 404 +++++++++++++++++++++++++
 arch/microblaze/kernel/syscalls/syscallhdr.sh |  33 +++
 arch/microblaze/kernel/syscalls/syscalltbl.sh |  28 ++
 10 files changed, 514 insertions(+), 810 deletions(-)
 create mode 100644 arch/microblaze/kernel/syscalls/Makefile
 create mode 100644 arch/microblaze/kernel/syscalls/syscall.tbl
 create mode 100644 arch/microblaze/kernel/syscalls/syscallhdr.sh
 create mode 100644 arch/microblaze/kernel/syscalls/syscalltbl.sh

-- 
1.9.1


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

end of thread, other threads:[~2018-11-30  9:41 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-14  8:38 [PATCH 0/3] System call table generation support Firoz Khan
2018-09-14  8:38 ` [PATCH 1/3] mips: Add __NR_syscalls macro in uapi/asm/unistd.h Firoz Khan
2018-09-14  8:38 ` [PATCH 2/3] mips: Add system call table generation support Firoz Khan
2018-09-14  9:58   ` Arnd Bergmann
2018-09-18 11:57     ` Firoz Khan
2018-09-14  8:38 ` [PATCH 3/3] mips: uapi header and system call table file generation Firoz Khan
2018-09-14 12:55   ` kbuild test robot
2018-09-17 17:17 ` [PATCH 0/3] System call table generation support Paul Burton
2018-09-18 14:13   ` Firoz Khan
2018-09-20 14:52   ` Arnd Bergmann
2018-09-20 20:48     ` Paul Burton
2018-09-21  6:09       ` Christoph Hellwig
2018-09-21 19:32         ` Paul Burton
  -- strict thread matches above, loose matches on Subject: below --
2018-09-14  8:32 Firoz Khan
2018-11-29  6:34 ` Satheesh Rajendran
2018-11-29  8:18   ` Firoz Khan
2018-11-30  7:01     ` Satheesh Rajendran
2018-11-30  9:40       ` Firoz Khan
2018-08-09  5:36 Firoz Khan
2018-08-09  5:27 Firoz Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).