2002-07-25 05:33:00

by Andrew Morton

[permalink] [raw]
Subject: [IDE bug] hdparm lockup

2.5.28, uniprocessor

00:0f.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)

quad:/home/akpm> 0 hdparm -i /dev/hdc

/dev/hdc:
HDIO_GETGEO_BIG failed: Invalid argument
(what's this?)

Model=Maxtor 96147H6, FwRev=ZAH814Y0, SerialNo=V60JT12C
Config={ Fixed }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=120064896
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5
Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5 ATA-6
Kernel Drive Geometry LogicalCHS=7473/255/63

The command

hdparm -d1 -A1 -m16 -u1 -a64 /dev/hdc

freezes the machine.


2002-07-25 07:40:49

by Marcin Dalecki

[permalink] [raw]
Subject: Re: [IDE bug] hdparm lockup

Andrew Morton wrote:
> 2.5.28, uniprocessor
>
> 00:0f.1 IDE interface: Intel Corporation 82371AB PIIX4 IDE (rev 01)
>
> quad:/home/akpm> 0 hdparm -i /dev/hdc
>
> /dev/hdc:
> HDIO_GETGEO_BIG failed: Invalid argument
> (what's this?)

Please don't call every bug out there IDE. Thanks.
Becouse this one is acutally most likely due to the ioctl() handling
changes between 27 and 28...
>
> Model=Maxtor 96147H6, FwRev=ZAH814Y0, SerialNo=V60JT12C
> Config={ Fixed }
> RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
> BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=off
> CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=120064896
> IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
> PIO modes: pio0 pio1 pio2 pio3 pio4
> DMA modes: mdma0 mdma1 mdma2 udma0 udma1 *udma2 udma3 udma4 udma5
> Drive Supports : Reserved : ATA-1 ATA-2 ATA-3 ATA-4 ATA-5 ATA-6
> Kernel Drive Geometry LogicalCHS=7473/255/63
>
> The command
>
> hdparm -d1 -A1 -m16 -u1 -a64 /dev/hdc

Maybe indeed IDE or maybe as well the READA code or simple
related to the above error. I will recheck after I get 2.5.28 up and
running.



2002-07-25 12:51:23

by Andries Brouwer

[permalink] [raw]
Subject: Re: [IDE bug] hdparm lockup

On Wed, Jul 24, 2002 at 10:43:46PM -0700, Andrew Morton wrote:

> quad:/home/akpm> 0 hdparm -i /dev/hdc
>
> /dev/hdc:
> HDIO_GETGEO_BIG failed: Invalid argument
> (what's this?)

Your hdparm uses an ioctl that doesnt exist (anymore).
Change to HDIO_GETGEO.

> The command
>
> hdparm -d1 -A1 -m16 -u1 -a64 /dev/hdc
>
> freezes the machine.

There I cannot help.