Skip to contentSkip to conversation

IDE 80-core cable detect - chipset-specific code to over-ride eighty_ninty_three()

RFC Athol Mullen 2 participants 2 messages Feb 7, 2004

lore
Share & tools
lore
#0 lore raw

(Don't CC. I read lkml via linux.kernel newsgroup.)

Specific to parallel IDE with UDMA. Relates to code that is the same from 2.4.22 to 2.6.1.

After looking through the Intel specs for the ICH5, I discovered that they specify that the BIOS is supposed to initialise bit flags for the presence of 80-core ribbon for each drive. According to Intel, the OS is supposed to rely upon those flags in preference to the word-93 bit. This appears to cover all ICH chipsets capable of UDMA modes that require 80-core cabling, and works on both the ICH4 and ICH5 I have here.

I have a drive that fails the word93 bit test with a known 80-core cable. The piix driver sets the drive up to UDMA5, but dmesg reports UDMA(33) because eighty_ninty_three() returns 0. If this had really been a 40-core cable, I'm not sure what would happen.

Proposal:

I'm not certain exactly how this would be implemented, but I'd like to see eighty_ninty_three() check for chipset-specific detection code, and use the existing word93 validation otherwise.

I have written and tested code for the intel ICH chipsets, but can't post a patch until I know where to stick it. :-)

Related:

eighty_ninty_three() should only be called if there is a possibility of using a mode where it matters. I intend to submit some patches that rearrange the logic to avoid calling it if the best mode doesn't need it.

Signature · 23 lines
Athol
<http://cust.idl.com.au/athol>
Linux Registered User # 254000
I'm a Libran Engineer. I don't argue, I discuss.

-- 
Regards,

Athol
-- 
Athol Mullen
Mullen Automotive Engineering
[email protected]
24 Newcastle St CARDIFF  NSW 2285
Ph/Fax (02) 4956 8030, Mob. 0414 685537
---
Confidentiality Statement:
Information in this message is provided to the intended recipient in 
confidence and is provided conditional upon its not being made available to 
any other party without the express permission of the author.  Release of any 
part of this message under freedom of information or similar legislation is 
specifically not permitted and if such release is a condition of acceptance, 
the recipient must not accept this message.
#1 lore raw
Quoted 1 line · Athol Mullen

(Don't CC. I read lkml via linux.kernel newsgroup.)

(sorry, it was easier to hit 'g' in mutt...)

Quoted 9 lines

Specific to parallel IDE with UDMA. Relates to code that is the same from 2.4.22 to 2.6.1.

After looking through the Intel specs for the ICH5, I discovered that they specify that the BIOS is supposed to initialise bit flags for the presence of 80-core ribbon for each drive. According to Intel, the OS is supposed to rely upon those flags in preference to the word-93 bit. This appears to cover all ICH chipsets capable of UDMA modes that require 80-core cabling, and works on both the ICH4 and ICH5 I have here.

that could explain why I recently discovered that a 2.4.25-rc1 on a supermicro MB with ICH5 was limiting hda and hdb to 30 MB/s at UDMA33 while an old 2.4.20
+ many patches including IDE gave me about 64 MB/s at UDMA100.

I can hack piix_ratemask() to test if the limit goes away.

Quoted 6 lines

I'm not certain exactly how this would be implemented, but I'd like to see eighty_ninty_three() check for chipset-specific detection code, and use the existing word93 validation otherwise.

I have written and tested code for the intel ICH chipsets, but can't post a patch until I know where to stick it. :-)

well, why not in piix:piix_ratemask() around line 315 ?

Cheers,
Willy