Skip to contentSkip to conversation

qemu-sparc update

GIT PULL Mark Cave-Ayland 3 participants 9 messages Mar 4, 2015 – Mar 9, 2015

lore
Share & tools
lore
#0 lore raw

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

ATB,

Mark.

The following changes since commit b8a173b25c887a606681fc35a46702c164d5b2d0:

Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into staging (2015-03-02 14:25:48 +0000)

are available in the git repository at:

https://github.com/mcayland/qemu.git tags/qemu-sparc-signed

for you to fetch changes up to ed646b4c8fba426b67d1ad2da40861b4dc6745f9:

sun4u: switch m48t59 NVRAM to MMIO access (2015-03-03 22:53:31 +0000)

----------------------------------------------------------------
qemu-sparc update

----------------------------------------------------------------
Hervé Poussineau (4):
m48t59: move ISA ports/memory regions registration to QOM constructor
m48t59: register a QOM type for each nvram type we support
m48t59: add a Nvram interface
m48t59: let init functions return a Nvram object

Mark Cave-Ayland (5):
m48t59: introduce new base-year qdev property
m48t59: add m48t59 sysbus device
doc: minor updates to SPARC32 and SPARC64 documentation
MAINTAINERS: add myself as SPARC maintainer
sun4u: switch m48t59 NVRAM to MMIO access

 MAINTAINERS               |    3 +
 hw/ppc/ppc.c              |  161 --------------------
 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |  163 ++++++++++++++++++--
 hw/sparc/sun4m.c          |   10 +-
 hw/sparc64/sun4u.c        |   20 ++-
 hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
 include/hw/timer/m48t59.h |   61 ++++----
 pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
 qemu-doc.texi             |    7 +-
 10 files changed, 463 insertions(+), 323 deletions(-)
#1 lore raw
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
 MAINTAINERS               |    3 +
 hw/ppc/ppc.c              |  161 --------------------
 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |  163 ++++++++++++++++++--
 hw/sparc/sun4m.c          |   10 +-
 hw/sparc64/sun4u.c        |   20 ++-
 hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
 include/hw/timer/m48t59.h |   61 ++++----
 pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
 qemu-doc.texi             |    7 +-

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

-- PMM

#2 lore raw
Quoted 17 lines · Peter Maydell
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
 MAINTAINERS               |    3 +
 hw/ppc/ppc.c              |  161 --------------------
 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |  163 ++++++++++++++++++--
 hw/sparc/sun4m.c          |   10 +-
 hw/sparc64/sun4u.c        |   20 ++-
 hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
 include/hw/timer/m48t59.h |   61 ++++----
 pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
 qemu-doc.texi             |    7 +-
Quoted 2 lines

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

I haven't committed the sun4u MMIO patches to OpenBIOS yet because without the corresponding QEMU parts OpenBIOS SVN trunk breaks (and the QEMU parts have taken many weeks to get right which is a long time to leave things broken). Hence I've gone for just updating the binary which is SVN trunk plus the NVRAM MMIO accessor changes in order to preserve bisection.

As soon as this is applied, I can apply my remaining OpenBIOS patches and then send a separate qemu-openbios pull request which will bring everything up to date.

ATB,

Mark.

#3 lore raw
Quoted 29 lines · Mark Cave-Ayland
Quoted 17 lines · Peter Maydell
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
 MAINTAINERS               |    3 +
 hw/ppc/ppc.c              |  161 --------------------
 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |  163 ++++++++++++++++++--
 hw/sparc/sun4m.c          |   10 +-
 hw/sparc64/sun4u.c        |   20 ++-
 hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
 include/hw/timer/m48t59.h |   61 ++++----
 pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
 qemu-doc.texi             |    7 +-
Quoted 2 lines

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

I haven't committed the sun4u MMIO patches to OpenBIOS yet because without the corresponding QEMU parts OpenBIOS SVN trunk breaks (and the QEMU parts have taken many weeks to get right which is a long time to leave things broken). Hence I've gone for just updating the binary which is SVN trunk plus the NVRAM MMIO accessor changes in order to preserve bisection.

Quoted 3 lines

As soon as this is applied, I can apply my remaining OpenBIOS patches and then send a separate qemu-openbios pull request which will bring everything up to date.

Hmm. I'm not a huge fan of having the binary in git and the submodule reference be out of step...

Alex, I guess PPC is the other openbios user -- does this make sense to you?

-- PMM

#4 lore raw
Quoted 31 lines · Peter Maydell
Quoted 29 lines · Mark Cave-Ayland
Quoted 17 lines · Peter Maydell
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
 MAINTAINERS               |    3 +
 hw/ppc/ppc.c              |  161 --------------------
 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |  163 ++++++++++++++++++--
 hw/sparc/sun4m.c          |   10 +-
 hw/sparc64/sun4u.c        |   20 ++-
 hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
 include/hw/timer/m48t59.h |   61 ++++----
 pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
 qemu-doc.texi             |    7 +-
Quoted 2 lines

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

I haven't committed the sun4u MMIO patches to OpenBIOS yet because without the corresponding QEMU parts OpenBIOS SVN trunk breaks (and the QEMU parts have taken many weeks to get right which is a long time to leave things broken). Hence I've gone for just updating the binary which is SVN trunk plus the NVRAM MMIO accessor changes in order to preserve bisection.

Quoted 6 lines
Quoted 3 lines

As soon as this is applied, I can apply my remaining OpenBIOS patches and then send a separate qemu-openbios pull request which will bring everything up to date.

Hmm. I'm not a huge fan of having the binary in git and the submodule reference be out of step...

Alternatively if you have shell access to git.qemu.org then I can commit just the MMIO accessor changes to SVN trunk now and then with a manual update to the OpenBIOS git mirror I can re-send the signed pull request with updated binaries? I've deliberately held off applying patches to OpenBIOS SVN trunk in case this was the preferred method as I'm keen to be able to bisect down to this particular change on SPARC64.

ATB,

Mark.

#5 lore raw
Quoted 40 lines · Mark Cave-Ayland
Quoted 31 lines · Peter Maydell
Quoted 29 lines · Mark Cave-Ayland
Quoted 17 lines · Peter Maydell
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
 MAINTAINERS               |    3 +
 hw/ppc/ppc.c              |  161 --------------------
 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |  163 ++++++++++++++++++--
 hw/sparc/sun4m.c          |   10 +-
 hw/sparc64/sun4u.c        |   20 ++-
 hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
 include/hw/timer/m48t59.h |   61 ++++----
 pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
 qemu-doc.texi             |    7 +-
Quoted 2 lines

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

I haven't committed the sun4u MMIO patches to OpenBIOS yet because without the corresponding QEMU parts OpenBIOS SVN trunk breaks (and the QEMU parts have taken many weeks to get right which is a long time to leave things broken). Hence I've gone for just updating the binary which is SVN trunk plus the NVRAM MMIO accessor changes in order to preserve bisection.

Quoted 6 lines
Quoted 3 lines

As soon as this is applied, I can apply my remaining OpenBIOS patches and then send a separate qemu-openbios pull request which will bring everything up to date.

Hmm. I'm not a huge fan of having the binary in git and the submodule reference be out of step...

Quoted 6 lines

Alternatively if you have shell access to git.qemu.org then I can commit just the MMIO accessor changes to SVN trunk now and then with a manual update to the OpenBIOS git mirror I can re-send the signed pull request with updated binaries? I've deliberately held off applying patches to OpenBIOS SVN trunk in case this was the preferred method as I'm keen to be able to bisect down to this particular change on SPARC64.

Is there any way to make the change backwards compatible, so that we don't need to sync versions?

Alex

#6 lore raw
Quoted 48 lines · Alexander Graf
Quoted 40 lines · Mark Cave-Ayland
Quoted 31 lines · Peter Maydell
Quoted 29 lines · Mark Cave-Ayland
Quoted 17 lines · Peter Maydell
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
 MAINTAINERS               |    3 +
 hw/ppc/ppc.c              |  161 --------------------
 hw/ppc/ppc405_boards.c    |    2 +-
 hw/ppc/prep.c             |  163 ++++++++++++++++++--
 hw/sparc/sun4m.c          |   10 +-
 hw/sparc64/sun4u.c        |   20 ++-
 hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
 include/hw/timer/m48t59.h |   61 ++++----
 pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
 qemu-doc.texi             |    7 +-
Quoted 2 lines

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

I haven't committed the sun4u MMIO patches to OpenBIOS yet because without the corresponding QEMU parts OpenBIOS SVN trunk breaks (and the QEMU parts have taken many weeks to get right which is a long time to leave things broken). Hence I've gone for just updating the binary which is SVN trunk plus the NVRAM MMIO accessor changes in order to preserve bisection.

Quoted 6 lines
Quoted 3 lines

As soon as this is applied, I can apply my remaining OpenBIOS patches and then send a separate qemu-openbios pull request which will bring everything up to date.

Hmm. I'm not a huge fan of having the binary in git and the submodule reference be out of step...

Quoted 6 lines

Alternatively if you have shell access to git.qemu.org then I can commit just the MMIO accessor changes to SVN trunk now and then with a manual update to the OpenBIOS git mirror I can re-send the signed pull request with updated binaries? I've deliberately held off applying patches to OpenBIOS SVN trunk in case this was the preferred method as I'm keen to be able to bisect down to this particular change on SPARC64.

Quoted 2 lines

Is there any way to make the change backwards compatible, so that we don't need to sync versions?

Not without refactoring to enable more than one type of NVRAM accessor in OpenBIOS, plus a fw_cfg variable to enable the switch between the two for SPARC64.

Given that SPARC64 is still more experimental than stable plus newer versions of OpenBIOS aren't guaranteed to work with older versions of QEMU anyhow, I just can't see that this is worth all the extra effort for the sake of a follow-up pull request within a day or so that will bring everything up to date whilst still allowing a proper bisection.

Now if Peter is still keen to keep the git submodule reference intact then I'm happy to commit just the MMIO accessor changes to OpenBIOS SVN trunk as long as we can minimise the time between the QEMU changes and the OpenBIOS changes.

ATB,

Mark.

#7 lore raw
Quoted 68 lines

Am 08.03.2015 um 17:03 schrieb Mark Cave-Ayland <[email protected]>:

Quoted 50 lines · Alexander Graf
Quoted 42 lines · Mark Cave-Ayland
Quoted 33 lines · Peter Maydell
Quoted 29 lines · Mark Cave-Ayland
Quoted 17 lines · Peter Maydell
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
MAINTAINERS               |    3 +
hw/ppc/ppc.c              |  161 --------------------
hw/ppc/ppc405_boards.c    |    2 +-
hw/ppc/prep.c             |  163 ++++++++++++++++++--
hw/sparc/sun4m.c          |   10 +-
hw/sparc64/sun4u.c        |   20 ++-
hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
include/hw/timer/m48t59.h |   61 ++++----
pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
qemu-doc.texi             |    7 +-
Quoted 2 lines

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

I haven't committed the sun4u MMIO patches to OpenBIOS yet because without the corresponding QEMU parts OpenBIOS SVN trunk breaks (and the QEMU parts have taken many weeks to get right which is a long time to leave things broken). Hence I've gone for just updating the binary which is SVN trunk plus the NVRAM MMIO accessor changes in order to preserve bisection.

Quoted 6 lines
Quoted 3 lines

As soon as this is applied, I can apply my remaining OpenBIOS patches and then send a separate qemu-openbios pull request which will bring everything up to date.

Hmm. I'm not a huge fan of having the binary in git and the submodule reference be out of step...

Quoted 6 lines

Alternatively if you have shell access to git.qemu.org then I can commit just the MMIO accessor changes to SVN trunk now and then with a manual update to the OpenBIOS git mirror I can re-send the signed pull request with updated binaries? I've deliberately held off applying patches to OpenBIOS SVN trunk in case this was the preferred method as I'm keen to be able to bisect down to this particular change on SPARC64.

Quoted 2 lines

Is there any way to make the change backwards compatible, so that we don't need to sync versions?

Not without refactoring to enable more than one type of NVRAM accessor in OpenBIOS, plus a fw_cfg variable to enable the switch between the two for SPARC64.

Given that SPARC64 is still more experimental than stable plus newer versions of OpenBIOS aren't guaranteed to work with older versions of QEMU anyhow, I just can't see that this is worth all the extra effort for the sake of a follow-up pull request within a day or so that will bring everything up to date whilst still allowing a proper bisection.

Quoted 4 lines

Now if Peter is still keen to keep the git submodule reference intact then I'm happy to commit just the MMIO accessor changes to OpenBIOS SVN trunk as long as we can minimise the time between the QEMU changes and the OpenBIOS changes.

Yes, I think that's a reasonable way forward. Maybe add a fw_cfg and assert() on it nevertheless, so people don't fall into pits ;).

Alex

#8 lore raw
Quoted 65 lines · Alexander Graf
Quoted 65 lines

Am 08.03.2015 um 17:03 schrieb Mark Cave-Ayland <[email protected]>:

Quoted 50 lines · Alexander Graf
Quoted 42 lines · Mark Cave-Ayland
Quoted 33 lines · Peter Maydell
Quoted 29 lines · Mark Cave-Ayland
Quoted 17 lines · Peter Maydell
Quoted 4 lines · Mark Cave-Ayland

Hi Peter,

Here are the updates from my qemu-sparc tree. Please pull.

Quoted 10 lines
MAINTAINERS               |    3 +
hw/ppc/ppc.c              |  161 --------------------
hw/ppc/ppc405_boards.c    |    2 +-
hw/ppc/prep.c             |  163 ++++++++++++++++++--
hw/sparc/sun4m.c          |   10 +-
hw/sparc64/sun4u.c        |   20 ++-
hw/timer/m48t59.c         |  359 ++++++++++++++++++++++++++++++++-------------
include/hw/timer/m48t59.h |   61 ++++----
pc-bios/openbios-sparc64  |  Bin 1616768 -> 1616768 bytes
qemu-doc.texi             |    7 +-
Quoted 2 lines

Shouldn't there be an update to roms/openbios to go with the pc-bios/openbios-sparc64 binary blob update?

I haven't committed the sun4u MMIO patches to OpenBIOS yet because without the corresponding QEMU parts OpenBIOS SVN trunk breaks (and the QEMU parts have taken many weeks to get right which is a long time to leave things broken). Hence I've gone for just updating the binary which is SVN trunk plus the NVRAM MMIO accessor changes in order to preserve bisection.

Quoted 6 lines
Quoted 3 lines

As soon as this is applied, I can apply my remaining OpenBIOS patches and then send a separate qemu-openbios pull request which will bring everything up to date.

Hmm. I'm not a huge fan of having the binary in git and the submodule reference be out of step...

Quoted 6 lines

Alternatively if you have shell access to git.qemu.org then I can commit just the MMIO accessor changes to SVN trunk now and then with a manual update to the OpenBIOS git mirror I can re-send the signed pull request with updated binaries? I've deliberately held off applying patches to OpenBIOS SVN trunk in case this was the preferred method as I'm keen to be able to bisect down to this particular change on SPARC64.

Quoted 2 lines

Is there any way to make the change backwards compatible, so that we don't need to sync versions?

Not without refactoring to enable more than one type of NVRAM accessor in OpenBIOS, plus a fw_cfg variable to enable the switch between the two for SPARC64.

Given that SPARC64 is still more experimental than stable plus newer versions of OpenBIOS aren't guaranteed to work with older versions of QEMU anyhow, I just can't see that this is worth all the extra effort for the sake of a follow-up pull request within a day or so that will bring everything up to date whilst still allowing a proper bisection.

Quoted 6 lines
Quoted 4 lines

Now if Peter is still keen to keep the git submodule reference intact then I'm happy to commit just the MMIO accessor changes to OpenBIOS SVN trunk as long as we can minimise the time between the QEMU changes and the OpenBIOS changes.

Yes, I think that's a reasonable way forward. Maybe add a fw_cfg and assert() on it nevertheless, so people don't fall into pits ;).

If you're trying to run an old SPARC32/64 OpenBIOS on a newer QEMU then there are already several pits you could have fallen into ;) And given that no-one has reported any issues with this to date then I don't think it will be a problem.

As it looks like this will happen shortly, I'll go commit the MMIO changes for SPARC64 to OpenBIOS SVN trunk now. Then as soon as the git mirror syncs I'll send an updated PULLv2 for Peter.

ATB,

Mark.