From owner-freebsd-current Mon Mar 29 0:12:15 1999 Delivered-To: freebsd-current@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 3305214C16 for ; Mon, 29 Mar 1999 00:12:11 -0800 (PST) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.1/8.9.1) id KAA57354; Mon, 29 Mar 1999 10:11:50 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <199903290811.KAA57354@freebsd.dk> Subject: Re: UPDATE4: ATA/ATAPI driver new version available. In-Reply-To: from Tugrul Galatali at "Mar 28, 1999 10: 6:17 pm" To: ganymede@cloud9.net (Tugrul Galatali) Date: Mon, 29 Mar 1999 10:11:50 +0200 (CEST) Cc: current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Tugrul Galatali wrote: > > There seems to be an oopsie with the includes on a system without PCI in > ata-dma.c: > > #include "ata.h" > +#include > + > #if NATA > 0 > -#include "pci.h" > #if NPCI > 0 > +#include "pci.h" > #include > #include > #include The "pci.h" should be before the if NPCI or it will never be defined :) > My 486 still spits this out tho: > > [...] > ata0 at 0x1f0-0x1f7 irq 14 on isa > [...] > ad0: ATA-? disk at ata0 as master > ad0: 814MB (1667232 sectors), 1654 cyls, 16 heads, 63 S/T, 512 B/S > ad0: piomode=3, dmamode=1, udmamode=-1 > ad0: 16 secs/int, 0 depth queue, PIO mode > changing root device to wd0s1a > ad0: invalid primary partition table: no magic > changing root device to wd0a > ad0: invalid primary partition table: no magic > error 22: panic: cannot mount root (2) Hmm, I'll bet the disk doesn't grok the 16 secs/int or the controller doesn't support 32bit transfers... This I really should check for... > My PIIX3 box isn't happy with this update either: > > [...] > ata-pci0: rev 0x00 on pci0.7.1 > ata-pci0: Busmastering DMA supported > [...] > ata0 at 0x01f0 irq 14 on ata-pci0 > [...] > ata0: master: settting up WDMA2 mode on PIIX3/4 chip OK > ad0: ATA-? disk at ata0 as master > ad0: 2014MB (4124736 sectors), 4092 cyls, 16 heads, 63 S/T, 512 B/S > ad0: piomode=4, dmamode=2, udmamode=-1 > ad0: 16 secs/int, 0 depth queue, DMA mode > acd0: CDROM drive at ata0 as slave > acd0: drive speed 1779 - 4134KB/sec, 128KB cache > acd0: supported read types: CD-R, CD-RW, CD-DA, packet track > acd0: Audio: play, 255 volume levels > acd0: Mechanism: ejectable tray > acd0: Medium: no/blank disc inside, unlocked > changing root device to wd0s1a > [...] > acd0: rezero failed <-- Whenever I try to mount my cdrom drive. With or > without a cd in there. mount gives me "mount: Input/output error" You should only get the rezero when you are WRITING to the CD, really wierd... > I can't eject the cd tray either after I mount the drive. Its fine > after boot but before I attempt to mount something. If you open the device and mount it, the driver will lock the CD in the drive, if something goes wrong it might be stuck in there... Granted I should do something about that too... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message