Subject: Re: PCI mode probe [was Re: INSTALL kernel support]
To: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: current-users
Date: 12/11/1997 00:19:49
[ Apologies for the x86-centrism of this post. ]

Matthias Drochner wrote:
>> I'd be interested to test with and without PCI_PROBE_DONTKNOW-patched
>> install floppies under Connectix' Virtual PC 1.0.1 on a PowerMac
> 
> I've just put a (compressed) floppy image to
> zelof1.zel.kfa-juelich.de:/pub/NetBSD/netbsd-pcitest.fd.gz.
> 
> This is with a modified PCI probe but without
> "PCI_PROBE_DONTKNOW". The "DONTKNOW"
> can't be used anyway. It helps for Compaq but it makes
> the mode-1 probe too weak, as Manuel found with
> an old mode-2 machine.
> Connectix claims that they emulate a Triton, so I'm
> optimistic that it is sufficient.

Well, I tried this image under Virtual PC 1.0.1, and it's no-go on the PCI
MODE 1 detection:

NetBSD 1.3A (ZELZ26) #36: Sun Dec  7 13:41:24 MET 1997
    drochner@zelz26:/mnt/sys/arch/i386/compile/ZELZ26
cpu0: family 5 model 3 step 5
cpu0: ConnectixCPU  (586-class)
real mem  = 16384000
avail mem = 13410304
using 225 buffers containing 921600 bytes of memory
mainbus0 (root)
pci_mode_detect: mode 1 enable failed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pci0 at mainbus0 bus 0: configuration mode 2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
isa0 at mainbus0
lpt0 at isa0 port 0x378-0x37b irq 7
lptprobe: mask ff data 55 failed
lptprobe: mask ff data 55 failed
wdc1 at isa0 port 0x170-0x177 irq 15
npx0 at isa0 port 0xf0-0xff: error reporting broken; not using
vt0 at isa0 port 0x60-0x6f irq 1
vt0: generic, 80 col, color, 8 scr, mf2-kbd, [R3.32]
vt0: console
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: density unknown
Insert filesystem floppy and press return.

(I thought the installation floppy was an SSTO floppy with no need for
 a second floppy now?!?)

As a contrast, here's the output from an old July 7th 1.2G SSTO boot floppy
built with PCI_CONF_MODE forced to 1:

NetBSD 1.2G (INSTALL) #4: Fri Jul 18 12:08:20 BST 1997
    prlw1@quartz.newn.cam.ac.uk:/usr/src/sys/arch/i386/compile/INSTALL
cpu0: family 5 model 3 step 5
cpu0: ConnectixCPU  (586-class)
real mem  = 16384000
avail mem = 12464128
using 225 buffers containing 921600 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x8086 product 0x122d (rev. 0x00)
vendor 0x8086 product 0x122e (ISA bridge, revision 0x02) at pci0 dev 7 function
0 not configured
vendor 0x8086 product 0x1230 (IDE mass storage, interface 0x80, revision 0x02)
at pci0 dev 7 function 1 not configured
vendor 0x5333 product 0x88b0 (VGA display) at pci0 dev 8 function 0 not configured
de0 at pci0 dev 9 function 0 at irq 11
de0: 21041 [10Mb/s] pass 1.1
de0: address 00:05:9a:20:48:d1
isa0 at mainbus0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x378-0x37b irq 7
wdc1 at isa0 port 0x170-0x177 irq 15
npx0 at isa0 port 0xf0-0xff: error reporting broken; not using
pcprobe: reset error 3
pc0 at isa0 port 0x60-0x6f irq 1: color
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
fd1 at fdc0 drive 1: density unknown
biomask 8040 netmask 8840 ttymask 88c2
md0: internal 1537K image area
boot device: fd0
root on md0a dumps on md0b
de0: enabling 10baseT port
root file system type: ffs
Enter pathname of shell or RETURN for sh:

This is a rather distressing step backwards.  In addition to not seeing
the emulated PCI bus devices under Mode 1, it also doesn't find the 2
serial ports (com0 and com1)!!!  I never had that problem occur with any
of the test 1.2/1.2.1/1.2A/1.2D/1.2G installation floppies I've tried under
Virtual PC ...  :-(

Next idea, Matthias?

	- Greg
	  (Who would luvvv to see 1.3 install cleanly under Virtual PC 1.0.1)