Skip to contentSkip to conversation

Merge the changes from siimage 2.4.22-pre9 to 2.6.0-test2

PATCH CASINO_E 3 participants 4 messages Aug 7, 2003

lore
Share & tools
lore

CASINO_E

author
#0 lore raw

Alan Cox <[email protected]> wrote...

Quoted 9 lines
Quoted 7 lines
	if(is_sata(hwif))
	{
(quoted diff) +1 -0
+		drive->id->hw_config |= 0x6000;
		if(strstr(drive->id->model, "Maxtor"))
			return 3;
		return 4;

}

We never check the cable bits for SATA so this is a no-op

Alan,

Without this, in 2.4.22-pre10-ac1, ide_ata66_check() in ide-iops.c returns 1. This causes, for example, that hdparm -i shows only udma modes 0 to 2 (although the drive has been set to udma6) and refuses to set any value above udma2 with an ugly "Speed warnings UDMA 3/4/5 is not functional".

I do not understand the ide subsystem enough (I should say "at all"), but maybe there are other implications...

Eduardo.

#1 lore raw
Quoted 9 lines · CASINO_E
Quoted 1 line

We never check the cable bits for SATA so this is a no-op

Alan,

Without this, in 2.4.22-pre10-ac1, ide_ata66_check() in ide-iops.c returns 1. This causes, for example, that hdparm -i shows only udma modes 0 to 2 (although the drive has been set to udma6) and refuses to set any value above udma2 with an ugly "Speed warnings UDMA 3/4/5 is not functional".

Then the bug is that ide_ata66_check is getting called at all in the SATA controller case

#2 lore raw
Quoted 5 lines · Alan Cox
Quoted 4 lines · CASINO_E
Quoted 1 line

We never check the cable bits for SATA so this is a no-op

Alan,

Quoted 8 lines
Quoted 5 lines

Without this, in 2.4.22-pre10-ac1, ide_ata66_check() in ide-iops.c returns 1. This causes, for example, that hdparm -i shows only udma modes 0 to 2 (although the drive has been set to udma6) and refuses to set any value above udma2 with an ugly "Speed warnings UDMA 3/4/5 is not functional".

Then the bug is that ide_ata66_check is getting called at all in the SATA controller case

drive->sata ?

#3 lore raw
Quoted 4 lines · Bartlomiej Zolnierkiewicz
Quoted 2 lines

Then the bug is that ide_ata66_check is getting called at all in the SATA controller case

drive->sata ?

drive->sata or hwif->sata. Something like that appears to be needed, or making ata66_check a HWIF() function so it can be overriden just like the cable detect half is ?

Signature · 1 line
Alan Cox <[email protected]>