Re: [PATCH v3 00/16] powerpc/32: Use BATs/LTLBs for STRICT_KERNEL_RWX

From: Christophe Leroy
Date: Thu Feb 21 2019 - 02:42:25 EST




Le 21/02/2019 Ã 07:31, Christophe Leroy a ÃcritÂ:


Le 21/02/2019 Ã 02:47, Michael Ellerman a ÃcritÂ:
Christophe Leroy <christophe.leroy@xxxxxx> writes:

The purpose of this serie is to:
- use BATs with STRICT_KERNEL_RWX on book3s (See patch 13 for details.)
- use LTLBs with STRICT_KERNEL_RWX on 8xx (See patch 15 for a few details.)

This doesn't boot qemu-mac99 for me:

ÂÂ spawn ~/src/qemu/ppc-softmmu/qemu-system-ppc -nographic -vga none -M mac99 -m 1G -kernel build/vmlinux -initrd ppc32-initrd.gz -append console=ttyPZ0 init=/bin/sh
ÂÂ >> =============================================================
ÂÂ >> OpenBIOS 1.1 [Feb 15 2019 10:05]
ÂÂ >> Configuration device id QEMU version 1 machine id 1
ÂÂ >> CPUs: 1
ÂÂ >> Memory: 1024M
ÂÂ >> UUID: 00000000-0000-0000-0000-000000000000
ÂÂ >> CPU type PowerPC,G4
ÂÂ milliseconds isn't unique.
ÂÂ Welcome to OpenBIOS v1.1 built on Feb 15 2019 10:05
ÂÂ >> [ppc] Kernel already loaded (0x01000000 + 0x00c2c338) (initrd 0x01d2d000 + 0x007e72f0)
ÂÂ >> [ppc] Kernel command line: console=ttyPZ0 init=/bin/sh
ÂÂ >> switching to new context:
ÂÂ OF stdout device is: /pci@f2000000/mac-io@c/escc@13000/ch-a@13020
ÂÂ Preparing to boot Linux version 5.0.0-rc2-gcc-8.2.0-00125-g4fcb83ca7936 (michael@ka4) (gcc version 8.2.0 (Buildroot 2018.11-rc2-00003-ga0787e9)) #724 Thu Feb 21 12:03:14 AEDT 2019
ÂÂ Detected machine type: 00000400
ÂÂ command line:
ÂÂ memory layout at init:
ÂÂÂÂ memory_limit : 00000000 (16 MB aligned)
ÂÂÂÂ alloc_bottom : 02515000
ÂÂÂÂ alloc_topÂÂÂ : 30000000
ÂÂÂÂ alloc_top_hi : 40000000
ÂÂÂÂ rmo_topÂÂÂÂÂ : 30000000
ÂÂÂÂ ram_topÂÂÂÂÂ : 40000000
ÂÂ copying OF device tree...
ÂÂ Building dt strings...
ÂÂ Building dt structure...
ÂÂ Device tree strings 0x02516000 -> 0x025150a4
 Device tree struct 0x02517000 -> 0x3fde7eb0
ÂÂ Quiescing Open Firmware ...
ÂÂ Booting Linux via __start() @ 0x01000000 ...
ÂÂ FAIL! Booting BE pmac32


That's pmac32 defconfig ish.
I haven't had time to debug it further sorry.


Ok. I boots fine without the '-m 1G'.

I'll find out why.


Doesn't boot because it maps memory above total_lowmem.

I'll fix it.

Christophe