public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Sonny Rao <sonny@burdell.org>
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org
Subject: Re: amd74xx (nforce) driver problem ?
Date: Fri, 5 Aug 2005 14:27:56 +0200	[thread overview]
Message-ID: <20050805122756.GE2484@ucw.cz> (raw)
In-Reply-To: <20050801090633.GA12320@kevlar.burdell.org>

On Mon, Aug 01, 2005 at 05:06:33AM -0400, Sonny Rao wrote:
> Hi,
> 
> I have a system based on the Nforce2 chipset which uses the amd7xx
> driver for it's IDE support, and I noticed that one of the drives was
> performing very slowly.  I looked into it a bit more and it seems the
> drive was operating as UDMA33 instead of UDMA100 for some reason.
> 
> The affected drive was getting about 20-25Mb/sec sequential read (dumb
> hdparm test) while a similar drive on the other channel was getting
> about 45-50 Mb/sec.  The drive on the other channel was operating at
> UDMA100.  Both drives are attached using the proper 80-wire cable.
> 
> Kernel is 2.6.13-rc4 
> 
> If I go into the bios and twiddle an "IDE Master" setting from the
> "none" to the "auto" setting then the driver operates at the expected
> speed. 
> 
> 
> I'm confused though why the driver never correctly set up that IDE
> channel?  It claims in the kernel log that it detected the BIOS
> borkage: 
> 
> NFORCE2: IDE controller at PCI slot 0000:00:09.0
> NFORCE2: chipset revision 162
> NFORCE2: not 100% native mode: will probe irqs later
> NFORCE2: BIOS didn't set cable bits correctly. Enabling workaround.
> NFORCE2: 0000:00:09.0 (rev a2) UDMA133 controller
>     ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
>     ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
> 
> 
> Shouldn't the driver set the channel to UDMA100 after it detects the BIOS
> set up the chip improperly, or am I mistaken about this behavior?  Isn't
> that the "workaround" or does that mean something else?
 
The driver simply takes the information from another register, also
supplied by the BIOS. If you set the drive to 'none', it doesn't have
anywhere to look, since the primary location is borked because of bad BIOS.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

  reply	other threads:[~2005-08-05 12:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01  9:06 amd74xx (nforce) driver problem ? Sonny Rao
2005-08-05 12:27 ` Vojtech Pavlik [this message]
     [not found] <4wEt8-4Qk-1@gated-at.bofh.it>
2005-08-01 18:10 ` Robert Hancock

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=20050805122756.GE2484@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sonny@burdell.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