mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Jeremy Jackson <jerj@coplanar.net>
Cc: Ron House <house@usq.edu.au>, Bill Davidsen <davidsen@tmr.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: hdparm and removable IDE?
Date: 28 Mar 2003 16:55:34 +0000	[thread overview]
Message-ID: <1048870533.5055.13.camel@dhcp22.swansea.linux.org.uk> (raw)
In-Reply-To: <1048860279.1615.13.camel@contact.skynet.coplanar.net>

On Fri, 2003-03-28 at 14:04, Jeremy Jackson wrote:
> It might be better to say not supported fully, or support not complete. 
> Most chipsets and their linux drivers have the ability to tristate-off
> the IDE bus, making it work safely on the electrical level.  Switching
> off the power to the drive has to be provided by the swap bay in
> question.  I can get that for $17 CDN.  But...

Hardly "most", I think its two

> This is another piece of the puzzle.  The kernel buffer-cache can be
> flushed by a simple sync command.  I've only seen the IDE write cache

And on umount by 2.5, or always on 2.4 as well if the device is marked
removable

> What can be done at boot... correct.  However, the BIOS does part of the
> BOOT init, the linux kerenel IDE driver does some more.  So changing the
> drive without rebooting through BIOS can be a problem.  The PIO modes
> are the issue here.  Perhaps a script can do hdparm -X somehow, but
> nobody is certain if it will be reliable, because who knows what the
> bios does.  With LinuxBIOS there is hope though.

Not really the PIO modes. In fact the PIO modes are generally just fine.
The problems are mostly at the DMA and UDMA end of things where there
is complex setup or interactions involved.

> IMHO the ide driver is a real mess.  statically allocated structures,

You bet.

> because the kernel command line parameters have to be read early because
> they're so wierd, no wonder the hdparm -U / -R stuff is busted.  It
> should take the PCI ID of the interface, not the io ports.  Fixing this
> is on my hit list, in about a month.

2.7 at the earliest, and only if there is a general buy in about such a
change to the init handling. Similarly the big issues with hdparm -U and
-R are the same as with hotplug races, and will take a lot more than
quick hacks to fix.

Alan


  reply	other threads:[~2003-03-28 16:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-26  4:41 Ron House
2003-03-26 14:33 ` Alan Cox
2003-03-26 18:11   ` Bill Davidsen
2003-03-28  3:21     ` Ron House
2003-03-28 14:04       ` Jeremy Jackson
2003-03-28 16:55         ` Alan Cox [this message]
2003-03-29 11:34         ` Andre Hedrick
2003-03-31  4:41           ` Ron House
2003-03-31  9:30             ` John Bradford
2003-03-31 11:08               ` Alan Cox
2003-03-31 11:21                 ` John Bradford
2003-03-31 11:43                   ` Alan Cox
2003-03-31 19:14         ` Bill Davidsen
2003-03-31 20:48           ` Jeremy Jackson
2003-03-28  3:03   ` Ron House
2003-03-28 17:17     ` Alan Cox

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=1048870533.5055.13.camel@dhcp22.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=davidsen@tmr.com \
    --cc=house@usq.edu.au \
    --cc=jerj@coplanar.net \
    --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®