qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: BALATON Zoltan <balaton@eik.bme.hu>
To: jasper.lowell@bt.com
Cc: John Snow <jsnow@redhat.com>,
	mark.cave-ayland@ilande.co.uk, dgilbert@redhat.com,
	atar4qemu@gmail.com, qemu-devel@nongnu.org
Subject: RE: Emulating Solaris 10 on SPARC64 sun4u
Date: Sat, 8 Feb 2020 01:03:11 +0100 (CET)	[thread overview]
Message-ID: <alpine.BSF.2.22.395.2002080030360.88696@zero.eik.bme.hu> (raw)
In-Reply-To: <LO2P123MB22710F9D590E023381119FAB831C0@LO2P123MB2271.GBRP123.PROD.OUTLOOK.COM>

Hello,

On Fri, 7 Feb 2020, jasper.lowell@bt.com wrote:
> I haven't figured out where that is coming from.
> The error doesn't look like it's in the OpenSolaris source code so I don't have any context behind it.
> The error does show up here: https://docs.oracle.com/cd/E23824_01/html/821-1475/uata-7d.html so it might be related to the IDE controller.
> The behaviour of Solaris 10 does make me think there is a problem with interrupts but OpenBSD works just fine on this architecture.

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 (via-ide) but the PCI bmdma code is shared by 
CMD646, via-ide and sii3112 and also the ide-cdrom emulation is the same 
so if there's a bug in these that could cause similar problems for 
different components. Or it could be that we get similar symptoms due to 
different reasons in which case sorry for the distracion but maybe we can 
learn from the experience of each other even in that case.

What I get is tracked here:

https://osdn.net/projects/qmiga/ticket/38949

(background on emulated machine: https://osdn.net/projects/qmiga/wiki/SubprojectPegasos2 )

Originally I had both Linux and MorphOS fail after enabling BMDMA before I 
had interrupt controller emulation (so that means it could be a problem 
with that in your case as well so something to check). Now that I've 
implemented interrupts Linux boots with DMA from CDROM but MorphOS is 
still not happy. You saw OpenBSD work but Solaris not so that could be 
similar in case the drivers do something differently or one relies on 
something the other does not care about. It could also be that since Linux 
is working, BMDMA and/or ide-cdrom may not emulate something other drivers 
may need which could cause simlar problems on multiple archs/emulations 
but I could be wrong about that.

An advice I got before to debug this is to try enabling ide traces:

https://lists.nongnu.org/archive/html/qemu-devel/2019-03/msg05656.html

I've tried that but lacking detailed knowledge about ide controllers I 
could not make much sense of the results so far.

Not sure how much help this is but maybe if more people are looking at it 
we might find something out. I've cc'd the IDE maintainer in case he has 
something more useful to add.

Regards,
BALATON Zoltan

> I've also tried using kmdb (Solaris kernel debugger) by running using `boot cdrom -kvd` at the OpenBIOS prompt.
> I thought this might help diagnose the problem.
> After the kernel debugger prompt occurs and I type `::cont` to continue, the system hangs completely.
>
> Thanks,
> Lowell.
>
> -----Original Message-----
> From: Dr. David Alan Gilbert <dgilbert@redhat.com>
> Sent: Thursday, 6 February 2020 4:33 AM
> To: Lowell,J,Jasper,VIM R <jasper.lowell@bt.com>
> Cc: qemu-devel@nongnu.org; mark.cave-ayland@ilande.co.uk; atar4qemu@gmail.com
> Subject: Re: Emulating Solaris 10 on SPARC64 sun4u
>
> * jasper.lowell@bt.com (jasper.lowell@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 https://www.oracle.com/solaris/solaris10/downloads/solaris10-get-jsp-downloads.html.
>> Image: sol-10-u11-ga-sparc-dvd.iso
>> MD5:   53e8b066f7f250ce2fd2cef063f8072b
>>
>> I am using QEMU commit 7bd9d0a9e26c7a3c67c0f174f0009ba19969b158.
>>
>> The command I am using to run QEMU is:
>> ./qemu/sparc64-softmmu/qemu-system-sparc64 -bios
>> ./openbios/obj-sparc64/openbios-builtin.elf -cdrom
>> ./iso/solaris/sol-10-u11-ga-sparc-dvd.iso -boot d -nographic -m 3G
>>
>> ```
>> CPUs: 1 x SUNW,UltraSPARC-IIi
>> UUID: 00000000-0000-0000-0000-000000000000
>> Welcome to OpenBIOS v1.1 built on Feb 5 2020 19:15
>>   Type 'help' for detailed information Trying cdrom:f...
>> Not a bootable ELF image
>> Not a bootable a.out image
>>
>> Loading FCode image...
>> Loaded 7420 bytes
>> entry point is 0x4000
>> Evaluating FCode...
>> Evaluating FCode...
>> Ignoring failed claim for va 1000000 memsz af6d6!
>> Ignoring failed claim for va 1402000 memsz 4dcc8!
>> Ignoring failed claim for va 1800000 memsz 510c8!
>> SunOS Release 5.10 Version Generic_147147-26 64-bit Copyright (c)
>> 1983, 2013, Oracle and/or its affiliates. All rights reserved.
>> could not find debugger-vocabulary-hook>threads:interpret: exception
>> -13 caught interpret \ Copyright (c) 1995-1999 by Sun Microsystems, Inc.
>> \ All rights reserved.
>> \
>> \ ident "@(#)data64.fth  1.3     00/07/17 SMI"
>>
>> hex
>>
>> only forth also definitions
>> vocabulary kdbg-words
>> also kdbg-words definitions
>>
>> defer p@
>> defer p!
>> ['] x@ is p@
>> ['] x! is p!
>>
>> 8 constant ptrsize
>>
>> d# 32 constant nbitsminor
>> h# ffffffff constant maxmin
>> \
>> \ Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
>> \ Use is subject to license terms.
>> \
>>
>> \ #pragma ident  "@(#)kdbg.fth    1.20    08/06/06 SMI"
>>
>> h# 7ff constant v9bias
>> h# unix-tte:interpret: exception -13 caught interpret ' unix-tte is
>> va>tte-data failed with error ffffffffffffffed
>> WARNING: consconfig: cannot find driver for screen device
>> /pci@1fe,0/pci@1,1/QEMU,VGA@2 Configuring devices.
>> WARNING: Interrupt not seen after set_features
>
> GIven that your problem below is looking like an interrupt related problem, have you figured out where that's coming from?
>
> Dave
>
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
>
>
>


  reply	other threads:[~2020-02-08  0:03 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-05  6:31 Emulating Solaris 10 on SPARC64 sun4u jasper.lowell
2020-02-05 17:33 ` Dr. David Alan Gilbert
2020-02-07  5:43   ` jasper.lowell
2020-02-08  0:03     ` BALATON Zoltan [this message]
2020-02-10 15:38       ` BALATON Zoltan
2020-02-10 19:04         ` John Snow
2020-02-10 22:32           ` Missing IRQ with bmdma on ppc/mips/sparc? (was: Re: Emulating Solaris 10 on SPARC64 sun4u) BALATON Zoltan
2020-02-25 20:55           ` IDE IRQ problem after UDMA enabled " BALATON Zoltan
2020-02-25 22:00             ` BALATON Zoltan
2020-02-25 22:12         ` Emulating Solaris 10 on SPARC64 sun4u BALATON Zoltan
2020-02-09 11:26 ` Mark Cave-Ayland
2020-02-19  3:42   ` jasper.lowell
2020-02-19 18:54     ` BALATON Zoltan
2020-02-19 20:10       ` BALATON Zoltan
2020-02-21 19:53         ` Dr. David Alan Gilbert
2020-02-28 22:05         ` BALATON Zoltan
2020-03-01  0:15           ` BALATON Zoltan
2020-05-07 14:29   ` jasper.lowell
2020-05-07 15:02     ` Artyom Tarasenko
2020-05-08  2:33       ` jasper.lowell
2020-05-08  8:51         ` Peter Tribble
2020-05-08 13:45           ` Artyom Tarasenko
2020-05-10  2:46             ` jasper.lowell
2020-05-10  9:22               ` Mark Cave-Ayland
2020-05-17  7:57                 ` jasper.lowell
2020-05-17 12:37                   ` Artyom Tarasenko
2020-05-18  2:56                     ` jasper.lowell
2020-05-20 17:44                       ` Mike Russo
2020-05-07 18:54     ` BALATON Zoltan
2020-05-08  2:55       ` jasper.lowell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.BSF.2.22.395.2002080030360.88696@zero.eik.bme.hu \
    --to=balaton@eik.bme.hu \
    --cc=atar4qemu@gmail.com \
    --cc=dgilbert@redhat.com \
    --cc=jasper.lowell@bt.com \
    --cc=jsnow@redhat.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).