All of lore.kernel.org
 help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] LSI53C895A,	IDE HDD detection under SCO OpenServer 5.0.5
Date: Tue, 04 Nov 2008 16:57:37 +0900	[thread overview]
Message-ID: <49100071.5090002@postnewspapers.com.au> (raw)
In-Reply-To: <490FC479.7090600@postnewspapers.com.au>

Craig Ringer wrote:
> Justin Chevrier wrote:
>
>> The attached patch gets Openserver 5.0.5 past the hardware detection
>> (and it lists the hard drive to boot, woohoo). It appears to stop a little 
>> while later (doesn't seem SCSI related), but it's been so long since I've 
>> booted Openserver I'm not sure what's supposted to happen after the HW 
>> detection using the boot/root disks.
> 
> I'll try your changes and test from there. I have an image of an
> existing, working OpenServer install that I can try to boot by using
> "link=slha" on the boot command line and see how I go, and there's the
> install CD to test with as well.

OK, initial results:

With OpenServer 5.0.5 and slha driver version 4.11.00 (as a BTLD), the
controller is not probed (beyond some poking into its PCI config space)
unless the PCI latency on the device is set to non-zero, so I need to
reapply the latency change to the default PCI config that was in my
original patch.

The driver also accesses register 0x46, so I need to implement the
register read for that (it just returns 0x0f, which seems like how the
hardware should always respond in this case according to the docs). This
looks like a pretty simple, safe and sensible change.

It looks like the OS & driver version I'm using must behave very
differently to the one Justin Chevrier is working with, since he was
able to get it to boot with only the changes he posted whereas
OpenServer 5.0.5 with slha 4.11.00 won't even touch the controller
registers until the PCI latency is changed.



Anyway, once I add support for reading register 0x46 it fails shortly
after because it tries to write to register 0x1a (which is read only
except for bit 3, PCICIE). If I ignore any writes that don't attempt to
set bit 3, which is always reported as clear, execution continues for
quite some time and it appears to be enumerating LUNs, etc.

After poking at LUNs 0 - 7, doing ... something ...., it returns to
accessing LUN 0. At this point it's falling flat deep in some SCRIPTS
code. I'm still trying to figure out exactly what is going on at this
point, since it seems to be jumping into uninitialized system memory and
running garbage at some point, but I haven't been able to trace back to
why yet.

Before going completely insane it does things like a LOAD from
0x00000000 into register 0x64 then STOREs that into system memory at
0x0101e080 - I'm not sure if this might serve any purpose or if it's in
the early(?) stages of it executing garbage. I suspect the latter.




So, anyway, ... what I'm seeing with OpenServer 5.0.5 and the slha BTLD
is very different to what Justin Chevrier is encountering.

Justin, are you able to find out the exact version of OpenServer and the
slha driver that you are using? Are you booting from CD (or CD image),
or are you booting a copy installed on the hard disk? Are you using a
BTLD for the slha driver?

If you're not using the latest slha BTLD from DPT it'd be really helpful
if you could give it a go and see how it goes. Just launch qemu with the
extra argument "-fda /path/to/btld/floppy/image" and at the boot: prompt
enter "defbootstr link=slha" and press enter. If it asks you to replace
existing symbols, enter the numbers it suggests; on my 5.0.5 system
those are 28 and 2, but if there's an existing slha driver to replace
it'll tell you where it's linked into on your image.


--
Craig Ringer

  reply	other threads:[~2008-11-04  7:58 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-04  3:21 [Qemu-devel] LSI53C895A, IDE HDD detection under SCO OpenServer 5.0.5 Justin Chevrier
2008-11-04  3:41 ` Craig Ringer
2008-11-04  7:57   ` Craig Ringer [this message]
2008-11-10  1:31 ` andrzej zaborowski
2008-11-10  6:19   ` Craig Ringer
  -- strict thread matches above, loose matches on Subject: below --
2008-11-14 20:50 Justin Chevrier
2008-11-14 22:13 ` Laurent Vivier
2008-11-17  0:44   ` Justin Chevrier
2008-11-04 13:30 Justin Chevrier
2008-11-06 12:51 ` Craig Ringer
2008-11-06 13:36   ` Justin Chevrier
2008-11-07  9:26     ` Craig Ringer
2008-11-07 11:46       ` Craig Ringer
2008-11-10 15:04       ` Justin Chevrier
2008-11-04 12:58 Justin Chevrier
2008-11-05  3:02 ` Craig Ringer
2008-10-29 19:39 Justin Chevrier
2008-10-29 18:16 Justin Chevrier
2008-10-29  9:25 Craig Ringer
2008-10-29 15:38 ` Craig Ringer

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=49100071.5090002@postnewspapers.com.au \
    --to=craig@postnewspapers.com.au \
    --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 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.