Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-20 Thread Mike Russo
> Using the proprietary firmware for this would be ideal. It would also > provide reliable access to the kernel debugger which would be > extremely > helpful for diagnosing what's going wrong with the console. I'm not > sure how I would go about making progress on this though. I know there > are

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-17 Thread jasper.lowell
> Great progress! Are you planning to contribute your escc2 to the > upstream? I would like to. While it didn't solve the console difficulties on OpenSolaris variants, it's probably still a good idea to increment Sun4u emulation towards being more faithful to hardware. It will take me a few weeks

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-17 Thread Artyom Tarasenko
On Sun, May 17, 2020 at 9:57 AM wrote: > > I've written up a basic implementation of the SAB 82532 ESCC2 device > and have written a patch for OpenBIOS to add it to the device tree. I > still have the 16550A UART acting as ttya to avoid having to write an > OpenBIOS device driver. Great

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-17 Thread jasper.lowell
I've written up a basic implementation of the SAB 82532 ESCC2 device and have written a patch for OpenBIOS to add it to the device tree. I still have the 16550A UART acting as ttya to avoid having to write an OpenBIOS device driver. OpenBSD and Solaris both identify the device correctly and

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-10 Thread Mark Cave-Ayland
On 10/05/2020 03:46, jasper.low...@bt.com wrote: > Good idea. > > The ESCC device looks like it's written as a sysbus device. I think the > Ultra 5 has no devices on the root sabre bus. The serial controller is > behind the ebus (essentially isa). I'm guessing I would need to write a > wrapper

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-09 Thread jasper.lowell
Good idea. The ESCC device looks like it's written as a sysbus device. I think the Ultra 5 has no devices on the root sabre bus. The serial controller is behind the ebus (essentially isa). I'm guessing I would need to write a wrapper device around the memory io functions so that it can be used

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-08 Thread Artyom Tarasenko
On Fri, May 8, 2020 at 10:51 AM Peter Tribble wrote: > > I see the same behaviour as reported here when booting current SPARC illumos > (illumos is the ongoing fork of OpenSolaris) under qemu - looks like it's > booted > up fine, but I can't type anything on the console. There is one more

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-08 Thread Peter Tribble
I see the same behaviour as reported here when booting current SPARC illumos (illumos is the ongoing fork of OpenSolaris) under qemu - looks like it's booted up fine, but I can't type anything on the console. While I'm an illumos developer, and maintain it on SPARC, I'm unfamiliar with most of

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-07 Thread jasper.lowell
> I don't know anything about this chip so don't know if it helps but > if > it's any way similar to ESCC (and the ESCC2 name is not just > marketing) > then there's some emulation of that in hw/char/escc.c that you may > want to > look at. From what I can tell, the SAB 82532 is a bit more

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-07 Thread jasper.lowell
There are two different drivers for the 16550A in OpenSolaris. There is a generic driver in /usr/src/uts/common/io/asy.c. This driver clearly states in comments that it is assigning the device to tty[a-d]. It's really obvious to me that there is support in this driver for using the device for a

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-07 Thread BALATON Zoltan
On Thu, 7 May 2020, jasper.low...@bt.com wrote: I've started work on emulating the SAB 82532 ESSC2 but it's unfortunately way more complex than than the 16550A. For instance, it's I don't know anything about this chip so don't know if it helps but if it's any way similar to ESCC (and the

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-07 Thread Artyom Tarasenko
On Thu, May 7, 2020 at 4:29 PM wrote: > > Just thought I'd chime in with an update. > > We are currently emulating a 16550A UART. The guest sees this as the SU > device, referring to the SuperIO port (a pair of 16550A UARTs). On the > Ultra 5, the machine that Sun4u is modelled against, SuperIO

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-05-07 Thread jasper.lowell
Just thought I'd chime in with an update. We are currently emulating a 16550A UART. The guest sees this as the SU device, referring to the SuperIO port (a pair of 16550A UARTs). On the Ultra 5, the machine that Sun4u is modelled against, SuperIO was used for the keyboard and mouse. The Ultra 5

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-29 Thread BALATON Zoltan
On Fri, 28 Feb 2020, BALATON Zoltan wrote: I think I now understand the problem with via-ide at least and the following FYI, I came up with this patch: http://patchwork.ozlabs.org/project/qemu-devel/list/?series=161714 that fixes my problem with via-ide. The first patch also touches CMD646

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-28 Thread BALATON Zoltan
On Wed, 19 Feb 2020, BALATON Zoltan wrote: On Wed, 19 Feb 2020, BALATON Zoltan wrote: faster or doing something differently? Does someone know what interrupts are generated on real hardware in DMA mode so we can compare that to what we see with QEMU? The document Programming Interface for

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-25 Thread BALATON Zoltan
On Mon, 10 Feb 2020, BALATON Zoltan wrote: This suggests the common IDE bmdma and ide-cd code is likely OK and problem is somewhere in irq routing. What's relevant for this thread and sparc64 is that then you should also check interrupt controller and routing if an interrupt raised by the IDE

Re: IDE IRQ problem after UDMA enabled (was: Re: Emulating Solaris 10 on SPARC64 sun4u)

2020-02-25 Thread BALATON Zoltan
On Tue, 25 Feb 2020, BALATON Zoltan wrote: On Mon, 10 Feb 2020, John Snow wrote: It sounds like the real problem is either in the bmdma controller (or its unique interaction with hw/ide/core.c -- which is possible) or in the interrupt routing somewhere else. If you have any IDE traces from a

IDE IRQ problem after UDMA enabled (was: Re: Emulating Solaris 10 on SPARC64 sun4u)

2020-02-25 Thread BALATON Zoltan
Hello, On Mon, 10 Feb 2020, John Snow wrote: It sounds like the real problem is either in the bmdma controller (or its unique interaction with hw/ide/core.c -- which is possible) or in the interrupt routing somewhere else. If you have any IDE traces from a hang, feel free to throw them up on a

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-02-21 Thread Dr. David Alan Gilbert
* BALATON Zoltan (bala...@eik.bme.hu) wrote: > On Wed, 19 Feb 2020, BALATON Zoltan wrote: > > faster or doing something differently? Does someone know what interrupts > > are generated on real hardware in DMA mode so we can compare that to > > what we see with QEMU? > > The document Programming

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-19 Thread BALATON Zoltan
On Wed, 19 Feb 2020, BALATON Zoltan wrote: faster or doing something differently? Does someone know what interrupts are generated on real hardware in DMA mode so we can compare that to what we see with QEMU? The document Programming Interface for Bus Master IDE Controller, Revision 1.0

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-19 Thread BALATON Zoltan
On Wed, 19 Feb 2020, jasper.low...@bt.com wrote: When configuring devices, Solaris 10 uses the SET_FEATURE command on the CMD646 to set the transfer mode to MDMA mode. From what I can tell, this is successful and the emulated IDE controller raises an interrupt acknowledging that the command

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-18 Thread jasper.lowell
_CH1 is set despite two previous reads of the status register? Thanks, Jasper Lowell. -Original Message- From: Mark Cave-Ayland Sent: Sunday, 9 February 2020 10:26 PM To: Lowell,J,Jasper,VIM R ; qemu-devel@nongnu.org Cc: atar4q...@gmail.com Subject: Re: Emulating Solaris 10 on SPARC64

Missing IRQ with bmdma on ppc/mips/sparc? (was: Re: Emulating Solaris 10 on SPARC64 sun4u)

2020-02-10 Thread BALATON Zoltan
I've changed title to avoid derailing the original thread as this is more about pegasos2 issue now but left cc list for now. Let me know if you don't want to be cc'd. On Mon, 10 Feb 2020, John Snow wrote: On 2/10/20 10:38 AM, BALATON Zoltan wrote: On Sat, 8 Feb 2020, BALATON Zoltan wrote:

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-02-10 Thread John Snow
On 2/10/20 10:38 AM, BALATON Zoltan wrote: > On Sat, 8 Feb 2020, BALATON Zoltan wrote: >> Not sure if my problem I see on other machine emulation I'm working on >> is related at all but there's a possibility it might be. I got this >> with different arch (ppc but could also reproduce something

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-10 Thread BALATON Zoltan
On Sat, 8 Feb 2020, BALATON Zoltan wrote: Not sure if my problem I see on other machine emulation I'm working on is related at all but there's a possibility it might be. I got this with different arch (ppc but could also reproduce something similar with mips) and ide controller emulation

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-02-09 Thread Mark Cave-Ayland
On 05/02/2020 06:31, jasper.low...@bt.com wrote: > I'm currently working towards emulating Solaris 10 on sun4u. > >   > > The Solaris 10 ISO image I am attempting to boot is the one from the Oracle > > download page at >

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-07 Thread BALATON Zoltan
` to continue, the system hangs completely. Thanks, Lowell. -Original Message- From: Dr. David Alan Gilbert Sent: Thursday, 6 February 2020 4:33 AM To: Lowell,J,Jasper,VIM R Cc: qemu-devel@nongnu.org; mark.cave-ayl...@ilande.co.uk; atar4q...@gmail.com Subject: Re: Emulating Solaris 10 on SPARC64

RE: Emulating Solaris 10 on SPARC64 sun4u

2020-02-06 Thread jasper.lowell
; atar4q...@gmail.com Subject: Re: Emulating Solaris 10 on SPARC64 sun4u * jasper.low...@bt.com (jasper.low...@bt.com) wrote: > I'm currently working towards emulating Solaris 10 on sun4u. > > The Solaris 10 ISO image I am attempting to boot is the one from the > Oracle download page

Re: Emulating Solaris 10 on SPARC64 sun4u

2020-02-05 Thread Dr. David Alan Gilbert
* jasper.low...@bt.com (jasper.low...@bt.com) wrote: > I'm currently working towards emulating Solaris 10 on sun4u. > > The Solaris 10 ISO image I am attempting to boot is the one from the Oracle > download page at >

Emulating Solaris 10 on SPARC64 sun4u

2020-02-05 Thread jasper.lowell
I'm currently working towards emulating Solaris 10 on sun4u. The Solaris 10 ISO image I am attempting to boot is the one from the Oracle download page at https://www.oracle.com/solaris/solaris10/downloads/solaris10-get-jsp-downloads.html. Image: sol-10-u11-ga-sparc-dvd.iso MD5: