hda errors on iBook G4

4 messages, 2 authors, 2004-10-22 · open the first message on its own page

hda errors on iBook G4

From: Colin Leroy <colin@colino.net>
Date: 2004-10-22 15:32:08

Hi,

I noticed hda status errors in my iBook G4's dmesg quite a long time
ago, but never looked any more... Today I just ran tests with hdparm and
this looks like really reproduceable:

Results are different whether I try it only or more, see below.

Any hint about where I should look at, and what kind of bug may cause
this error?

# hdparm -X69 /dev/hda
 
/dev/hda:
 setting xfermode to 69 (UltraDMA mode5)
# dmesg -c
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
 
ide: failed opcode was: unknown
hda: drive not ready for command

# hdparm -X68 /dev/hda
 
/dev/hda:
 setting xfermode to 68 (UltraDMA mode4)
# dmesg -c
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
 
ide: failed opcode was: unknown
hda: drive not ready for command
hda: status timeout: status=0xd0 { Busy }
 
ide: failed opcode was: unknown
hda: DMA disabled
hda: drive not ready for command
ide0: reset: success
# hdparm -X68 /dev/hda
 
/dev/hda:
 setting xfermode to 68 (UltraDMA mode4)
[hangs for about 30 seconds]
# dmesg -c
hda: lost interrupt
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
 
ide: failed opcode was: unknown
hda: drive not ready for command
hda: lost interrupt
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
 
ide: failed opcode was: unknown
hda: drive not ready for command
hda: lost interrupt
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
 
ide: failed opcode was: unknown
hda: drive not ready for command
hda: lost interrupt
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
 
ide: failed opcode was: unknown
hda: drive not ready for command
ide0: reset: success

-- 
Colin

Re: hda errors on iBook G4

From: Colin Leroy <colin@colino.net>
Date: 2004-10-22 15:59:47

On 22 Oct 2004 at 17h10, Colin Leroy wrote:

Hi, 
I noticed hda status errors in my iBook G4's dmesg quite a long time
ago, but never looked any more... Today I just ran tests with hdparm
and this looks like really reproduceable:
I found one strange thing in drivers/ide/ppc/pmac.c:

pmac_ide_do_setfeature(ide_drive_t *drive, u8 command) {...}

pmac_ide_udma_enable(ide_drive_t *drive, u16 mode)
{...
	ret = pmac_ide_do_setfeature(drive, mode);
...}

We really want to pass u16 to the function taking an u8 arg?
(just a wild shot, it's probably wanted, but i thought i'd share).

-- 
Colin

Re: hda errors on iBook G4

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-10-22 23:31:57

On Sat, 2004-10-23 at 01:30, Colin Leroy wrote:
Hi,

I noticed hda status errors in my iBook G4's dmesg quite a long time
ago, but never looked any more... Today I just ran tests with hdparm and
this looks like really reproduceable:

Results are different whether I try it only or more, see below.

Any hint about where I should look at, and what kind of bug may cause
this error?
Just stop messing with the transfer speeds with hdparm ;) This is
bad, the ide-pmac driver will automatically pick the optimal speed
for your drive.

Ben.

Re: hda errors on iBook G4

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2004-10-22 23:32:16

On Sat, 2004-10-23 at 01:59, Colin Leroy wrote:
On 22 Oct 2004 at 17h10, Colin Leroy wrote:

Hi, 
quoted
I noticed hda status errors in my iBook G4's dmesg quite a long time
ago, but never looked any more... Today I just ran tests with hdparm
and this looks like really reproduceable:
I found one strange thing in drivers/ide/ppc/pmac.c:

pmac_ide_do_setfeature(ide_drive_t *drive, u8 command) {...}

pmac_ide_udma_enable(ide_drive_t *drive, u16 mode)
{...
	ret = pmac_ide_do_setfeature(drive, mode);
...}

We really want to pass u16 to the function taking an u8 arg?
(just a wild shot, it's probably wanted, but i thought i'd share).
It's a thinko, but it's always a u8 anyway

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help