Skip to content

PPC64 Linux bringup patches v4

Alexander Graf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11PPC64: Implement slbmtetarget-ppc/cpu.h target-ppc/helper.c target-ppc/op_helper.c +1 more+74 -200 replies
2/11PPC64: Implement large pagestarget-ppc/cpu.h target-ppc/helper.c+49 -300 replies
3/11PPC64: Implment tlbieltarget-ppc/translate.c+14 -00 replies
4/11Activate uninorth AGP bridgehw/unin_pci.c+8 -190 replies
5/11PPC64: Nop some SPRs on 970fxtarget-ppc/translate_init.c+12 -00 replies
6/11PPC64: Enable 64bit mode on interruptstarget-ppc/helper.c+5 -10 replies
7/11PPC64: Implement mtfsf.L encodingtarget-ppc/translate.c+6 -20 replies
8/11PPC64: Fix RFI(d)target-ppc/op_helper.c+3 -30 replies
9/11PPC64: Fix NX bittarget-ppc/helper.c+1 -10 replies
10/11PPC64: Keep SLB in-CPUtarget-ppc/cpu.h target-ppc/helper.c target-ppc/translate_init.c+77 -640 replies
11/11PPC64: Disable BAT for 970target-ppc/helper.c+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/11] PPC64 Linux bringup patches v4

After spending even more time trying to get qemu-system-ppc64 to run Linux, I get up to userspace now :-).

I am aware that this patchset is not 100% accurate and perfect for emulation, but I think that it can't get worse than it is now.

This patchset enhances MMU support to work with large pages, implement tlbiel, and fixes random issues I ran into while getting closer to the kernel running userspace code :).

Keep in mind that this also requires an OpenBIOS update, as the current code is not aware that it gets run in 64 bit mode.

For now booting into userspace from an initrd works fine. I didn't try to get IDE working, but it looks like that's broken. Also console=ttyPZ0 doesn't work for me, because the pmz doesn't initialize properly (probably an OpenBIOS issue).

So as long as you use graphical mode and run code from an initrd, you're fine.

I also removed the lwsync patch from this patchset, as it only fixed symptoms and no causes. It would be great if anyone would step up to find out how to fix that, as it's not a ppc-only problem.

v4 fixes:

- guarded is NX after all
- remove SLB bridge writing
- make ppc32 build again

Alexander Graf (11):
PPC64: Implement slbmte
PPC64: Implement large pages
PPC64: Implment tlbiel
Activate uninorth AGP bridge
PPC64: Nop some SPRs on 970fx
PPC64: Enable 64bit mode on interrupts
PPC64: Implement mtfsf.L encoding
PPC64: Fix RFI(d)
PPC64: Fix NX bit
PPC64: Keep SLB in-CPU
PPC64: Disable BAT for 970

 hw/unin_pci.c               |   27 ++---
 target-ppc/cpu.h            |   11 ++-
 target-ppc/helper.c         |  274 ++++++++++++++++++++++++++-----------------
 target-ppc/op_helper.c      |   14 ++-
 target-ppc/translate.c      |   45 ++++++-
 target-ppc/translate_init.c |   14 ++-
 6 files changed, 247 insertions(+), 138 deletions(-)