[PATCH v10 0/7] Pegasos2 emulation

BALATON Zoltan posted 7 patches 4 years, 8 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1615943871.git.balaton@eik.bme.hu
Maintainers: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, "Michael S. Tsirkin" <mst@redhat.com>, Jiaxun Yang <jiaxun.yang@flygoat.com>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Huacai Chen <chenhuacai@kernel.org>
There is a newer version of this series
MAINTAINERS                             |  10 +
default-configs/devices/ppc-softmmu.mak |   2 +
hw/isa/Kconfig                          |   1 +
hw/isa/vt82c686.c                       | 422 +++++++++--
hw/pci-host/Kconfig                     |   4 +
hw/pci-host/meson.build                 |   2 +
hw/pci-host/mv64361.c                   | 966 ++++++++++++++++++++++++
hw/pci-host/mv643xx.h                   | 918 ++++++++++++++++++++++
hw/pci-host/trace-events                |   6 +
hw/ppc/Kconfig                          |   9 +
hw/ppc/meson.build                      |   2 +
hw/ppc/pegasos2.c                       | 144 ++++
include/hw/isa/vt82c686.h               |   2 +-
include/hw/pci-host/mv64361.h           |   8 +
include/hw/pci/pci_ids.h                |   4 +-
15 files changed, 2418 insertions(+), 82 deletions(-)
create mode 100644 hw/pci-host/mv64361.c
create mode 100644 hw/pci-host/mv643xx.h
create mode 100644 hw/ppc/pegasos2.c
create mode 100644 include/hw/pci-host/mv64361.h
[PATCH v10 0/7] Pegasos2 emulation
Posted by BALATON Zoltan 4 years, 8 months ago
Hello,

This is adding a new PPC board called pegasos2. More info on it can be
found at:

https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2

Currently it needs a firmware ROM image that I cannot include due to
original copyright holder (bPlan) did not release it under a free
licence but I have plans to write a replacement in the future. With
the original board firmware it can boot MorphOS now as:

qemu-system-ppc -M pegasos2 -cdrom morphos.iso -device ati-vga,romfile="" -serial stdio

then enter "boot cd boot.img" at the firmware "ok" prompt as described
in the MorphOS.readme. To boot Linux use same command line with e.g.
-cdrom debian-8.11.0-powerpc-netinst.iso then enter
"boot cd install/pegasos"

The last patch adds the actual board code after previous patches
adding VT8231 and MV64361 system controller chip emulation.

Regards,
BALATON Zoltan

v10: Updated comments and added R-b from Mark

v9: Rebased to master

v8: Do not emulate setting of serial port address via register, just
    hard code a default address instead

v7: Fix errp usage in patch 2

v6: Rebased on master, updated commit message about migration change

v5: Changes for review comments from David and Philippe

V4: Rename pegasos2_reset to pegasos2_cpu_reset
    Add new files to MAINTAINERS

BALATON Zoltan (6):
  vt82c686: QOM-ify superio related functionality
  vt82c686: Add VT8231_SUPERIO based on VIA_SUPERIO
  vt82c686: Introduce abstract TYPE_VIA_ISA and base vt82c686b_isa on it
  vt82c686: Add emulation of VT8231 south bridge
  hw/pci-host: Add emulation of Marvell MV64361 PPC system controller
  hw/ppc: Add emulation of Genesi/bPlan Pegasos II

Philippe Mathieu-Daudé (1):
  hw/isa/Kconfig: Add missing dependency VIA VT82C686 -> APM

 MAINTAINERS                             |  10 +
 default-configs/devices/ppc-softmmu.mak |   2 +
 hw/isa/Kconfig                          |   1 +
 hw/isa/vt82c686.c                       | 422 +++++++++--
 hw/pci-host/Kconfig                     |   4 +
 hw/pci-host/meson.build                 |   2 +
 hw/pci-host/mv64361.c                   | 966 ++++++++++++++++++++++++
 hw/pci-host/mv643xx.h                   | 918 ++++++++++++++++++++++
 hw/pci-host/trace-events                |   6 +
 hw/ppc/Kconfig                          |   9 +
 hw/ppc/meson.build                      |   2 +
 hw/ppc/pegasos2.c                       | 144 ++++
 include/hw/isa/vt82c686.h               |   2 +-
 include/hw/pci-host/mv64361.h           |   8 +
 include/hw/pci/pci_ids.h                |   4 +-
 15 files changed, 2418 insertions(+), 82 deletions(-)
 create mode 100644 hw/pci-host/mv64361.c
 create mode 100644 hw/pci-host/mv643xx.h
 create mode 100644 hw/ppc/pegasos2.c
 create mode 100644 include/hw/pci-host/mv64361.h

-- 
2.21.4


Re: [PATCH v10 0/7] Pegasos2 emulation
Posted by David Gibson 4 years, 8 months ago
On Wed, Mar 17, 2021 at 02:17:51AM +0100, BALATON Zoltan wrote:
> Hello,
> 
> This is adding a new PPC board called pegasos2. More info on it can be
> found at:
> 
> https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2
> 
> Currently it needs a firmware ROM image that I cannot include due to
> original copyright holder (bPlan) did not release it under a free
> licence but I have plans to write a replacement in the future. With
> the original board firmware it can boot MorphOS now as:
> 
> qemu-system-ppc -M pegasos2 -cdrom morphos.iso -device ati-vga,romfile="" -serial stdio
> 
> then enter "boot cd boot.img" at the firmware "ok" prompt as described
> in the MorphOS.readme. To boot Linux use same command line with e.g.
> -cdrom debian-8.11.0-powerpc-netinst.iso then enter
> "boot cd install/pegasos"
> 
> The last patch adds the actual board code after previous patches
> adding VT8231 and MV64361 system controller chip emulation.

I've applied 1..5 to a new ppc-for-6.1 branch.  Sorry it didn't make
it for 6.0, I just didn't have time to look this over until too late.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
Re: [PATCH v10 0/7] Pegasos2 emulation
Posted by BALATON Zoltan 4 years, 8 months ago
On Tue, 23 Mar 2021, David Gibson wrote:
> On Wed, Mar 17, 2021 at 02:17:51AM +0100, BALATON Zoltan wrote:
>> Hello,
>>
>> This is adding a new PPC board called pegasos2. More info on it can be
>> found at:
>>
>> https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2
>>
>> Currently it needs a firmware ROM image that I cannot include due to
>> original copyright holder (bPlan) did not release it under a free
>> licence but I have plans to write a replacement in the future. With
>> the original board firmware it can boot MorphOS now as:
>>
>> qemu-system-ppc -M pegasos2 -cdrom morphos.iso -device ati-vga,romfile="" -serial stdio
>>
>> then enter "boot cd boot.img" at the firmware "ok" prompt as described
>> in the MorphOS.readme. To boot Linux use same command line with e.g.
>> -cdrom debian-8.11.0-powerpc-netinst.iso then enter
>> "boot cd install/pegasos"
>>
>> The last patch adds the actual board code after previous patches
>> adding VT8231 and MV64361 system controller chip emulation.
>
> I've applied 1..5 to a new ppc-for-6.1 branch.  Sorry it didn't make
> it for 6.0, I just didn't have time to look this over until too late.

Thanks but maybe you should wait if the dropped original first patch can 
be reviewed now and brought back. It would be easier for me to resubmit 
whole series rebased than port the dropped patch on top of a partly 
applied series. Also first patches without the last two is not much useful 
as the vt8231 model these add would not be used by anything else.

Regards,
BALATON Zoltan

Re: [PATCH v10 0/7] Pegasos2 emulation
Posted by David Gibson 4 years, 7 months ago
On Tue, Mar 23, 2021 at 01:57:25PM +0100, BALATON Zoltan wrote:
> On Tue, 23 Mar 2021, David Gibson wrote:
> > On Wed, Mar 17, 2021 at 02:17:51AM +0100, BALATON Zoltan wrote:
> > > Hello,
> > > 
> > > This is adding a new PPC board called pegasos2. More info on it can be
> > > found at:
> > > 
> > > https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2
> > > 
> > > Currently it needs a firmware ROM image that I cannot include due to
> > > original copyright holder (bPlan) did not release it under a free
> > > licence but I have plans to write a replacement in the future. With
> > > the original board firmware it can boot MorphOS now as:
> > > 
> > > qemu-system-ppc -M pegasos2 -cdrom morphos.iso -device ati-vga,romfile="" -serial stdio
> > > 
> > > then enter "boot cd boot.img" at the firmware "ok" prompt as described
> > > in the MorphOS.readme. To boot Linux use same command line with e.g.
> > > -cdrom debian-8.11.0-powerpc-netinst.iso then enter
> > > "boot cd install/pegasos"
> > > 
> > > The last patch adds the actual board code after previous patches
> > > adding VT8231 and MV64361 system controller chip emulation.
> > 
> > I've applied 1..5 to a new ppc-for-6.1 branch.  Sorry it didn't make
> > it for 6.0, I just didn't have time to look this over until too late.
> 
> Thanks but maybe you should wait if the dropped original first patch can be
> reviewed now and brought back. It would be easier for me to resubmit whole
> series rebased than port the dropped patch on top of a partly applied
> series. Also first patches without the last two is not much useful as the
> vt8231 model these add would not be used by anything else.

Ok, I've dropped your patches from ppc-for-6.1 again, and I'll wait
for the next posting.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
Re: [PATCH v10 0/7] Pegasos2 emulation
Posted by BALATON Zoltan 4 years, 7 months ago
On Thu, 25 Mar 2021, David Gibson wrote:
> On Tue, Mar 23, 2021 at 01:57:25PM +0100, BALATON Zoltan wrote:
>> On Tue, 23 Mar 2021, David Gibson wrote:
>>> On Wed, Mar 17, 2021 at 02:17:51AM +0100, BALATON Zoltan wrote:
>>>> Hello,
>>>>
>>>> This is adding a new PPC board called pegasos2. More info on it can be
>>>> found at:
>>>>
>>>> https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2
>>>>
>>>> Currently it needs a firmware ROM image that I cannot include due to
>>>> original copyright holder (bPlan) did not release it under a free
>>>> licence but I have plans to write a replacement in the future. With
>>>> the original board firmware it can boot MorphOS now as:
>>>>
>>>> qemu-system-ppc -M pegasos2 -cdrom morphos.iso -device ati-vga,romfile="" -serial stdio
>>>>
>>>> then enter "boot cd boot.img" at the firmware "ok" prompt as described
>>>> in the MorphOS.readme. To boot Linux use same command line with e.g.
>>>> -cdrom debian-8.11.0-powerpc-netinst.iso then enter
>>>> "boot cd install/pegasos"
>>>>
>>>> The last patch adds the actual board code after previous patches
>>>> adding VT8231 and MV64361 system controller chip emulation.
>>>
>>> I've applied 1..5 to a new ppc-for-6.1 branch.  Sorry it didn't make
>>> it for 6.0, I just didn't have time to look this over until too late.
>>
>> Thanks but maybe you should wait if the dropped original first patch can be
>> reviewed now and brought back. It would be easier for me to resubmit whole
>> series rebased than port the dropped patch on top of a partly applied
>> series. Also first patches without the last two is not much useful as the
>> vt8231 model these add would not be used by anything else.
>
> Ok, I've dropped your patches from ppc-for-6.1 again, and I'll wait
> for the next posting.

Should've waited for the outcome of the review of the patch in question as 
it turns out it was voted against so the ones you dropped will stay. Sorry 
for the churn, I've posted v11 with all patches again changing last two 
patches according to your review. Let me know if anything else is needed.

Thank you,
BALATON Zoltan