Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 1999 10:11:50 +0200 (CEST)
From:      Soren Schmidt <sos@freebsd.dk>
To:        ganymede@cloud9.net (Tugrul Galatali)
Cc:        current@freebsd.org
Subject:   Re: UPDATE4: ATA/ATAPI driver new version available.
Message-ID:  <199903290811.KAA57354@freebsd.dk>
In-Reply-To: <Pine.BSF.4.10.9903282111030.9703-100000@earl-grey.cloud9.net> from Tugrul Galatali at "Mar 28, 1999 10: 6:17 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/types.h>
> +
>  #if NATA > 0
> -#include "pci.h"
>  #if NPCI > 0
> +#include "pci.h"
>  #include <sys/param.h>
>  #include <sys/systm.h>
>  #include <sys/kernel.h>

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: <WDC AC2850F/28.25E40> 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: <Intel PIIX3 IDE controller> 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: <WDC AC22100H/11.09I14> 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: <HITACHI CDR-8330/0007> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903290811.KAA57354>