Subject: Re: buggy bios or pnpbios problem?
To: Matthias Drochner <M.Drochner@fz-juelich.de>
From: Castor Fu <castor@geocast.com>
List: port-i386
Date: 11/30/1999 10:00:00
> castor@geocast.com said:
> > it looks almost as if the count of nodes returned should correspond to
> > the node index, but it's one too high for that.
> 
> The node indices are not necessarily contigous. It's an
> iterator-like thing. So this shouldn't be the cause of
> your problems.
> What does your debug output mean? Does it die during the
> BIOS call?
> I'll append an untested patch which should catch a possible BIOS
> inconsistency. It might help or not...

I tried your patch, and it doesn't seem to help.  The debug printf's
are before and after to calls to pnpbioscall().  I threw in a little
more code to specify which idx it's using, but it just shows
idx running up to 20.  

Are there restrictions on when the BIOS can be called which we might
be violating, like something is already configured, or its 
configuration is not registered?

	-castor

pnpbios0 at mainbus0: code f0000, data 400, entry b358
pnpbios0: 17 nodes, max len 210
bios idx 0::return 0
PNP0C02 (mem fff80000-ffffffff fff7f600-fff7ffff, io 398-399 4d0-4d1 8000-804f 1040-104f 10-18 1f 24-25 28-29 2c-2d 30-31 34-35 38-39 3c-3d 50-52 72-77 80 90-9f a4-a5 a8-a9 ac-ad b0-bd) at pnpbios0 index 0 ignored
bios idx 1::return 0
PNP0C01 (mem 0-9ffff e8000-fffff 100000-3ffffff) at pnpbios0 index 1 ignored
bios idx 2::return 0
PNP0200 (io 0-f 81-8f c0-df, dma 4) at pnpbios0 index 2 ignored
bios idx 3::return 0
PNP0000 (io 20-21 a0-a1, irq 2) at pnpbios0 index 3 ignored
bios idx 4::return 0
PNP0100 (io 40-43, irq 0) at pnpbios0 index 4 ignored
bios idx 5::return 0
PNP0B00 (io 70-71, irq 8) at pnpbios0 index 5 ignored
bios idx 6::return 0
PNP0303 (io 60 64, irq 1) at pnpbios0 index 6 ignored
bios idx 7::return 0
PNP0C04 (io f0-ff, irq 13) at pnpbios0 index 7 ignored
bios idx 8::return 0
PNP0800 (io 61) at pnpbios0 index 8 ignored
bios idx 9::return 0
PNP0A03 (io cf8-cff) at pnpbios0 index 9 ignored
bios idx 10::return 0
ignoring long tag 5
PNP0C02 () at pnpbios0 index 10 ignored
bios idx 11::return 0
PNP0C02 (mem 0 0 0 0 0 0) at pnpbios0 index 11 ignored
bios idx 12::return 0
PNP0E03, PNP0E00 (io 3e0-3e1) at pnpbios0 index 12 ignored
bios idx 14::return 0
PNP0501 (io 3f8-3ff, irq 4) at pnpbios0 index 14 ignored
bios idx 15::return 0
sNY7001, PNP0510, NSC6001 (io 3e8-3ef, irq 10, dma 0) at pnpbios0 index 15 ignored
bios idx 18::return 0
PNP0401 (io 378-37f 778-77f, irq 7, dma 3) at pnpbios0 index 18 ignored
bios idx 20::NetBSD 1.4O (VAIO) #14: Sun Nov 28 15:41:21 PST 1999
    root@vile.egocast.com:/mnt/src/sys/arch/i386/compile/VAIO