[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 5/6] hw/pci-host: Add emulation of Marvell MV64361 PPC sys
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v3 5/6] hw/pci-host: Add emulation of Marvell MV64361 PPC system controller |
Date: |
Mon, 22 Feb 2021 18:23:15 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 2/22/21 6:01 PM, BALATON Zoltan wrote:
> On Mon, 22 Feb 2021, Philippe Mathieu-Daudé wrote:
>> On 2/22/21 4:22 PM, BALATON Zoltan wrote:
>>> The Marvell Discovery II aka. MV64361 is a PowerPC system controller
>>> chip that is used on the pegasos2 PPC board. This adds emulation of it
>>> that models the device enough to boot guests on this board. The
>>> mv643xx.h header with register definitions is taken from Linux 4.15.10
>>> only fixing end of line white space errors and removing not needed
>>> parts, it's otherwise keeps Linux formatting.
>>>
>>> Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
>>> ---
>>> hw/pci-host/Kconfig | 3 +
>>> hw/pci-host/meson.build | 2 +
>>> hw/pci-host/mv64361.c | 966 ++++++++++++++++++++++++++++++++++
>>> hw/pci-host/mv643xx.h | 919 ++++++++++++++++++++++++++++++++
>>> hw/pci-host/trace-events | 6 +
>>> include/hw/pci-host/mv64361.h | 8 +
>>> include/hw/pci/pci_ids.h | 1 +
>>> 7 files changed, 1905 insertions(+)
>>> create mode 100644 hw/pci-host/mv64361.c
>>> create mode 100644 hw/pci-host/mv643xx.h
>>> create mode 100644 include/hw/pci-host/mv64361.h
>>
>> Is this the datasheet for this controller?
>> ftp://ftp.freecalypso.org/PowerPC/support_ics/mv64360/datasheets/DS_64360_1_2.pdf.zip
>>
>>
>> It seems to have common parts with the GT64120.
>
> Yes, as noted on https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2
> the GT64120 seems to be an older (and MIPS specific) version of this
> chip that Marvell bought and likely made this PPC version based on that.
> (The whole pegasos2 seems to be like a MIPS board with a PPC CPU even
> down to the firmware which looks quite like PMON just has SmartFirmware
> instead of the commands of PMON. So whoever designed it, might have
> taken inspiration from some MIPS hardware.) However the emulation of
> GT64xxx in QEMU seemed to be not complete and different enough so I
> haven't looked at that when implementing this so I don't know how much
> commonality is there and if that would worth reusing. (If you think
> there could be some reuse then that should be done separate of this
> series, afterwards it's merged.)
Yes, I see your patch is more complete. Fair enough.
- Re: [PATCH v3 1/6] vt82c686: Implement control of serial port io ranges via config regs, (continued)
[PATCH v3 6/6] hw/ppc: Add emulation of Genesi/bPlan Pegasos II, BALATON Zoltan, 2021/02/22
[PATCH v3 2/6] vt82c686: QOM-ify superio related functionality, BALATON Zoltan, 2021/02/22
[PATCH v3 4/6] vt82c686: Add emulation of VT8231 south bridge, BALATON Zoltan, 2021/02/22
[PATCH v3 5/6] hw/pci-host: Add emulation of Marvell MV64361 PPC system controller, BALATON Zoltan, 2021/02/22
Re: [PATCH v3 5/6] hw/pci-host: Add emulation of Marvell MV64361 PPC system controller, David Gibson, 2021/02/22
Re: [PATCH v3 0/6] Pegasos2 emulation, no-reply, 2021/02/22
Re: [PATCH v3 0/6] Pegasos2 emulation, David Gibson, 2021/02/22