All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] qemu-sparc updates
@ 2015-02-14  9:32 Mark Cave-Ayland
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 1/3] doc: minor updates to SPARC32 and SPARC64 documentation Mark Cave-Ayland
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mark Cave-Ayland @ 2015-02-14  9:32 UTC (permalink / raw)
  To: qemu-devel, atar4qemu; +Cc: Mark Cave-Ayland

Here is the current contents of my qemu-sparc queue coming up to soft freeze.

Note the NVRAM changes are currently blocked on mutiple outstanding patchsets
summarised below:

1) isa: remove isa_mem_base variable
- Currently queued in Leon's target-mips tree

2) timer/m48t59: QOM'ify
- Should be picked up by Andreas via the QOM tree?
  http://lists.gnu.org/archive/html/qemu-devel/2015-02/msg00793.html

3) m48t59: add year offset and sysbus device
- Updated v3 posted by me this morning (no current owner)
  http://lists.gnu.org/archive/html/qemu-devel/2015-02/msg02793.html

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>

Mark Cave-Ayland (3):
  doc: minor updates to SPARC32 and SPARC64 documentation
  MAINTAINERS: add myself as SPARC maintainer
  sun4u: switch m48t59 NVRAM to MMIO access

 MAINTAINERS        |    3 +++
 hw/sparc64/sun4u.c |   10 ++++++++--
 qemu-doc.texi      |    7 ++++---
 3 files changed, 15 insertions(+), 5 deletions(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 1/3] doc: minor updates to SPARC32 and SPARC64 documentation
  2015-02-14  9:32 [Qemu-devel] [PATCH 0/3] qemu-sparc updates Mark Cave-Ayland
@ 2015-02-14  9:32 ` Mark Cave-Ayland
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 2/3] MAINTAINERS: add myself as SPARC maintainer Mark Cave-Ayland
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 3/3] sun4u: switch m48t59 NVRAM to MMIO access Mark Cave-Ayland
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Cave-Ayland @ 2015-02-14  9:32 UTC (permalink / raw)
  To: qemu-devel, atar4qemu; +Cc: Mark Cave-Ayland

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
 qemu-doc.texi |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/qemu-doc.texi b/qemu-doc.texi
index aabe8df..f5b0dc4 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -2052,7 +2052,7 @@ firmware implementation. The goal is to implement a 100% IEEE
 
 A sample Linux 2.6 series kernel and ram disk image are available on
 the QEMU web site. There are still issues with NetBSD and OpenBSD, but
-some kernel versions work. Please note that currently older Solaris kernels
+most kernel versions work. Please note that currently older Solaris kernels
 don't work probably due to interface issues between OpenBIOS and
 Solaris.
 
@@ -2091,8 +2091,9 @@ Set the emulated machine type. Default is SS-5.
 
 Use the executable @file{qemu-system-sparc64} to simulate a Sun4u
 (UltraSPARC PC-like machine), Sun4v (T1 PC-like machine), or generic
-Niagara (T1) machine. The emulator is not usable for anything yet, but
-it can launch some kernels.
+Niagara (T1) machine. The Sun4u emulator is mostly complete, being
+able to run Linux, NetBSD and OpenBSD in headless (-nographic) mode. The
+Sun4v and Niagara emulators are still a work in progress.
 
 QEMU emulates the following peripherals:
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 2/3] MAINTAINERS: add myself as SPARC maintainer
  2015-02-14  9:32 [Qemu-devel] [PATCH 0/3] qemu-sparc updates Mark Cave-Ayland
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 1/3] doc: minor updates to SPARC32 and SPARC64 documentation Mark Cave-Ayland
@ 2015-02-14  9:32 ` Mark Cave-Ayland
  2015-02-25 11:39   ` Peter Maydell
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 3/3] sun4u: switch m48t59 NVRAM to MMIO access Mark Cave-Ayland
  2 siblings, 1 reply; 5+ messages in thread
From: Mark Cave-Ayland @ 2015-02-14  9:32 UTC (permalink / raw)
  To: qemu-devel, atar4qemu; +Cc: Peter Maydell, Mark Cave-Ayland

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
CC: Peter Maydell <peter.maydell@linaro.org>
---
 MAINTAINERS |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/MAINTAINERS b/MAINTAINERS
index 8c06739..7ef4879 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -159,6 +159,7 @@ F: hw/sh4/
 
 SPARC
 M: Blue Swirl <blauwirbel@gmail.com>
+M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
 S: Maintained
 F: target-sparc/
 F: hw/sparc/
@@ -518,11 +519,13 @@ SPARC Machines
 --------------
 Sun4m
 M: Blue Swirl <blauwirbel@gmail.com>
+M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
 S: Maintained
 F: hw/sparc/sun4m.c
 
 Sun4u
 M: Blue Swirl <blauwirbel@gmail.com>
+M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
 S: Maintained
 F: hw/sparc64/sun4u.c
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Qemu-devel] [PATCH 3/3] sun4u: switch m48t59 NVRAM to MMIO access
  2015-02-14  9:32 [Qemu-devel] [PATCH 0/3] qemu-sparc updates Mark Cave-Ayland
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 1/3] doc: minor updates to SPARC32 and SPARC64 documentation Mark Cave-Ayland
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 2/3] MAINTAINERS: add myself as SPARC maintainer Mark Cave-Ayland
@ 2015-02-14  9:32 ` Mark Cave-Ayland
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Cave-Ayland @ 2015-02-14  9:32 UTC (permalink / raw)
  To: qemu-devel, atar4qemu; +Cc: Mark Cave-Ayland

Real sun4u systems memory-map the NVRAM on the (ISA) ebus, so switch over to
MMIO from ioport access whilst setting the base year to 1968 as used by Sun
systems. This allows all SPARC64 OSs included in my tests to correctly detect
the NVRAM IC and read the hardware clock correctly upon boot.

Note that this also requires a corresponding OpenBIOS update to switch the
SPARC64 NVRAM accessors over from ioport to MMIO.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
 hw/sparc64/sun4u.c |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
index f607f00..e3314f3 100644
--- a/hw/sparc64/sun4u.c
+++ b/hw/sparc64/sun4u.c
@@ -612,7 +612,7 @@ pci_ebus_init1(PCIDevice *pci_dev)
                              0, 0x1000000);
     pci_register_bar(pci_dev, 0, PCI_BASE_ADDRESS_SPACE_MEMORY, &s->bar0);
     memory_region_init_alias(&s->bar1, OBJECT(s), "bar1", get_system_io(),
-                             0, 0x1000);
+                             0, 0x4000);
     pci_register_bar(pci_dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &s->bar1);
     return 0;
 }
@@ -825,6 +825,7 @@ static void sun4uv_init(MemoryRegion *address_space_mem,
     uint64_t initrd_addr, initrd_size, kernel_addr, kernel_size, kernel_entry;
     PCIBus *pci_bus, *pci_bus2, *pci_bus3;
     ISABus *isa_bus;
+    SysBusDevice *s;
     qemu_irq *ivec_irqs, *pbm_irqs;
     DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS];
     DriveInfo *fd[MAX_FD];
@@ -876,8 +877,13 @@ static void sun4uv_init(MemoryRegion *address_space_mem,
         fd[i] = drive_get(IF_FLOPPY, 0, i);
     }
     fdctrl_init_isa(isa_bus, fd);
-    nvram = m48t59_init_isa(isa_bus, 0x0074, NVRAM_SIZE, 2000, 59);
 
+    /* Map NVRAM into I/O (ebus) space */
+    nvram = m48t59_init(NULL, 0, 0, NVRAM_SIZE, 1968, 59);
+    s = SYS_BUS_DEVICE(nvram);
+    memory_region_add_subregion(get_system_io(), 0x2000,
+                                sysbus_mmio_get_region(s, 0));
+ 
     initrd_size = 0;
     initrd_addr = 0;
     kernel_size = sun4u_load_kernel(machine->kernel_filename,
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] [PATCH 2/3] MAINTAINERS: add myself as SPARC maintainer
  2015-02-14  9:32 ` [Qemu-devel] [PATCH 2/3] MAINTAINERS: add myself as SPARC maintainer Mark Cave-Ayland
@ 2015-02-25 11:39   ` Peter Maydell
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2015-02-25 11:39 UTC (permalink / raw)
  To: Mark Cave-Ayland; +Cc: QEMU Developers, Artyom Tarasenko

On 14 February 2015 at 18:32, Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk> wrote:
> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> CC: Peter Maydell <peter.maydell@linaro.org>
> ---
>  MAINTAINERS |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 8c06739..7ef4879 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -159,6 +159,7 @@ F: hw/sh4/
>
>  SPARC
>  M: Blue Swirl <blauwirbel@gmail.com>
> +M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>  S: Maintained
>  F: target-sparc/
>  F: hw/sparc/
> @@ -518,11 +519,13 @@ SPARC Machines
>  --------------
>  Sun4m
>  M: Blue Swirl <blauwirbel@gmail.com>
> +M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>  S: Maintained
>  F: hw/sparc/sun4m.c
>
>  Sun4u
>  M: Blue Swirl <blauwirbel@gmail.com>
> +M: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>  S: Maintained
>  F: hw/sparc64/sun4u.c

Acked-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-25 11:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-14  9:32 [Qemu-devel] [PATCH 0/3] qemu-sparc updates Mark Cave-Ayland
2015-02-14  9:32 ` [Qemu-devel] [PATCH 1/3] doc: minor updates to SPARC32 and SPARC64 documentation Mark Cave-Ayland
2015-02-14  9:32 ` [Qemu-devel] [PATCH 2/3] MAINTAINERS: add myself as SPARC maintainer Mark Cave-Ayland
2015-02-25 11:39   ` Peter Maydell
2015-02-14  9:32 ` [Qemu-devel] [PATCH 3/3] sun4u: switch m48t59 NVRAM to MMIO access Mark Cave-Ayland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.