mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Athol Mullen <athol_SPIT_SPAM@idl.net.au>
To: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: [RFC] IDE 80-core cable detect - chipset-specific code to over-ride eighty_ninty_three()
Date: Sat, 7 Feb 2004 17:00:18 +1100	[thread overview]
Message-ID: <200402071658.43992.athol_SPIT_SPAM@OUTidl.net.au> (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.

-- 
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
athol@idl.net.au
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.


             reply	other threads:[~2004-02-07  6:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-07  6:00 Athol Mullen [this message]
2004-02-07  9:15 ` Willy Tarreau
     [not found] <1mtPj-7oQ-3@gated-at.bofh.it>
     [not found] ` <1mwNn-1xb-27@gated-at.bofh.it>
2004-02-08  0:45   ` Athol Mullen
2004-02-08  7:31     ` Willy Tarreau
2004-02-10  0:10       ` Bartlomiej Zolnierkiewicz
2004-02-10  0:37         ` Bartlomiej Zolnierkiewicz
     [not found] <1mLsS-6Oq-7@gated-at.bofh.it>
     [not found] ` <1mLsS-6Oq-9@gated-at.bofh.it>
     [not found]   ` <1mLsS-6Oq-5@gated-at.bofh.it>
     [not found]     ` <1mRHV-4Xn-7@gated-at.bofh.it>
2004-02-09  2:50       ` Athol Mullen
2004-02-09 20:04         ` Willy Tarreau
2004-02-10  0:24         ` Bartlomiej Zolnierkiewicz
     [not found] <1n9OA-6lu-17@gated-at.bofh.it>
     [not found] ` <1n9OA-6lu-23@gated-at.bofh.it>
     [not found]   ` <1n9OA-6lu-15@gated-at.bofh.it>
     [not found]     ` <1nu6y-XO-3@gated-at.bofh.it>
2004-02-10  7:16       ` Athol Mullen
2004-02-10 14:41         ` Bartlomiej Zolnierkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200402071658.43992.athol_SPIT_SPAM@OUTidl.net.au \
    --to=athol_spit_spam@idl.net.au \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®