From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6ca03257e4fc76fae7efa5c03d0207ca.axp-list@archive.invalid> X-Archive-Original-Message-ID: Date: Fri, 25 Jul 1997 23:28:48 +0300 (EET DST) From: Iso-H Subject: Re: 4D40 & 433a In-Reply-To: <199706241555.LAA01023@linux03.amt.tay1.dec.com> On Tue, 24 Jun 1997 jestabro@amt.tay1.dec.com wrote: > > >>> Iso-H said: > > > > MILO works just Ok, but when "real" kernel boots up console won't print > > > > anything (except blinking cursor) anymore! So what is this what kernel > > > > can't do but MILO can? > > This confuses me, too, but here's my theory on what's happening: > > 1. assume that the 4D40 does NOT identify itself as a DISPLAY device > correctly, WRT its class and the following code from bios32.c: > > if (dev->class >> 8 == PCI_CLASS_NOT_DEFINED || > dev->class >> 8 == PCI_CLASS_NOT_DEFINED_VGA || > dev->class >> 8 == PCI_CLASS_STORAGE_IDE || > dev->class >> 8 == PCI_CLASS_DISPLAY_VGA || > dev->class >> 8 == PCI_CLASS_DISPLAY_XGA) > { > /* > * All of these (may) have I/O scattered all around > * and may not use i/o-base address registers at all. > * So we just have to always enable I/O to these > * devices. > */ > cmd |= PCI_COMMAND_IO; > } > > So, this code will NOT enable IO space registers for the card, and the VGA > registers will not respond, > > 2. MILO code inits the PCI bus devices first, and then calls BIOS emulation > to init any VGA on the bus. Since the PCI bus init code is shared with the > kernel, we assume it disables the 4D40 for IO space. However, the BIOS > emulator code scans the PCI bus as well, and *may* detect the VGA on the > card, and do the *right* thing by enabling IO space accesses. Thus during > MILO operation the VGA works correctly. > > > > I have also 433a with Accel2000 and there everything > > (except LAN) works fine when I use exactly same MILO > > and kernel. Only drawback with Accel2000 is that there > > is no X-server available for it :~( > > Now, same MILO and kernel, my theory above suggests that the Accel2000 DOES > identify it self successfully to the above code, thus enabling IO space > accesses, and everybody is happy... > > Now one way to further investigate: the 4D40 prolly has a jumper on it that > can be used to enable/disable the VGA; if poossible, stick another VGA in > that box after diabling the VGA on the 4D40, boot up, and see how the 4D40 > device identifies itself (ie cat /proc/pci should give an indication). > > Good luck, and let me know what you find out... I had to first remove piggypack Cirrus 5440 because display card (== I used Trio64 for testing) have to be on primary PCI-slot and there is only two primary slots and (of course) 4D40 reserves both. I tried to put Trio64 to secondary slots also, but linload.exe hangs the machine after printing: "Swapping to PALcode at 0x80000" My machine is now: 433a, 192M, 2M cache, 4D40 And I have used these files/packages: ftp://gatekeeper.dec.com/pub/DEC/Linux-Alpha/Kernels/miata-milo.img ftp://gatekeeper.dec.com/pub/DEC/Linux-Alpha/Kernels/miata-kernel-2030-test.gz ftp://ftp.redhat.com/pub/redhat/redhat-4.2/alpha/images/ramdisk.img ... and of course redhat 4.2 Finally, here is what /proc/pci told: =========================================================== PCI devices found: Bus 1, device 9, function 0: SCSI storage controller: Adaptec AIC-7881U (rev 0). Medium devsel. Fast back-to-back capable. IRQ 40. Master Capable. Latency=32. Min Gnt=8.Max Lat=8. I/O at 0xc000. Non-prefetchable 32 bit memory at 0x9900000. Bus 0, device 20, function 0: PCI bridge: DEC DC21152 (rev 1). Medium devsel. Fast back-to-back capable. Master Capable. Latency=32. Min Gnt=4.Max Lat=4. Non-prefetchable 32 bit memory at 0x10100. I/O at 0x2280c1c0. Non-prefetchable 32 bit memory at 0x9900990. I/O at 0x1fff0. Bus 0, device 12, function 0: VGA compatible controller: S3 Inc. Trio32/Trio64 (rev 0). Medium devsel. IRQ 32. Non-prefetchable 32 bit memory at 0x9000000. Bus 0, device 11, function 0: Display controller: Unknown vendor Unknown device (rev 0). Vendor id=1091. Device id=e2. Medium devsel. Fast back-to-back capable. IRQ 28. Master Capable. Latency=16. Non-prefetchable 32 bit memory at 0x9800000. Bus 0, device 7, function 0: Non-VGA device: Intel 82378IB (rev 67). Medium devsel. Master Capable. No bursts. Bus 0, device 4, function 0: IDE interface: CMD 646 (rev 1). Medium devsel. Fast back-to-back capable. Master Capable. Latency=32. Min Gnt=2.Max Lat=4. I/O at 0xb000. Bus 0, device 3, function 0: Ethernet controller: DEC DC21142 (rev 48). Medium devsel. Fast back-to-back capable. IRQ 24. Master Capable. Latency=32. Min Gnt=20.Max Lat=40. I/O at 0xb400. Non-prefetchable 32 bit memory at 0x9808000. =========================================================== > > --Jay++ > > ------------------------------------------------------------------------------- > American Non Sequitur Society: we don't make sense, but we do like pizza... > > Jay A Estabrook Alpha Migration Tools - LINUX Project > Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202 > 151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com > Littleton, MA 01460-1407 decnet: tallis::jestabro > ------------------------------------------------------------------------------- > > > > > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com > Iso-H -- -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com