Re: [Qemu-devel] [PULL] qemu-sparc update

2017-11-02 Thread Peter Maydell
On 31 October 2017 at 17:50, Mark Cave-Ayland
 wrote:
> Hi Peter,
>
> Here are the last set of changes for 2.11 which is the tidy up of the sun4m 
> DMA
> devices along with the switch from the legacy sun4m IOMMU API to an IOMMU
> memory region instead. Please pull.
>
>
> ATB,
>
> Mark.
>
>
> The following changes since commit 7fa00e204902cee0b33a0c60de87e87319d1809f:
>
>   Merge remote-tracking branch 
> 'remotes/pmaydell/tags/pull-target-arm-20171031' into staging (2017-10-31 
> 14:28:25 +)
>
> are available in the git repository at:
>
>
>   https://github.com/mcayland/qemu.git tags/qemu-sparc-signed
>
> for you to fetch changes up to badd3d62c619d24a5af62198374f42b7c510ee41:
>
>   sun4m: change TYPE_SUN4M_IOMMU macro from "iommu" to "sun4m-iommu" 
> (2017-10-31 17:25:37 +)
>
> 
> qemu-sparc update

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2017-10-31 Thread Mark Cave-Ayland
Hi Peter,

Here are the last set of changes for 2.11 which is the tidy up of the sun4m DMA
devices along with the switch from the legacy sun4m IOMMU API to an IOMMU
memory region instead. Please pull.


ATB,

Mark.
 

The following changes since commit 7fa00e204902cee0b33a0c60de87e87319d1809f:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20171031' 
into staging (2017-10-31 14:28:25 +)

are available in the git repository at:


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

for you to fetch changes up to badd3d62c619d24a5af62198374f42b7c510ee41:

  sun4m: change TYPE_SUN4M_IOMMU macro from "iommu" to "sun4m-iommu" 
(2017-10-31 17:25:37 +)


qemu-sparc update


Mark Cave-Ayland (17):
  sparc32_dma: rename SPARC32_DMA type to SPARC32_DMA_DEVICE
  sparc32_dma: split esp and le into separate DMA devices
  sparc32_dma: move type declarations from sparc32_dma.c to sparc32_dma.h
  sun4m: move DMA device wiring from sparc32_dma_init() to sun4m_hw_init()
  sun4m_iommu: move TYPE_SUN4M_IOMMU declaration to sun4m.h
  sparc32_dma: use object link instead of qdev property to pass IOMMU 
reference
  esp: move TYPE_ESP and SysBusESPState from esp.c to esp.h
  sparc32_dma: make esp device child of espdma device
  lance: move TYPE_LANCE and SysBusPCNetState from lance.c to lance.h
  sparc32_dma: make lance device child of ledma device
  sparc32_dma: introduce new SPARC32_DMA type container object
  sparc32_dma: remove is_ledma hack and replace with memory region alias
  sparc32_dma: add len to esp/le DMA memory tracing
  sun4m: implement IOMMU translation using IOMMU memory region
  sparc32_dma: switch over to using IOMMU memory region and DMA API
  sun4m_iommu: remove legacy sparc_iommu_memory_rw() function
  sun4m: change TYPE_SUN4M_IOMMU macro from "iommu" to "sun4m-iommu"

 hw/dma/sparc32_dma.c   |  252 +---
 hw/dma/sun4m_iommu.c   |  101 +---
 hw/dma/trace-events|8 +-
 hw/net/lance.c |   11 +-
 hw/scsi/esp.c  |   13 ---
 hw/sparc/sun4m.c   |   82 +
 include/hw/net/lance.h |   45 +++
 include/hw/scsi/esp.h  |   14 +++
 include/hw/sparc/sparc32_dma.h |   55 +
 include/hw/sparc/sun4m.h   |   35 +++---
 10 files changed, 413 insertions(+), 203 deletions(-)
 create mode 100644 include/hw/net/lance.h



Re: [Qemu-devel] [PULL] qemu-sparc update

2017-04-24 Thread Peter Maydell
On 21 April 2017 at 20:17, Mark Cave-Ayland
 wrote:
> Hi Peter,
>
> Here is the cg3/tcx patchset which includes a lot of tidy-up and fixes several
> invalidation bugs for tcx discovered whilst testing Gerd's thread-safe
> patches. Please pull.
>
>
> ATB,
>
> Mark.
>
>
> The following changes since commit da92ada855036c55bd08b0b0c64c7551d56f3586:
>
>   Merge remote-tracking branch 
> 'remotes/pmaydell/tags/pull-target-arm-20170420' into staging (2017-04-20 
> 17:41:34 +0100)
>
> are available in the git repository at:
>
>
>   https://github.com/mcayland/qemu.git tags/qemu-sparc-signed
>
> for you to fetch changes up to 749763864208b14f100f1f8319aeb931134430fa:
>
>   tcx: switch to load_image_mr() and remove prom_addr hack (2017-04-21 
> 09:02:04 +0100)

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2017-04-21 Thread Mark Cave-Ayland
Hi Peter,

Here is the cg3/tcx patchset which includes a lot of tidy-up and fixes several
invalidation bugs for tcx discovered whilst testing Gerd's thread-safe
patches. Please pull.


ATB,

Mark.


The following changes since commit da92ada855036c55bd08b0b0c64c7551d56f3586:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20170420' 
into staging (2017-04-20 17:41:34 +0100)

are available in the git repository at:


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

for you to fetch changes up to 749763864208b14f100f1f8319aeb931134430fa:

  tcx: switch to load_image_mr() and remove prom_addr hack (2017-04-21 09:02:04 
+0100)


qemu-sparc update


Mark Cave-Ayland (13):
  cg3: remove TARGET_PAGE_SIZE rounding on dirty page detection
  cg3: fix up size parameter for memory_region_get_dirty()
  cg3: switch to load_image_mr() and remove prom-addr hack
  tcx: alter tcx_set_dirty() to accept address and length parameters
  tcx: ensure tcx_set_dirty() also invalidates the 24-bit plane and cplane
  tcx: alter tcx24_check_dirty() to accept address and length parameters
  tcx: alter tcx24_reset_dirty() to accept address and length parameters
  tcx: remove page24 and cpage from tcx24_update_display()
  tcx: remove TARGET_PAGE_SIZE from tcx_update_display()
  tcx: remove TARGET_PAGE_SIZE from tcx24_update_display()
  tcx: remove primitives for non-32-bit surfaces
  tcx: use tcx_set_dirty() for accelerated ops
  tcx: switch to load_image_mr() and remove prom_addr hack

 hw/display/cg3.c |   12 +--
 hw/display/tcx.c |  298 +++---
 hw/sparc/sun4m.c |2 -
 3 files changed, 65 insertions(+), 247 deletions(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2016-06-27 Thread Peter Maydell
On 24 June 2016 at 18:41, Mark Cave-Ayland
 wrote:
> Hi Peter,
>
> This request just contains Artyom's fix for the Solaris 9 regression 
> introduced
> by the previous register window changes. Please pull.
>
>
> ATB,
>
> Mark.
>
>
> The following changes since commit a01aef5d2f96c334d048f43f0d3573a1152b37ca:
>
>   Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging 
> (2016-06-24 11:00:15 +0100)
>
> are available in the git repository at:
>
>
>   https://github.com/mcayland/qemu.git tags/qemu-sparc-signed
>
> for you to fetch changes up to b64d2e57e704edbb56ae969de864292dd38379bf:
>
>   target-sparc: fix register corruption in ldstub if there is no write 
> permission (2016-06-24 18:18:32 +0100)
>
> 
> qemu-sparc update
>
> 
> Artyom Tarasenko (1):
>   target-sparc: fix register corruption in ldstub if there is no write 
> permission
>
>  target-sparc/translate.c |5 -
>  1 file changed, 4 insertions(+), 1 deletion(-)

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2016-06-24 Thread Mark Cave-Ayland
Hi Peter,

This request just contains Artyom's fix for the Solaris 9 regression introduced
by the previous register window changes. Please pull.


ATB,

Mark.


The following changes since commit a01aef5d2f96c334d048f43f0d3573a1152b37ca:

  Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging 
(2016-06-24 11:00:15 +0100)

are available in the git repository at:


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

for you to fetch changes up to b64d2e57e704edbb56ae969de864292dd38379bf:

  target-sparc: fix register corruption in ldstub if there is no write 
permission (2016-06-24 18:18:32 +0100)


qemu-sparc update


Artyom Tarasenko (1):
  target-sparc: fix register corruption in ldstub if there is no write 
permission

 target-sparc/translate.c |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2016-06-21 Thread Peter Maydell
On 20 June 2016 at 22:06, Mark Cave-Ayland
 wrote:
> Hi Peter,
>
> This update simply amends the MAINTAINERS entries for SPARC. Please pull.
>
>
> ATB,
>
> Mark.
>
>
> The following changes since commit 7e13ea57f47710de2c19f22b27b34ab9fb045700:
>
>   Merge remote-tracking branch 'remotes/mwalle/tags/lm32-queue/20160620' into 
> staging (2016-06-20 18:14:26 +0100)
>
> are available in the git repository at:
>
>
>   https://github.com/mcayland/qemu.git tags/qemu-sparc-signed
>
> for you to fetch changes up to 3a978051b249e52ec3f45e56e1bf1db868364a82:
>
>   MAINTAINERS: remove Blue Swirl as SPARC maintainer (2016-06-20 21:55:16 
> +0100)
>
> 
> qemu-sparc update
>
> 
> Mark Cave-Ayland (2):
>   MAINTAINERS: add Artyom Tarasenko as SPARC maintainer
>   MAINTAINERS: remove Blue Swirl as SPARC maintainer

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2016-06-20 Thread Mark Cave-Ayland
Hi Peter,

This update simply amends the MAINTAINERS entries for SPARC. Please pull.


ATB,

Mark.


The following changes since commit 7e13ea57f47710de2c19f22b27b34ab9fb045700:

  Merge remote-tracking branch 'remotes/mwalle/tags/lm32-queue/20160620' into 
staging (2016-06-20 18:14:26 +0100)

are available in the git repository at:


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

for you to fetch changes up to 3a978051b249e52ec3f45e56e1bf1db868364a82:

  MAINTAINERS: remove Blue Swirl as SPARC maintainer (2016-06-20 21:55:16 +0100)


qemu-sparc update


Mark Cave-Ayland (2):
  MAINTAINERS: add Artyom Tarasenko as SPARC maintainer
  MAINTAINERS: remove Blue Swirl as SPARC maintainer

 MAINTAINERS |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2016-04-15 Thread Peter Maydell
On 15 April 2016 at 09:40, Mark Cave-Ayland
 wrote:
> Hi Peter,
>
> This contains some register corruption fixes for qemu-system-sparc64. Please 
> pull.
>
>
> ATB,
>
> Mark.
>
>
> The following changes since commit bc8995cafa0c36b9e4be682e9a60d59484b33500:
>
>   Update version for v2.6.0-rc2 release (2016-04-14 17:30:28 +0100)
>
> are available in the git repository at:
>
>   https://github.com/mcayland/qemu.git tags/qemu-sparc-signed
>
> for you to fetch changes up to de5f1077446ca455342db149737bdc395a7b9882:
>
>   target-sparc: fix Trap Based Address Register behavior for sparc64 
> (2016-04-15 09:30:40 +0100)
>
> 
> qemu-sparc update
>
> 
> Artyom Tarasenko (2):
>   target-sparc: fix Nucleus quad LDD 128 bit access for windowed registers
>   target-sparc: fix Trap Based Address Register behavior for sparc64

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2016-04-15 Thread Mark Cave-Ayland
Hi Peter,

This contains some register corruption fixes for qemu-system-sparc64. Please 
pull.


ATB,

Mark.


The following changes since commit bc8995cafa0c36b9e4be682e9a60d59484b33500:

  Update version for v2.6.0-rc2 release (2016-04-14 17:30:28 +0100)

are available in the git repository at:

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

for you to fetch changes up to de5f1077446ca455342db149737bdc395a7b9882:

  target-sparc: fix Trap Based Address Register behavior for sparc64 
(2016-04-15 09:30:40 +0100)


qemu-sparc update


Artyom Tarasenko (2):
  target-sparc: fix Nucleus quad LDD 128 bit access for windowed registers
  target-sparc: fix Trap Based Address Register behavior for sparc64

 target-sparc/int64_helper.c |5 ++---
 target-sparc/ldst_helper.c  |   12 ++--
 2 files changed, 8 insertions(+), 9 deletions(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2016-04-11 Thread Peter Maydell
On 11 April 2016 at 16:39, Mark Cave-Ayland
 wrote:
> Hi Peter,
>
> This is a simple fix for the ldstub instruction to fix intermittent locking 
> errors in Solaris under qemu-system-sparc. Please pull.
>
>
> ATB,
>
> Mark.
>
>
> The following changes since commit dc1ffa66619b3661f17a309b0aa8d65d8d29583f:
>
>   Merge remote-tracking branch 
> 'remotes/pmaydell/tags/pull-target-arm-20160411' into staging (2016-04-11 
> 14:37:53 +0100)
>
> are available in the git repository at:
>
>
>   https://github.com/mcayland/qemu.git tags/qemu-sparc-signed
>
> for you to fetch changes up to 4553e10360a0713e31647220ed396942f9a6fca0:
>
>   target-sparc: fix ldstub sign-extension bug (2016-04-11 16:25:07 +0100)
>
> 
> qemu-sparc update
>
> 
> Mark Cave-Ayland (1):
>   target-sparc: fix ldstub sign-extension bug
>
>  target-sparc/translate.c |2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2016-04-11 Thread Mark Cave-Ayland
Hi Peter,

This is a simple fix for the ldstub instruction to fix intermittent locking 
errors in Solaris under qemu-system-sparc. Please pull.


ATB,

Mark.


The following changes since commit dc1ffa66619b3661f17a309b0aa8d65d8d29583f:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20160411' 
into staging (2016-04-11 14:37:53 +0100)

are available in the git repository at:


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

for you to fetch changes up to 4553e10360a0713e31647220ed396942f9a6fca0:

  target-sparc: fix ldstub sign-extension bug (2016-04-11 16:25:07 +0100)


qemu-sparc update


Mark Cave-Ayland (1):
  target-sparc: fix ldstub sign-extension bug

 target-sparc/translate.c |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2016-01-18 Thread Peter Maydell
On 16 January 2016 at 12:41, Mark Cave-Ayland
 wrote:
> Hi Peter,
>
> This is simply your VMStateDescription patchset for SPARC with appropriate
> SoBs added. Please pull.
>
>
> ATB,
>
> Mark.
>
>
> The following changes since commit 5a57acb66f19ee52723aa05b8afbbc41c3e9ec99:
>
>   Merge remote-tracking branch 
> 'remotes/pmaydell/tags/pull-target-arm-20160115' into staging (2016-01-15 
> 15:49:43 +)
>
> are available in the git repository at:
>
>
>   https://github.com/mcayland/qemu.git tags/qemu-sparc-signed
>
> for you to fetch changes up to 6d5322442a6904fef51a409ec40f2945581220d6:
>
>   target-sparc: Migrate CWP and PIL for SPARC64 (2016-01-16 12:01:23 +)
>
> 
> qemu-sparc update
>

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2016-01-16 Thread Mark Cave-Ayland
Hi Peter,

This is simply your VMStateDescription patchset for SPARC with appropriate
SoBs added. Please pull.


ATB,

Mark.


The following changes since commit 5a57acb66f19ee52723aa05b8afbbc41c3e9ec99:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20160115' 
into staging (2016-01-15 15:49:43 +)

are available in the git repository at:


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

for you to fetch changes up to 6d5322442a6904fef51a409ec40f2945581220d6:

  target-sparc: Migrate CWP and PIL for SPARC64 (2016-01-16 12:01:23 +)


qemu-sparc update


Juan Quintela (4):
  vmstate: introduce CPU_DoubleU arrays
  vmstate: Introduce VMSTATE_VARRAY_MULTPLY
  vmstate: define vmstate_info_uinttl
  target-sparc: Convert to VMStateDescription

Peter Maydell (4):
  target-sparc: Split cpu_put_psr into side-effect and no-side-effect parts
  target-sparc: Don't flush TLB in cpu_load function
  target-sparc: Use VMState arrays for SPARC64 TLB/MMU state
  target-sparc: Migrate CWP and PIL for SPARC64

 hw/sparc64/sun4u.c  |   24 ---
 include/hw/hw.h |2 +
 include/migration/vmstate.h |   18 +++
 migration/vmstate.c |   27 
 target-sparc/cpu-qom.h  |4 +
 target-sparc/cpu.c  |1 +
 target-sparc/cpu.h  |7 +-
 target-sparc/machine.c  |  370 ---
 target-sparc/win_helper.c   |   19 ++-
 9 files changed, 236 insertions(+), 236 deletions(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2016-01-07 Thread Mark Cave-Ayland
On 07/01/16 12:24, Mark Cave-Ayland wrote:

> Hi Peter,
> 
> Happy New Year! Here is the series from last year containing the sun4u timer 
> updates, please pull.
> 
> 
> Many thanks,
> 
> Mark.

Ah wait please ignore this - I accidentally ran the script to push to
the OpenBIOS branch by accident :(

Will resend shortly.


ATB,

Mark.




Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-09 Thread Mark Cave-Ayland
On 08/03/15 21:05, Alexander Graf wrote:

 Am 08.03.2015 um 17:03 schrieb Mark Cave-Ayland 
 mark.cave-ayl...@ilande.co.uk:

 On 08/03/15 20:48, Alexander Graf wrote:

 On 08.03.15 06:57, Mark Cave-Ayland wrote:
 On 08/03/15 10:31, Peter Maydell wrote:

 On 8 March 2015 at 19:04, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 On 08/03/15 09:47, Peter Maydell wrote:

 On 4 March 2015 at 15:20, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

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

 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?

 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.

 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.

 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.
 
 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.




Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-08 Thread Alexander Graf


On 08.03.15 06:57, Mark Cave-Ayland wrote:
 On 08/03/15 10:31, Peter Maydell wrote:
 
 On 8 March 2015 at 19:04, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 On 08/03/15 09:47, Peter Maydell wrote:

 On 4 March 2015 at 15:20, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

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

  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?

 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.

 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.

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


Alex



Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-08 Thread Alexander Graf



 Am 08.03.2015 um 17:03 schrieb Mark Cave-Ayland 
 mark.cave-ayl...@ilande.co.uk:
 
 On 08/03/15 20:48, Alexander Graf wrote:
 
 On 08.03.15 06:57, Mark Cave-Ayland wrote:
 On 08/03/15 10:31, Peter Maydell wrote:
 
 On 8 March 2015 at 19:04, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 On 08/03/15 09:47, Peter Maydell wrote:
 
 On 4 March 2015 at 15:20, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,
 
 Here are the updates from my qemu-sparc tree. Please pull.
 
 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?
 
 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.
 
 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.
 
 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.

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




Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-08 Thread Mark Cave-Ayland
On 08/03/15 20:48, Alexander Graf wrote:

 On 08.03.15 06:57, Mark Cave-Ayland wrote:
 On 08/03/15 10:31, Peter Maydell wrote:

 On 8 March 2015 at 19:04, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 On 08/03/15 09:47, Peter Maydell wrote:

 On 4 March 2015 at 15:20, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

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

  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?

 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.

 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.
 
 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.




Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-08 Thread Mark Cave-Ayland
On 08/03/15 09:47, Peter Maydell wrote:

 On 4 March 2015 at 15:20, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

 Here are the updates from my qemu-sparc tree. Please pull.
 
  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?

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.




Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-08 Thread Peter Maydell
On 4 March 2015 at 15:20, Mark Cave-Ayland
mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

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

  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



Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-08 Thread Peter Maydell
On 8 March 2015 at 19:04, Mark Cave-Ayland
mark.cave-ayl...@ilande.co.uk wrote:
 On 08/03/15 09:47, Peter Maydell wrote:

 On 4 March 2015 at 15:20, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

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

  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?

 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.

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



Re: [Qemu-devel] [PULL] qemu-sparc update

2015-03-08 Thread Mark Cave-Ayland
On 08/03/15 10:31, Peter Maydell wrote:

 On 8 March 2015 at 19:04, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 On 08/03/15 09:47, Peter Maydell wrote:

 On 4 March 2015 at 15:20, Mark Cave-Ayland
 mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

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

  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?

 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.
 
 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.




[Qemu-devel] [PULL] qemu-sparc update

2015-03-03 Thread Mark Cave-Ayland
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 +)

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 +)


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(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2015-01-22 Thread Peter Maydell
On 21 January 2015 at 17:06, Mark Cave-Ayland
mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

 This is mainly to apply your outstanding clang warning patches. Please pull.


 ATB,

 Mark.


 The following changes since commit 699eae17b841e6784dc3864bf357e26bff1e9dfe:

   Merge remote-tracking branch 'remotes/pmaydell/tags/pull-misc-20150120' 
 into staging (2015-01-20 16:19:58 +)

 are available in the git repository at:


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

 for you to fetch changes up to 7230818a2b54df826e5ecdd83bd20632c9a8b07c:

   disas/sparc: Remove unused data sparc_opcode_archs[] (2015-01-21 16:18:01 
 +)

 
 qemu-sparc update

 

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2015-01-21 Thread Mark Cave-Ayland
Hi Peter,

This is mainly to apply your outstanding clang warning patches. Please pull.


ATB,

Mark.


The following changes since commit 699eae17b841e6784dc3864bf357e26bff1e9dfe:

  Merge remote-tracking branch 'remotes/pmaydell/tags/pull-misc-20150120' into 
staging (2015-01-20 16:19:58 +)

are available in the git repository at:


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

for you to fetch changes up to 7230818a2b54df826e5ecdd83bd20632c9a8b07c:

  disas/sparc: Remove unused data sparc_opcode_archs[] (2015-01-21 16:18:01 
+)


qemu-sparc update


Peter Maydell (5):
  target-sparc: Remove unused gen_op_subi_cc and gen_op_addi_cc
  target-sparc: address_mask(), asi_address_mask() are TARGET_SPARC64 only
  target-sparc: is_translating_asi() is TARGET_SPARC64 only
  target-sparc: Mark gen_load_trap_state_at_tl() as !CONFIG_USER_ONLY
  disas/sparc: Remove unused data sparc_opcode_archs[]

 disas/sparc.c  |   32 
 target-sparc/ldst_helper.c |   10 +-
 target-sparc/translate.c   |   26 ++
 3 files changed, 7 insertions(+), 61 deletions(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2014-09-24 Thread Peter Maydell
On 23 September 2014 15:11, Mark Cave-Ayland
mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

 This update contains the TCX framebuffer hardware acceleration patch for 
 sun4m. Please pull.


 ATB,

 Mark.


 The following changes since commit 769188d3bbf95ce8d96a335624234dad083f4db6:

   Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20140923-1' into 
 staging (2014-09-23 14:43:47 +0100)

 are available in the git repository at:


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

 for you to fetch changes up to 55d7bfe2293c854a1ddb54ca00672b7b8e3eebbb:

   tcx: Implement hardware acceleration (2014-09-23 22:23:14 +0100)

 
 tcx: Implement hardware acceleration

 

Applied, thanks.

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2014-09-23 Thread Mark Cave-Ayland
Hi Peter,

This update contains the TCX framebuffer hardware acceleration patch for sun4m. 
Please pull.


ATB,

Mark.


The following changes since commit 769188d3bbf95ce8d96a335624234dad083f4db6:

  Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20140923-1' into 
staging (2014-09-23 14:43:47 +0100)

are available in the git repository at:


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

for you to fetch changes up to 55d7bfe2293c854a1ddb54ca00672b7b8e3eebbb:

  tcx: Implement hardware acceleration (2014-09-23 22:23:14 +0100)


tcx: Implement hardware acceleration


Mark Cave-Ayland (1):
  tcx: Implement hardware acceleration

 hw/display/tcx.c |  677 --
 hw/sparc/sun4m.c |   56 +++--
 2 files changed, 596 insertions(+), 137 deletions(-)



Re: [Qemu-devel] [PULL] qemu-sparc update

2014-09-09 Thread Peter Maydell
On 9 September 2014 06:25, Mark Cave-Ayland
mark.cave-ayl...@ilande.co.uk wrote:
 Hi Peter,

 I've just updated my qemu-sparc branch with an implementation of the apb PCI 
 error registers. Please pull.

Applied, thanks.

PS: either your key hasn't made it to the keyservers yet,
or you failed to send it to them correctly:

e104462:trusty:qemu-for-merges$ gpg --recv-keys AE0F321F
gpg: requesting key AE0F321F from hkp server keys.gnupg.net
gpgkeys: key AE0F321F can't be retrieved

-- PMM



[Qemu-devel] [PULL] qemu-sparc update

2014-09-08 Thread Mark Cave-Ayland
Hi Peter,

I've just updated my qemu-sparc branch with an implementation of the apb PCI 
error registers. Please pull.


ATB,

Mark. 


The following changes since commit 1bc0e405816c9c6bde5695af20b07a1491ce1f9f:

  Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into 
staging (2014-09-08 13:14:41 +0100)

are available in the git repository at:


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

for you to fetch changes up to de739df8e0032d441a57ec1a8f9ab8e9bf72cef0:

  apb: implement PCI bus error interrupt map registers (2014-09-09 06:07:12 
+0100)


apb: implement PCI bus error interrupt map registers


Mark Cave-Ayland (1):
  apb: implement PCI bus error interrupt map registers

 hw/pci-host/apb.c |   15 +--
 1 file changed, 13 insertions(+), 2 deletions(-)