2.2.14 + ide.2.2.14.20000107 + ide-scsi = can't mount CD

From: Frank Copeland (fjc@wossname.apana.org.au)
Date: Sat Jan 08 2000 - 04:47:56 EST


Hi there,

This is reproducable with both gcc 2.7.2.3 and gcc 2.95.2. I also had this
problem with 2.2.13 + ide patch.

The box is a K6-2/350 on a Gigabyte GA-5AA motherboard. The chipset is the
ALi Aladdin V AGPset. It has an ST34321A 4.1G HD as hda and an HP CD-Writer+
7200 as hdc. Following the various HOWTOs I am using the IDE-SCSI emulation
to drive the CD-Writer. I left out the IDE-CDROM driver.

If I build a kernel from the pristine 2.2.14 sources, everything is fine
except for not having (U)DMA enabled on the HD. I've succesfully burnt a
CD-R in this configuration, so performance isn't a problem.

If I build a kernel with the ide patch, I can't mount the CD. I get this
error message on the console 80-300+ times before mount spits the dummy:

  ide-scsi: The scsi wants to send us more data than expected - discarding data

Now that I look at kern.log, it seems that the problem with remapping DDO
partitions has also recurred.

hdparm has this to say about the HD and CD:

root@wossname:~# hdparm -I /dev/hda /dev/hdc

/dev/hda:

 Model=TS4323A1 , FwRev=.314 ,
SerialNo=YG489914
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=8894/15/63, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=0(?), BuffSize=128kB, MaxMultSect=16, MultSect=16
 DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=2
 CurCHS=8894/15/63, CurSects=8404830, LBA=yes, LBAsects=8404830
 tDMA={min:120,rec:120}, DMA modes: mword0 mword1 mword2
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, PIO modes: mode3 mode4
 UDMA modes: mode0 mode1 *mode2

/dev/hdc:

 Model=PH DCW-iret+r7 02 0 , FwRev=:V00.220,
SerialNo=V40O9518104511052001
 Config={ Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=0(?), BuffSize=3900kB, MaxMultSect=0
 DblWordIO=no, OldPIO=2, DMA=yes, OldDMA=2
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 tDMA={min:127,rec:127}, DMA modes: sword0 sword1 sword2 mword0 mword1
 IORDY=yes, tPIO={min:208,w/IORDY:127}, PIO modes: mode3

The relevant parts of the kernel config are:

CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDESCSI=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDEDMA_AUTO=y
IDEDMA_NEW_DRIVE_LISTINGS=y
IDEDMA_PCI_EXPERIMENTAL=y
CONFIG_BLK_DEV_ALI15X3=y
CONFIG_BLK_DEV_IDE_MODES=y

CONFIG_SCSI=y
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_CONSTANTS=y

CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y

The relevant bits of kern.log for the pristine kernel:

Jan 8 19:52:28 wossname kernel: PCI_IDE: unknown IDE controller on PCI bus 00 device 78, VID=10b9, DID=5229
Jan 8 19:52:28 wossname kernel: PCI_IDE: not 100% native mode: will probe irqs later
Jan 8 19:52:28 wossname kernel: PCI_IDE: simplex device: DMA disabled
Jan 8 19:52:28 wossname kernel: ide0: PCI_IDE Bus-Master DMA disabled (BIOS)
Jan 8 19:52:28 wossname kernel: PCI_IDE: simplex device: DMA disabled
Jan 8 19:52:28 wossname kernel: ide1: PCI_IDE Bus-Master DMA disabled (BIOS)
Jan 8 19:52:28 wossname kernel: hda: ST34321A, ATA DISK drive
Jan 8 19:52:28 wossname kernel: hdc: HP CD-Writer+ 7200, ATAPI CDROM drive
Jan 8 19:52:28 wossname kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Jan 8 19:52:28 wossname kernel: ide1 at 0x170-0x177,0x376 on irq 15
Jan 8 19:52:28 wossname kernel: hda: ST34321A, 4103MB w/128kB Cache, CHS=523/255/63
Jan 8 19:52:28 wossname kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Jan 8 19:52:28 wossname kernel: scsi : 1 host.
Jan 8 19:52:28 wossname kernel: Vendor: HP Model: CD-Writer+ 7200 Rev: 2.02
Jan 8 19:52:28 wossname kernel: Type: CD-ROM ANSI SCSI revision: 02
Jan 8 19:52:28 wossname kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Jan 8 19:52:28 wossname kernel: scsi : detected 1 SCSI cdrom total.
Jan 8 19:52:28 wossname kernel: sr0: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray
Jan 8 19:52:28 wossname kernel: Uniform CDROM driver Revision: 2.56
Jan 8 19:52:28 wossname kernel: Partition check:
Jan 8 19:52:28 wossname kernel: hda: [DM6:DDO] [remap +63] [522/255/63] hda1 hda2 hda3

The relevant bits of kern.log for the patched kernel:

Jan 8 19:47:08 wossname kernel: ide_setup: hdc=scsi
Jan 8 19:47:08 wossname kernel: Uniform Multi-Platform E-IDE driver Revision: 6.20
Jan 8 19:47:08 wossname kernel: ALI15X3: IDE controller on PCI bus 00 dev 78
Jan 8 19:47:08 wossname kernel: ALI15X3: not 100% native mode: will probe irqs later
Jan 8 19:47:08 wossname kernel: ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio
Jan 8 19:47:08 wossname kernel: ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:pio, hdd:pio
Jan 8 19:47:08 wossname kernel: hda: ST34321A, ATA DISK drive
Jan 8 19:47:08 wossname kernel: hdc: HP CD-Writer+ 7200, ATAPI CDROM drive
Jan 8 19:47:08 wossname kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Jan 8 19:47:08 wossname kernel: ide1 at 0x170-0x177,0x376 on irq 15
Jan 8 19:47:08 wossname kernel: ALI15X3: Ultra DMA enabled
Jan 8 19:47:08 wossname kernel: hda: ST34321A, 4103MB w/128kB Cache, CHS=523/255/63, UDMA(33)
Jan 8 19:47:08 wossname kernel: ALI15X3: MultiWord DMA enabled
Jan 8 19:47:08 wossname kernel: scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Jan 8 19:47:08 wossname kernel: scsi : 1 host.
Jan 8 19:47:08 wossname kernel: Vendor: HP Model: CD-Writer+ 7200 Rev: 2.02
Jan 8 19:47:08 wossname kernel: Type: CD-ROM ANSI SCSI revision: 02
Jan 8 19:47:08 wossname kernel: Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Jan 8 19:47:08 wossname kernel: scsi : detected 1 SCSI cdrom total.
Jan 8 19:47:08 wossname kernel: sr0: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray
Jan 8 19:47:08 wossname kernel: Uniform CDROM driver Revision: 2.56
Jan 8 19:47:08 wossname kernel: Partition check:
Jan 8 19:47:08 wossname kernel: hda: [DM6:DDO] [remap +63] [-1006708928/64/63] hda1 hda2 hda3
                                                              ^^^^^^^^^^^^^^^^^
!! whoops, how did *that* happen? I thought that problem was fixed...

Jan 8 19:47:08 wossname kernel: ALI15X3: Ultra DMA enabled
Jan 8 19:47:35 wossname kernel: VFS: Disk change detected on device sr(11,0)
Jan 8 19:47:36 wossname kernel: ide-scsi: The scsi wants to send us more data than expected - discarding data
Jan 8 19:47:37 wossname last message repeated 83 times
Jan 8 19:47:37 wossname kernel: Unable to identify CD-ROM format.

Frank

-- 
Home Page: <URL:http://thingy.apana.org.au/~fjc/> 
Not the Scientology Home Page: <URL:http://thingy.apana.org.au/~fjc/scn/>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:12 EST