[IDE]2.4.0test9-pre1, CD drive on hpt366 not detected correctly and locking up when activated

From: FORT David (fort@irin.univ-nantes.fr)
Date: Wed Sep 20 2000 - 14:02:30 EST


The subject says everything, while detecting the drive

i got the following strange thing:

[from dmesg]

>PIIX4: chipset revision 1
>PIIX4: not 100% native mode: will probe irqs later
> ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
> ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:pio
>HPT366: onboard version of chipset, pin1=1 pin2=2
>HPT366: IDE controller on PCI bus 00 dev 98
>HPT366: chipset revision 1
>HPT366: not 100% native mode: will probe irqs later
> ide2: BM-DMA at 0xd400-0xd407, BIOS settings: hde:pio, hdf:pio
>HPT366: IDE controller on PCI bus 00 dev 99
>HPT366: chipset revision 1
>HPT366: not 100% native mode: will probe irqs later
> ide3: BM-DMA at 0xe000-0xe007, BIOS settings: hdg:pio, hdh:pio
>hda: IBM-DPTA-372050, ATA DISK drive
>hdc: IDE/ATAPI CD-ROM 50XS, ATAPI CDROM drive
>hde: , ATAPI CDROM drive

      ^^^^ no name here
>ide2: reset
>ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
>ide1 at 0x170-0x177,0x376 on irq 15
>ide2 at 0xcc00-0xcc07,0xd002 on irq 11
>hda: 40088160 sectors (20525 MB) w/1961KiB Cache, CHS=2495/255/63, UDMA(33)
>hdc: ATAPI 11X CD-ROM drive, 128kB Cache, UDMA(33)
>Uniform CD-ROM driver Revision: 3.11
>hde: ATAPI 8X CD-ROM CD-R drive, 512kB Cache, DMA

      ^^^^^ suddenly got one

I've done some inquiries with hdparm:

[root@Djinn dea]# hdparm -i /dev/hde

/dev/hde:

 Model=, FwRev=, SerialNo=
 Config={ SpinMotCtl Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=8224
 BuffType=8224(?), BuffSize=4112kB, MaxMultSect=32, MultSect=off
 DblWordIO=no, maxPIO=32(?), DMA=no
 (maybe):

[root@Djinn dea]# hdparm -I /dev/hde

/dev/hde:

 Model=RC2-08T1 E , FwRev=.101 , SerialNo=
 Config={ SpinMotCtl Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=2(DualPort), BuffSize=0kB, MaxMultSect=0
 DblWordIO=no, maxPIO=3(eide), DMA=yes, maxDMA=1(medium)
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 tDMA={min:150,rec:230}, DMA modes: ***sword2 **mword1
 IORDY=on/off, tPIO={min:180,w/IORDY:180}, PIO modes: mode3

When these were performed i got this in logs:

VFS: Disk change detected on device ide2(33,0)
ATAPI device hde:
  Error: Not ready -- (Sense key=0x02)
  (reserved error code) -- (asc=0x3a, ascq=0x01)
  The failed "Read Table of Contents" packet command was:
  "43 02 00 00 00 00 00 00 04 00 00 00 "
VFS: Disk change detected on device ide2(33,0)
ATAPI device hde:
  Error: Not ready -- (Sense key=0x02)
  (reserved error code) -- (asc=0x3a, ascq=0x01)
  The failed "Read Table of Contents" packet command was:
  "43 02 00 00 00 00 00 00 04 00 00 00 "

Please note the "Disk change detected": i haven't touch the drive between

the two hdparm.

When i attempt to mount the drive, the whole system got stuck with nothing

in logs(even on serial console).

I've tried different configurations(multimode on/off, reset ide2 on start, etc..)

the result is always the same: lockup when mounting and garbage in logs

when hdparm.

Feel free to ask for more tests or for my whole .config.

--
%--IRIN->-Institut-de-Recherche-en-Informatique-de-Nantes-----------------%
% FORT David,                                                             %
% 7 avenue de la morvandière                 0240726275                   %
% 44470 Thouare, France                      fortd@ensinfo.univ-nantes.fr %
% ICU:54999224   AIM: enlighted popo             fort@irin.univ-nantes.fr %
%--LINUX-HTTPD-PIOGENE----------------------------------------------------%
%  -datamining                            |   .~.                         %
%  -networking                            |   /V\        L  I  N  U  X    %
%  -opensource                            |  // \\     >Fear the Penguin< %
%  -GNOME/enlightenment/GIMP              | /(   )\                       %
%           feel enlighted....            |  ^^-^^                        %
%-------------------------------------------------------------------------%

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



This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 21:00:23 EST