Date: Sat, 08 Mar 2003 21:41:27 +0900 (JST) From: Mamoru Iwaki <iwaki@bc.niigata-u.ac.jp> To: stable@FreeBSD.ORG Subject: Re: cdcontrol via atapicam in 4.8-RC Message-ID: <20030308124131.8499.qmail@pikachu.bsp.bc.niigata-u.ac.jp> In-Reply-To: <20030308.161344.74755745.iwaki@bc.niigata-u.ac.jp> <20030308094247.GA62341@melusine.cuivre.fr.eu.org> References: <bulk.26543.20030307153106@hub.freebsd.org> <20030308.161344.74755745.iwaki@bc.niigata-u.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Thomas Quinot <thomas@FreeBSD.ORG>
Subject: Re: cdcontrol via atapicam in 4.8-RC
Date: Sat, 8 Mar 2003 10:42:47 +0100
> Le 2003-03-08, Mamoru Iwaki écrivait :
>
> > I don't know possible combinations of atapicam and atapi??.
> > Anyway, I'll try enabling all of them, but I need a time.
>
> You can enable both devices, as long as you do not try to access them
> simultaneously.
Thank you, Thomas.
I have found atapicam(4), maybe written by you, shows its
possibility in BUGS part.
I changed kernel configuration as follows, i.e. all atapi?? device
are enabled.
# ATA and ATAPI devices
#device ata0 at isa? port IO_WD1 irq 14
#device ata1 at isa? port IO_WD2 irq 15
device ata
device atadisk # ATA disk drives
device atapicd # ATAPI CDROM drives
device atapifd # ATAPI floppy drives
device atapist # ATAPI tape drives
#options ATA_STATIC_ID #Static device numbering
device atapicam # emulate ATAPI devices as SCSI ditto via CAM
# needs CAM to be present (scbus & pass)
Now, my new kernel has recognized cd related devices as follows.
The same ata CDROM drive(FX120T) appears twice, one is acd0 and the
other cd1.
% dmesg | grep 'ata\|ahc\|cd'
atapci0: <Intel PIIX3 ATA controller> port 0xefa0-0xefaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
ahc0: <Adaptec 3940 Ultra SCSI adapter> port 0xf800-0xf8ff mem 0xff9fe000-0xff9fefff irq 11 at device 4.0 on pci1
ahc1: <Adaptec 3940 Ultra SCSI adapter> port 0xfc00-0xfcff mem 0xff9ff000-0xff9fffff irq 11 at device 5.0 on pci1
ata2: <Generic ESDI/IDE/ATA controller> at port 0x168-0x16f,0x36e-0x36f irq 10 on isa0
ata1-slave: ATAPI identify retries exceeded
ad0: 3681MB <QUANTUM FIREBALL_TM3840A> [7480/16/63] at ata0-master WDMA2
ad1: 28629MB <ST330621A> [58168/16/63] at ata0-slave WDMA2
acd0: CDROM <FX120T> at ata1-master PIO3
sa0 at ahc0 bus 0 target 4 lun 0
da1 at ahc0 bus 0 target 0 lun 0
da0 at ahc1 bus 0 target 0 lun 0
cd1 at ata1 bus 0 target 0 lun 0
cd1: <MITSUMI CD-ROM FX120T !B b04A> Removable CD-ROM SCSI-0 device
cd1: 11.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
cd0 at ahc0 bus 0 target 6 lun 0
cd0: <SONY CD-ROM CDU-76S 1.1c> Removable CD-ROM SCSI-2 device
cd0: 5.681MB/s transfers (5.681MHz, offset 15)
cd0: Attempt to query device size failed: NOT READY, Medium not present
Under this new kernel, cdcontrol works OK for cdcontrol -f
/dev/acd0c, but still NG for cdcontrol -f /dev/cd1c.
As I wrote in previous email, cdcontrol -f /dev/cd0c of real SCSI CD
device works well.
It looks a problem between atapicam and cam subsystem for audio CD
control.
Thank you.
---
-----
Mamoru IWAKI (iwaki@bc.niigata-u.ac.jp)
Graduate School of Science and Technology, Niigata University
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030308124131.8499.qmail>
