public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* IDE and hot-swap disk caddies
@ 2002-03-25  9:32 John Summerfield
  2002-03-25 15:56 ` Alan Cox
  0 siblings, 1 reply; 51+ messages in thread
From: John Summerfield @ 2002-03-25  9:32 UTC (permalink / raw)
  To: andre; +Cc: linux-kernel, Mark Lord


I'm running Clark Connect 0.91 (basically Red Hat Linux 7.2 plus some 
updates and extra packages), RHL kernel 2.4.9-13, hdparm v4.1.

I have a VIPowER 3-fan mobile rack (see http://www.vipower.com for a 
fuller explanation), part number VP-7010LS3F-66.

The device is hot-swap capable and has a switch (others have a key) 
that locks the drive in and powers it up; in the other position the 
drive is powered down and can be removed.

What I'd like to be able to do is insert a drive into a running system, 
register it (hdparm -R), mount it, write on it, umount it, unregister 
it (hdparm -U).

I have the system configured (when the drive's plugged in) thus:

hda   Fujitsu 4 Gbyte hdd
hdb   Vacant
hdc   Fujitsu 1 Gbyte hdd
hdd   20x CD drive
Motherboard ASUS SP97-V, SiS 5598 (detects as 5513),  chipset. Pentium 
133 CPU.

If I boot with hdc not present, then insert the drive, the system hangs 
immediately. I've configured syslogd to write kernel messages to 
/dev/tty11, but no messages about the problem are displayed.

What can I do to get some messages displayed?

I presume that Linux is getting unexpected interrupts and not coping 
well.


If I boot with hdc present, then hdparm -U /dev/hdc displays all the 
same display it does for hdparm -h

Here is a more complete list of the hardware:
[root@clark-133 root]# lspci -v -v
00:00.0 Host bridge: Silicon Integrated Systems [SiS] 5597 [SiS5582] 
(rev 02)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >
TAbort- <TAbort- <MAbort+ >SERR- <PERR-        Latency: 32

00:01.0 ISA bridge: Silicon Integrated Systems [SiS] 85C503/5513 (rev 
01)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >
TAbort- <TAbort- <MAbort- >SERR- <PERR-        Latency: 0

00:01.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 
d0) (prog-if 8a [Master SecP PriP])
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32
        Interrupt: pin A routed to IRQ 11
        Region 0: I/O ports at <ignored>
        Region 1: I/O ports at <ignored>
        Region 2: I/O ports at <ignored>
        Region 3: I/O ports at <ignored>
        Region 4: I/O ports at d000 [size=16]

00:0b.0 Ethernet controller: Standard Microsystems Corp [SMC] 83C170QF 
(rev 06)
        Subsystem: Standard Microsystems Corp [SMC] EtherPower II 10/100
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
        Latency: 32 (2000ns min, 7000ns max)
        Interrupt: pin A routed to IRQ 10
        Region 0: I/O ports at b800 [size=256]
        Region 1: Memory at e5800000 (32-bit, non-prefetchable) 
[size=4K]
        Expansion ROM at <unassigned> [disabled] [size=64K]

00:13.0 VGA compatible controller: Silicon Integrated Systems [SiS] 
5597/5598 VGA (rev 65) (prog-if 00 [VGA])
        Subsystem: Silicon Integrated Systems [SiS] 5597/5598 VGA
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- 
ParErr- Stepping- SERR- FastB2B-
        Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >
TAbort- <TAbort- <MAbort- >SERR- <PERR-        Region 0: Memory at 
e7000000 (32-bit, prefetchable) [size=4M]
        Region 1: Memory at e5000000 (32-bit, non-prefetchable) 
[size=64K]
        Region 2: I/O ports at b400 [size=128]
        Expansion ROM at e6ff0000 [disabled] [size=32K]

[root@clark-133 root]#


I tried to register hdc (I know, it was registered at boot time) with 
this result:
Mar 25 15:07:22 clarkconnect kernel: hdc: irq timeout: status=0xff { 
Busy }
Mar 25 15:07:27 clarkconnect kernel: hdc: status timeout: status=0xff { 
Busy }
Mar 25 15:07:27 clarkconnect kernel: hdc: drive not ready for command
Mar 25 15:07:55 clarkconnect kernel: hdc: status timeout: status=0xff { 
Busy }
Mar 25 15:07:55 clarkconnect kernel: hdc: drive not ready for command

I then tried to put it to sleep (-Y)

Mar 25 15:08:00 clarkconnect kernel: hdc: status timeout: status=0xff { 
Busy }
Mar 25 15:08:00 clarkconnect kernel: hdc: drive not ready for command
Mar 25 15:10:12 clarkconnect kernel: spurious 8259A interrupt: IRQ7.
Mar 25 15:32:48 clarkconnect kernel: ip_conntrack (480 buckets, 3840 
max)

and in standby (-y)

Mar 25 15:33:42 clarkconnect kernel: hdc: status timeout: status=0xff { 
Busy }
Mar 25 15:33:42 clarkconnect kernel: hdc: DMA disabled
Mar 25 15:33:42 clarkconnect kernel: hdc: drive not ready for command
Mar 25 15:33:42 clarkconnect kernel: ide1: reset: success

The hard drives:
[root@clark-133 root]# hdparm -i /dev/hd{a,c}

/dev/hda:

 Model=FUJITSU MPB3043ATU E, FwRev=4010, SerialNo=01075314
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=8940/15/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=unknown, BuffSize=0kB, MaxMultSect=16, MultSect=16
 CurCHS=8940/15/63, CurSects=-382992256, LBA=yes, LBAsects=8448300
 IORDY=yes, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes: pio0 pio1 pio2 pio3 pio4
 DMA modes: mdma0 mdma1 mdma2 udma0 udma1 *udma2
 AdvancedPM=no
 Drive Supports : Reserved : ATA-1 ATA-2 ATA-3


/dev/hdc:

 Model=M1614TA, FwRev=8D-44-21, SerialNo=03022742
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
 RawCHS=2114/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=64kB, MaxMultSect=16, MultSect=16
 CurCHS=2114/16/63, CurSects=-2082471904, LBA=yes, LBAsects=2131584
 IORDY=yes, tPIO={min:370,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes: pio0 pio1 pio2 pio3 pio4
 DMA modes: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2
 AdvancedPM=no

[root@clark-133 root]#

-- 
Cheers
John Summerfield

Microsoft's most solid OS: http://www.geocities.com/rcwoolley/

Note: mail delivered to me is deemed to be intended for me, for my 
disposition.

==============================
If you don't like being told you're wrong,
	be right!




^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2002-03-28 21:23 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-25  9:32 IDE and hot-swap disk caddies John Summerfield
2002-03-25 15:56 ` Alan Cox
2002-03-25 19:34   ` Bill Davidsen
2002-03-25 19:55     ` Alan Cox
2002-03-25 20:26       ` Wakko Warner
2002-03-25 21:20         ` Andre Hedrick
2002-03-25 22:32           ` Wakko Warner
2002-03-26  0:11             ` Thunder from the hill
2002-03-26 18:52           ` Pavel Machek
2002-03-27 22:38             ` Alan Cox
2002-03-27 22:29               ` Pavel Machek
2002-03-27 22:47                 ` Pedro M. Rodrigues
2002-03-27 23:21                   ` Jos Hulzink
2002-03-28 11:37                   ` Jos Hulzink
2002-03-27 22:51                 ` Alan Cox
2002-03-28  0:01                   ` Itai Nahshon
2002-03-28  0:11                     ` Andre Hedrick
2002-03-27 23:53                 ` Vojtech Pavlik
2002-03-25 23:16   ` John Summerfield
2002-03-26  3:32     ` Mark Lord
2002-03-26  5:28     ` Jeremy Jackson
2002-03-26  8:21       ` DE " jw schultz
2002-03-26 19:01         ` Pavel Machek
2002-03-27 22:34           ` jw schultz
2002-03-27 23:17             ` Jos Hulzink
2002-03-27 23:57               ` Andre Hedrick
2002-03-28  0:17                 ` Erik Andersen
2002-03-28  0:23                   ` Andre Hedrick
2002-03-28  0:31                     ` Benjamin LaHaise
2002-03-28  0:40                       ` Andre Hedrick
2002-03-28  2:02                         ` IDE " Jeremy Jackson
2002-03-28  9:33                           ` Alan Cox
2002-03-28  9:28                             ` Simon Richter
2002-03-28 16:25                             ` Jeremy Jackson
2002-03-28  9:33                       ` DE " Jos Hulzink
2002-03-28  0:37                   ` Alan Cox
2002-03-28  0:27                     ` Andre Hedrick
2002-03-28  4:24                       ` Chuck Campbell
2002-03-28  4:32                         ` Andre Hedrick
2002-03-28  8:00                     ` Martin Dalecki
2002-03-28  8:21                       ` Andre Hedrick
2002-03-28  9:01                         ` Martin Dalecki
2002-03-28  9:39                       ` Alan Cox
2002-03-28  9:50                         ` Offtopic: " Jos Hulzink
2002-03-28  9:53                           ` Martin Dalecki
2002-03-28 18:31                           ` Herman Oosthuysen
2002-03-28  9:29                   ` Jos Hulzink
2002-03-26 22:53       ` IDE " John Summerfield
2002-03-28 16:46         ` Bill Davidsen
2002-03-28 18:10           ` Mark Lord
2002-03-28 20:59             ` John Summerfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox