Linux ATA/IDE development
 help / color / mirror / Atom feed
From: "Norman Diamond" <n0diamond@yahoo.co.jp>
To: linux-ide@vger.kernel.org
Cc: Mark Lord <liml@rtr.ca>,
	Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
	Chuck Ebbert <cebbert@redhat.com>,
	Jens Axboe <jens.axboe@oracle.com>,
	Robert Hancock <hancockrwd@gmail.com>
Subject: Re: Kernel bug crashing in HDIO_DRIVE_TASKFILE
Date: Tue, 3 Mar 2009 20:44:49 +0900	[thread overview]
Message-ID: <A1CD73CEEE9F4B0C8020D11EA243D460@DIAMOND8600> (raw)

I (Norman Diamond) wrote:

> Well, it turns out that 2.6.24.3 doesn't work either.  Sometimes
> HDIO_DRIVE_TASKFILE doesn't just hang a process without a dump, sometimes
> it hangs other stuff too.  This time I could still switch VT's (after
> booting Slax to text mode) but couldn't type the name "root" to log in.

Sorry, that one was my fault.

> So does this mean that some part of HDIO_DRIVE_TASKFILE doesn't want to
> believe the flags I set to use or not use the HOB registers?

No, that problem doesn't occur (in 2.6.24.3 anyway).

WRITE_DMA doesn't work very well when DMA isn't enabled on the drive.  I
wonder why there was such a widespread hang but not complete hang.  I can
imagine the driver not checking because the caller is responsible for the
contents of the taskfile, but I would have expected the drive to return an
error and the driver to push the error back up, instead of hanging.  Anyway 
it was my fault.

This unfortunate case was on a Dell Latitude D820 with an Intel ICH7M
chipset.  The hard drive is SATA and I don't know the interface of the DVD
drive, but Dell's BIOS sets the ICH7M to present a PATA interface with no
option to change it.  The hard drive gets /dev/hda, the DVD drive gets
/dev/hdc, DMA is disabled, and hdparm can't enable DMA on the hard drive.
Google showed me lots of complaints from people who couldn't enable DMA on
the DVD drive but it looks like I'm the only one who couldn't enable DMA on
the hard drive.  Putting hda=noprobe in the boot command line let the hard
drive become /dev/sda and speed up by a factor of 40.

I understand libata is the biggest answer.  I hope it really handles
everything but that's going to take a lot of testing to confirm.

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

             reply	other threads:[~2009-03-03 12:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 11:44 Norman Diamond [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-02-24 11:36 Kernel bug crashing in HDIO_DRIVE_TASKFILE Norman Diamond
2009-02-24 22:10 ` Chuck Ebbert
2009-02-25 11:43   ` Norman Diamond
2009-02-25 16:24     ` Mark Lord
2009-02-25 19:35       ` Bartlomiej Zolnierkiewicz
2009-02-25 21:18         ` Norman Diamond
2009-02-25 22:43           ` Mark Lord
2009-02-26 11:56             ` Norman Diamond
2009-02-28  3:14               ` Robert Hancock
2009-03-01  0:58                 ` Norman Diamond
2009-03-01  1:16                   ` Alan Cox
2009-03-01 11:06                   ` Robert Hancock
2009-03-02  0:24                     ` Norman Diamond
2009-03-02  2:38                       ` Robert Hancock
2009-03-02 11:43                         ` Norman Diamond
2009-03-11 22:33                       ` Bartlomiej Zolnierkiewicz
2009-03-11 23:00                         ` Norman Diamond

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=A1CD73CEEE9F4B0C8020D11EA243D460@DIAMOND8600 \
    --to=n0diamond@yahoo.co.jp \
    --cc=bzolnier@gmail.com \
    --cc=cebbert@redhat.com \
    --cc=hancockrwd@gmail.com \
    --cc=jens.axboe@oracle.com \
    --cc=liml@rtr.ca \
    --cc=linux-ide@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