Page 3 of 12

Re: Kernel 4.20/5.0

Posted: Sun Oct 28, 2018 12:19 pm
by xeno74
FYI: I got the following error message with the Git kernel (alpha4) from today. (11:12 AM GMT)

Code: Select all

  CC      arch/powerpc/kvm/powerpc.o
In file included from arch/powerpc/kvm/powerpc.c:51:0:
arch/powerpc/kvm/trace.h:9:0: error: "TRACE_INCLUDE_PATH" redefined [-Werror]
 #define TRACE_INCLUDE_PATH .
 ^
In file included from arch/powerpc/kvm/../mm/mmu_decl.h:25:0,
                 from arch/powerpc/kvm/powerpc.c:48:
./arch/powerpc/include/asm/trace.h:224:0: note: this is the location of the previous definition
 #define TRACE_INCLUDE_PATH asm
 ^
cc1: all warnings being treated as errors
scripts/Makefile.build:305: die Regel für Ziel „arch/powerpc/kvm/powerpc.o“ scheiterte
make[2]: *** [arch/powerpc/kvm/powerpc.o] Fehler 1
scripts/Makefile.build:546: die Regel für Ziel „arch/powerpc/kvm“ scheiterte
make[1]: *** [arch/powerpc/kvm] Fehler 2
Makefile:1052: die Regel für Ziel „arch/powerpc“ scheiterte
make: *** [arch/powerpc] Fehler 2
christian@christian-virtual-machine:~/Downloads/a$ env LANG=C make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc uImage
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CALL    arch/powerpc/kernel/systbl_chk.sh
  CC      arch/powerpc/kvm/powerpc.o
In file included from arch/powerpc/kvm/powerpc.c:51:0:
arch/powerpc/kvm/trace.h:9:0: error: "TRACE_INCLUDE_PATH" redefined [-Werror]
 #define TRACE_INCLUDE_PATH .
 ^
In file included from arch/powerpc/kvm/../mm/mmu_decl.h:25:0,
                 from arch/powerpc/kvm/powerpc.c:48:
./arch/powerpc/include/asm/trace.h:224:0: note: this is the location of the previous definition
 #define TRACE_INCLUDE_PATH asm
 ^
cc1: all warnings being treated as errors
scripts/Makefile.build:305: recipe for target 'arch/powerpc/kvm/powerpc.o' failed
make[2]: *** [arch/powerpc/kvm/powerpc.o] Error 1
scripts/Makefile.build:546: recipe for target 'arch/powerpc/kvm' failed
make[1]: *** [arch/powerpc/kvm] Error 2
Makefile:1052: recipe for target 'arch/powerpc' failed
make: *** [arch/powerpc] Error 2
I deleted the definition of TRACE_INCLUDE_PATH in arch/powerpc/kvm/trace.h. After that the kernel compiled without any problems.

Re: Kernel 4.20/5.0

Posted: Sun Oct 28, 2018 3:43 pm
by xeno74
SMP doesn't work anymore on the X5000 and on virtual e5500 QEMU machines.

X5000:

Code: Select all

[    0.000000] -----------------------------------------------------
[    0.000000] phys_mem_size     = 0x200000000
[    0.000000] dcache_bsize      = 0x40
[    0.000000] icache_bsize      = 0x40
[    0.000000] cpu_features      = 0x00000003008003b4
[    0.000000]   possible        = 0x00000003009003b4
[    0.000000]   always          = 0x00000003008003b4
[    0.000000] cpu_user_features = 0xcc008000 0x08000000
[    0.000000] mmu_features      = 0x000a0010
[    0.000000] firmware_features = 0x0000000000000000
[    0.000000] -----------------------------------------------------
[    0.000000] CoreNet Generic board

...

[    0.002161] smp: Bringing up secondary CPUs ...
[    0.002339] No cpu-release-addr for cpu 1
[    0.002347] smp: failed starting cpu 1 (rc -2)
[    0.002401] smp: Brought up 1 node, 1 CPU
Virtual e5500 quad core QEMU machine:

Code: Select all

[    0.026394] smp: Bringing up secondary CPUs ...
[    0.027831] No cpu-release-addr for cpu 1
[    0.027989] smp: failed starting cpu 1 (rc -2)
[    0.030143] No cpu-release-addr for cpu 2
[    0.030304] smp: failed starting cpu 2 (rc -2)
[    0.032400] No cpu-release-addr for cpu 3
[    0.032533] smp: failed starting cpu 3 (rc -2)
[    0.033117] smp: Brought up 1 node, 1 CPU
QEMU command:

Code: Select all

./qemu-system-ppc64 -M ppce500 -cpu e5500 -m 2048 -kernel /home/christian/Downloads/vmlinux-4.20-alpha4-AmigaOne_X1000_X5000/X5000_and_QEMU_e5500/uImage-4.20 -drive format=raw,file=/home/christian/Downloads/MATE_PowerPC_Remix_2017_0.9.img,index=0,if=virtio -nic user,model=e1000 -append "rw root=/dev/vda" -device virtio-vga -device virtio-mouse-pci -device virtio-keyboard-pci -usb -soundhw es1370 -smp 4

Re: Kernel 4.20/5.0

Posted: Sun Oct 28, 2018 4:39 pm
by xeno74
I was able to revert the PowerPC updates 4.20-1 with the command git revert 685f7e4f161425b137056abe35ba8ef7b669d83d -m 1.

Output:

Code: Select all

[master ff3c65e] Revert "Merge tag 'powerpc-4.20-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux"
 253 files changed, 3796 insertions(+), 6701 deletions(-)
 delete mode 100644 arch/powerpc/Kbuild
 delete mode 100644 arch/powerpc/include/asm/error-injection.h
 create mode 100644 arch/powerpc/include/asm/pte-common.h
 delete mode 100644 arch/powerpc/include/asm/stackprotector.h
 delete mode 100644 arch/powerpc/lib/error-inject.c
 delete mode 100644 arch/powerpc/mm/dump_linuxpagetables-8xx.c
 delete mode 100644 arch/powerpc/mm/dump_linuxpagetables-book3s64.c
 delete mode 100644 arch/powerpc/mm/dump_linuxpagetables-generic.c
 delete mode 100644 arch/powerpc/mm/dump_linuxpagetables.h
 rewrite arch/powerpc/mm/slb.c (67%)
 create mode 100644 arch/powerpc/mm/slb_low.S
 delete mode 100644 arch/powerpc/platforms/pseries/papr_scm.c
 delete mode 100644 arch/powerpc/platforms/pseries/pmem.c
 delete mode 100644 tools/testing/selftests/powerpc/mm/wild_bctr.c
 delete mode 100644 tools/testing/selftests/powerpc/ptrace/ptrace-syscall.c
 delete mode 100644 tools/testing/selftests/powerpc/security/Makefile
 delete mode 100644 tools/testing/selftests/powerpc/security/rfi_flush.c
 rewrite tools/testing/selftests/powerpc/utils.c (62%)
Just for info: .config

Code: Select all

...
CONFIG_SMP=y
CONFIG_NR_CPUS=4
...
Unfortunately the revert of the PowerPC commit doesn't solve the problem with SMP.

Re: Kernel 4.20/5.0

Posted: Sun Oct 28, 2018 5:45 pm
by xeno74

Re: Kernel 4.20/5.0

Posted: Sun Oct 28, 2018 8:08 pm
by xeno74

Re: Kernel 4.20/5.0

Posted: Mon Oct 29, 2018 8:59 am
by xeno74
xeno74 wrote:Maybe this is the SMP problem: powerpc: Fix stack protector crashes on CPU hotplug
I was able to revert this commit with the command git revert b6aeddea74b08518289fc86545297cf18a0b53a7 today.

Code: Select all

[master 838cb82] Revert "powerpc: Fix stack protector crashes on CPU hotplug"
 1 file changed, 7 insertions(+), 3 deletions(-)
Unfortunately this isn't the problematic commit.

Re: Kernel 4.20/5.0

Posted: Mon Oct 29, 2018 9:30 am
by xeno74
Maybe this is the bad commit: Merge tag devicetree-for-4.20.

I was able to revert this commit with git revert b27186abb37b7bd19e0ca434f4f425c807dbd708 -m 1

Code: Select all

[master ec81438] Revert "Merge tag 'devicetree-for-4.20' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux"
 138 files changed, 931 insertions(+), 1538 deletions(-)
 rename Documentation/devicetree/bindings/arm/{atmel-sysregs.txt => atmel-at91.txt} (67%)
 delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-dcfg.txt
 delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.txt
 rename Documentation/devicetree/bindings/arm/{zte,sysctrl.txt => zte.txt} (62%)
 delete mode 100644 Documentation/devicetree/bindings/misc/lwn-bk4.txt
 create mode 100644 arch/c6x/boot/dts/linked_dtb.S
 delete mode 100644 arch/nios2/boot/dts/Makefile
 create mode 100644 arch/nios2/boot/linked_dtb.S
 delete mode 100644 arch/powerpc/boot/dts/Makefile
 delete mode 100644 arch/powerpc/boot/dts/fsl/Makefile
 delete mode 100644 scripts/dtc/yamltree.c
It solves the SMP problem! :-) SMP works again! :-)

Re: Kernel 4.20/5.0

Posted: Mon Oct 29, 2018 10:24 am
by xeno74
Hi All,

I released the alpha5 without the bad commit: Merge tag devicetree-for-4.20 today. SMP works again! :-)

Download: uImage-4.20-alpha5

Screenshot of kernel 4.20-alpha5 on a virtual e5500 quad:

Image

Please test it on your X5000.

Thanks,
Christian

Re: Kernel 4.20/5.0

Posted: Mon Oct 29, 2018 11:14 am
by xeno74
I reported this result on the Linuxppc-dev mailing list today.

Link: NXP P50XX/e5500: SMP doesn't work anymore with the latest Git kernel

-- Christian

Re: Kernel 4.20/5.0

Posted: Mon Oct 29, 2018 11:29 am
by xeno74
xeno74 wrote:FYI: I got the following error message with the Git kernel (alpha4) from today. (11:12 AM GMT)

Code: Select all

  CC      arch/powerpc/kvm/powerpc.o
In file included from arch/powerpc/kvm/powerpc.c:51:0:
arch/powerpc/kvm/trace.h:9:0: error: "TRACE_INCLUDE_PATH" redefined [-Werror]
 #define TRACE_INCLUDE_PATH .
 ^
In file included from arch/powerpc/kvm/../mm/mmu_decl.h:25:0,
                 from arch/powerpc/kvm/powerpc.c:48:
./arch/powerpc/include/asm/trace.h:224:0: note: this is the location of the previous definition
 #define TRACE_INCLUDE_PATH asm
 ^
cc1: all warnings being treated as errors
scripts/Makefile.build:305: die Regel für Ziel „arch/powerpc/kvm/powerpc.o“ scheiterte
make[2]: *** [arch/powerpc/kvm/powerpc.o] Fehler 1
scripts/Makefile.build:546: die Regel für Ziel „arch/powerpc/kvm“ scheiterte
make[1]: *** [arch/powerpc/kvm] Fehler 2
Makefile:1052: die Regel für Ziel „arch/powerpc“ scheiterte
make: *** [arch/powerpc] Fehler 2
christian@christian-virtual-machine:~/Downloads/a$ env LANG=C make CROSS_COMPILE=powerpc-linux-gnu- ARCH=powerpc uImage
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CALL    arch/powerpc/kernel/systbl_chk.sh
  CC      arch/powerpc/kvm/powerpc.o
In file included from arch/powerpc/kvm/powerpc.c:51:0:
arch/powerpc/kvm/trace.h:9:0: error: "TRACE_INCLUDE_PATH" redefined [-Werror]
 #define TRACE_INCLUDE_PATH .
 ^
In file included from arch/powerpc/kvm/../mm/mmu_decl.h:25:0,
                 from arch/powerpc/kvm/powerpc.c:48:
./arch/powerpc/include/asm/trace.h:224:0: note: this is the location of the previous definition
 #define TRACE_INCLUDE_PATH asm
 ^
cc1: all warnings being treated as errors
scripts/Makefile.build:305: recipe for target 'arch/powerpc/kvm/powerpc.o' failed
make[2]: *** [arch/powerpc/kvm/powerpc.o] Error 1
scripts/Makefile.build:546: recipe for target 'arch/powerpc/kvm' failed
make[1]: *** [arch/powerpc/kvm] Error 2
Makefile:1052: recipe for target 'arch/powerpc' failed
make: *** [arch/powerpc] Error 2
I deleted the definition of TRACE_INCLUDE_PATH in arch/powerpc/kvm/trace.h. After that the kernel compiled without any problems.
I reported this issue on the Linuxppc-dev mailing list today. Link: arch/powerpc/kvm/trace.h:9:0: error: "TRACE_INCLUDE_PATH" redefined