[PATCH 0/2] spapr: Fix support of POWER5+ processors

Cédric Le Goater posted 2 patches 2 years, 2 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220105095142.3990430-1-clg@kaod.org
Maintainers: Greg Kurz <groug@kaod.org>, "Cédric Le Goater" <clg@kaod.org>, Daniel Henrique Barboza <danielhb413@gmail.com>, David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c        | 10 ++++++----
target/ppc/cpu_init.c |  1 +
2 files changed, 7 insertions(+), 4 deletions(-)
[PATCH 0/2] spapr: Fix support of POWER5+ processors
Posted by Cédric Le Goater 2 years, 2 months ago
Hello,

Grab the images under : 

  https://github.com/legoater/qemu-ppc-boot/tree/main/buildroot/qemu_ppc64_pseries_p5p-2021.11-730-g4f325ce788-20220104

and run with :

  qemu-system-ppc64 -M pseries -cpu POWER5+ -m 1G -smp 2 -kernel ./vmlinux -append "root=/dev/sda" -drive file=./rootfs.ext2,if=scsi,index=0,format=raw  -device spapr-vlan,netdev=net0 -netdev user,id=net0 -serial mon:stdio -nographic -nodefaults

CPU 970, 970MP are also well supported. 

Virtio devices and USB should be avoided because SLOF would use a
'stdbrx' instruction (cpu_to_le64 helper) which is invalid under
POWER5+ and 970 CPUs. SLOF needs to be compiled with -mcpu=power5 to
fix this issue.

Thanks,

C. 

Cédric Le Goater (2):
  target/ppc: Add popcntb instruction to POWER5+ processors
  spapr: Fix support of POWER5+ processors

 hw/ppc/spapr.c        | 10 ++++++----
 target/ppc/cpu_init.c |  1 +
 2 files changed, 7 insertions(+), 4 deletions(-)

-- 
2.31.1


Re: [PATCH 0/2] spapr: Fix support of POWER5+ processors
Posted by Cédric Le Goater 2 years, 2 months ago
On 1/5/22 10:51, Cédric Le Goater wrote:
> Hello,
> 
> Grab the images under :
> 
>    https://github.com/legoater/qemu-ppc-boot/tree/main/buildroot/qemu_ppc64_pseries_p5p-2021.11-730-g4f325ce788-20220104
> 
> and run with :
> 
>    qemu-system-ppc64 -M pseries -cpu POWER5+ -m 1G -smp 2 -kernel ./vmlinux -append "root=/dev/sda" -drive file=./rootfs.ext2,if=scsi,index=0,format=raw  -device spapr-vlan,netdev=net0 -netdev user,id=net0 -serial mon:stdio -nographic -nodefaults
> 
> CPU 970, 970MP are also well supported.
> 
> Virtio devices and USB should be avoided because SLOF would use a
> 'stdbrx' instruction (cpu_to_le64 helper) which is invalid under
> POWER5+ and 970 CPUs. SLOF needs to be compiled with -mcpu=power5 to
> fix this issue.
> 
> Thanks,
> 
> C.
> 
> Cédric Le Goater (2):
>    target/ppc: Add popcntb instruction to POWER5+ processors
>    spapr: Fix support of POWER5+ processors
> 
>   hw/ppc/spapr.c        | 10 ++++++----
>   target/ppc/cpu_init.c |  1 +
>   2 files changed, 7 insertions(+), 4 deletions(-)
> 



Applied to ppc7.0.

Thanks,

C.