Re: Convenient way to enable IDE DMA

2002-08-27 Thread Chris Halls
On Mon, Aug 26, 2002 at 12:11:18PM -0700, Nate Eldredge wrote:
> The other question is how it should be enabled.  One way is "hdparm -d 1
> /dev/hd?" or moral equivalent in an init script.  

The hwtools package includes a script with a placeholder for such hdparm
tuning in /etc/init.d/hwtools:

# hdparm optimization
# Switches on interrupts during transfers and does multi sector transfers
if command -v hdparm >/dev/null 2>&1; then
#   hdparm -q [PUT ARGS HERE]
   true
fi

Chris


pgpyrZxQJP5Xx.pgp
Description: PGP signature


Re: Convenient way to enable IDE DMA

2002-08-26 Thread Ian Eure
On Monday 26 August 2002 12:45 pm, Nate Eldredge wrote:
> As for hdparm, this is complicated with ide-scsi.  For ide-scsi to work
> you have to make the ide-cd module ignore the scsi-ified drive.  In which
> case /dev/hdc or whatever it is won't work until you have loaded the
> ide-scsi module, perhaps by touching /dev/scd0.  So at least in my setup,
> further complications are needed.
>
Be warned, ide-scsi resets the using_dma flag when it's loaded. This is an 
even bigger problem with devfs, because after ide-cd is unloaded there is no 
/dev/hd? node to feed hdparm. The only workaround I've found so far is to 
create a temporary device node, /tmp/hdd, load ide-scsi, and `hdparm -d 1 
/tmp/hdd'.

Oh, you can get some pretty decent improvements with `hdparm -c 1' as well. 
It toggles 12/32-bit IDE transfer modes, and isn't reset by ide-scsi.

Found all this out trying to get my new PlexWriter 40/12/40a 40x CD-RW drive 
to burn discs full speed.

-- 
"das ist liebe, das ist hass / mit eifersucht vermahlen"




Re: Convenient way to enable IDE DMA

2002-08-26 Thread Joseph Carter
On Mon, Aug 26, 2002 at 12:45:54PM -0700, Nate Eldredge wrote:
> > The other question is how it should be enabled.  One way is "hdparm -d 1
> > /dev/hd?" or moral equivalent in an init script.  Another way appears to
> > be "hda=dma ..." or "ide0=dma ..." on the kernel command line, though I
> > haven't tested this yet.  Apparently there are also CD-ROM drives for
> > which it should not be enabled.
> 
> Further info: "hda=dma" doesn't seem to exist, I was mistaken.  "ide0=dma"
> doesn't actually enable dma, for some reason.  "ide0=autotune" doesn't
> either.  Grr.
> 
> As for hdparm, this is complicated with ide-scsi.  For ide-scsi to work
> you have to make the ide-cd module ignore the scsi-ified drive.  In which
> case /dev/hdc or whatever it is won't work until you have loaded the
> ide-scsi module, perhaps by touching /dev/scd0.  So at least in my setup,
> further complications are needed.
> 
> (Btw: a nice way to enable ide-scsi might be nice as well.  CD burners are
> becoming very common.)

You mean something like maybe with 2.4:

# CONFIG_BLK_DEV_IDECD is not set
CONFIG_BLK_DEV_IDESCSI=y

CONFIG_BLK_DEV_ADMA=y
CONFIG_BLK_DEV_PDC202XX=y
CONFIG_BLK_DEV_VIA82CXXX=y
CONFIG_IDEDMA_AUTO=y


Substitute PDC202XX/VIA82CXXX for your chipset(s), of course.

Also, devfs makes the scripts more sane if you wanna do hdparm things at
bootup since you only see the devices you've actually got in the
filesystem.  If someday a Debian installation uses 2.4+ kernels only,
Debian should be using devfs by default.  Won't happen till then because
Herbert Xu would sooner cut his wrists than apply a patch to Debian's
kernels which was not required to make the thing compile and boot.

-- 
Joseph Carter <[EMAIL PROTECTED]>  You're entitled to my opinion
 
 unclean: err, the admin team do not control the archive, that's the
   ftp cabal
 get your cabals right, damn it :-P



pgpoq0pf0qDY9.pgp
Description: PGP signature


Re: Convenient way to enable IDE DMA

2002-08-26 Thread tomas p
On Mon, 26 Aug 2002, Nate Eldredge wrote:

> Thoughts?

Propose a patch against the hdparm package?






Re: Convenient way to enable IDE DMA

2002-08-26 Thread Nate Eldredge
On 26 Aug 2002, Federico Di Gregorio wrote:

> Il lun, 2002-08-26 alle 21:45, Nate Eldredge ha scritto:
>
> > As for hdparm, this is complicated with ide-scsi.  For ide-scsi to work
> > you have to make the ide-cd module ignore the scsi-ified drive.  In which
> > case /dev/hdc or whatever it is won't work until you have loaded the
> > ide-scsi module, perhaps by touching /dev/scd0.  So at least in my setup,
> > further complications are needed.
> >
> > (Btw: a nice way to enable ide-scsi might be nice as well.  CD burners are
> > becoming very common.)
>
> hdc=ide-scsi as a boot param. but don't ask me where i found it, i don't
> remember.

Not sufficient for the kernel-image packages, since everything is a
module.  A couple extra lines are also needed in /etc/modules.  Not a huge
issue, but something a newbie might not know to do.

-- 
Nate Eldredge
HMC CS Staff
[EMAIL PROTECTED]




Re: Convenient way to enable IDE DMA

2002-08-26 Thread Nate Eldredge
On Mon, 26 Aug 2002, Nate Eldredge wrote:

> On Mon, 26 Aug 2002, Nate Eldredge wrote:
>
> > The other question is how it should be enabled.  One way is "hdparm -d 1
> > /dev/hd?" or moral equivalent in an init script.  Another way appears to
> > be "hda=dma ..." or "ide0=dma ..." on the kernel command line, though I
> > haven't tested this yet.  Apparently there are also CD-ROM drives for
> > which it should not be enabled.
>
> Further info: "hda=dma" doesn't seem to exist, I was mistaken.  "ide0=dma"
> doesn't actually enable dma, for some reason.  "ide0=autotune" doesn't
> either.  Grr.

... which is apparently because ide is a module in the 2.4.18 kernel image
package.  So in order to set it, it looks like I have to change it in the
initrd filesystems and rebuild the image.  Even more of a pain.

-- 
Nate Eldredge
HMC CS Staff
[EMAIL PROTECTED]




Re: Convenient way to enable IDE DMA

2002-08-26 Thread Federico Di Gregorio
Il lun, 2002-08-26 alle 21:45, Nate Eldredge ha scritto:

> As for hdparm, this is complicated with ide-scsi.  For ide-scsi to work
> you have to make the ide-cd module ignore the scsi-ified drive.  In which
> case /dev/hdc or whatever it is won't work until you have loaded the
> ide-scsi module, perhaps by touching /dev/scd0.  So at least in my setup,
> further complications are needed.
> 
> (Btw: a nice way to enable ide-scsi might be nice as well.  CD burners are
> becoming very common.)

hdc=ide-scsi as a boot param. but don't ask me where i found it, i don't
remember.

-- 
Federico Di Gregorio
Debian GNU/Linux Developer & Italian Press Contact[EMAIL PROTECTED]
INIT.D Developer   [EMAIL PROTECTED]
  Qu'est ce que la folie? Juste un sentiment de liberté si
   fort qu'on en oublie ce qui nous rattache au monde... -- J. de Loctra


signature.asc
Description: PGP signature


Re: Convenient way to enable IDE DMA

2002-08-26 Thread Nate Eldredge
On Mon, 26 Aug 2002, Nate Eldredge wrote:

> The other question is how it should be enabled.  One way is "hdparm -d 1
> /dev/hd?" or moral equivalent in an init script.  Another way appears to
> be "hda=dma ..." or "ide0=dma ..." on the kernel command line, though I
> haven't tested this yet.  Apparently there are also CD-ROM drives for
> which it should not be enabled.

Further info: "hda=dma" doesn't seem to exist, I was mistaken.  "ide0=dma"
doesn't actually enable dma, for some reason.  "ide0=autotune" doesn't
either.  Grr.

As for hdparm, this is complicated with ide-scsi.  For ide-scsi to work
you have to make the ide-cd module ignore the scsi-ified drive.  In which
case /dev/hdc or whatever it is won't work until you have loaded the
ide-scsi module, perhaps by touching /dev/scd0.  So at least in my setup,
further complications are needed.

(Btw: a nice way to enable ide-scsi might be nice as well.  CD burners are
becoming very common.)

-- 
Nate Eldredge
HMC CS Staff
[EMAIL PROTECTED]