All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Lord <mlord@pobox.com>
To: Doug Maxey <dwm@maxeymade.com>
Cc: Linux IDE Mailing List <linux-ide@vger.kernel.org>
Subject: Re: hdparm write cache settings
Date: Tue, 19 Oct 2004 17:47:31 -0400	[thread overview]
Message-ID: <41758B73.60506@pobox.com> (raw)
In-Reply-To: <200410151948.i9FJmKMR019895@falcon30.maxeymade.com>

Hi,

Sure, I can update hdparm to first attempt HDIO_SET_WCACHE.
If that call is nak'd (usually due to lack of kernel support for it),
then hdparm will use HDIO_DRIVE_CMD as a fallback.

This is a VERY popular setting among end-users of Linux.

Cheers
-- 
Mark Lord
Real-Time Remedies Inc.
mlord@pobox.com

Doug Maxey wrote:
> Mark,
> 
> I have been tweaking the idedisk_setup() and write_cache() to handle
> drives with write cache disabled by default and the barrier settings on
> changes between WC enabled and disabled.
> 
> Bart has pointed out in offline mail, and testing has confirmed, that 
> HDIO_DRIVE_CMD is used, which bypasses the settings parameter lookup 
> in generic_ide_ioctl() of the drive settings enabled in ide_add_settings().  
> 
> Is it reasonable that a change could be made to enable the use of
> HDIO_SET_WCACHE in hdparm?
> 
> Or should I be looking to intercept the call and do The Right Thing
> (TM:) in the ide driver?
> 
> 
> ++doug
> 
> 
> 
> 
> 



  reply	other threads:[~2004-10-19 21:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-15 19:48 hdparm write cache settings Doug Maxey
2004-10-19 21:47 ` Mark Lord [this message]
2004-10-21 16:54   ` Doug Maxey

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=41758B73.60506@pobox.com \
    --to=mlord@pobox.com \
    --cc=dwm@maxeymade.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.