Re: DMA with IDE on Triton II

1997-10-24 Thread Tim Bell
Thanks Bob and Bruce for your suggestions.

Quoting Bob Nielsen ([EMAIL PROTECTED]):
 Have you compiled your kernel with
 
 CONFIG_BLK_DEV_TRITON=y

Yes, I have.

 I get:
 
 hdparm -d1 /dev/hda
 
 /dev/hda:
  setting using_dma to 1 (on)
  using_dma=  1 (on)
 
 
 However, the man page says:
 
 -d Disable/enable the using_dma flag for this drive.
   This  option  only works with a few combinations of
   ^^^
   drives and interfaces which support DMA  and  which
   ^^^
   are  known  to  the IDE driver.  In particular, the
   ^^^
 
 It could be that your controller card isn't supported.

Is there a list of supported controller cards somewhere? I couldn't
find it.

Another possibility is that I connect the hard disk to the IDE
controller on the motherboard. (I guess there's not much point using
the Ultra DMA card if I can't get it to DMA...) Does this sound
reasonable?

Tim.
-- 
Tim Bell  .--_|\ 
[EMAIL PROTECTED] /  \
Department of Computer Science   \_.--._/
University of Melbourne, Australia v


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . Trouble? 
e-mail to [EMAIL PROTECTED] .


Re: DMA with IDE on Triton II

1997-10-22 Thread Bob Nielsen
Have you compiled your kernel with

CONFIG_BLK_DEV_TRITON=y

I get:

hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 using_dma=  1 (on)


However, the man page says:

-d Disable/enable the using_dma flag for this drive.
  This  option  only works with a few combinations of
  ^^^
  drives and interfaces which support DMA  and  which
  ^^^
  are  known  to  the IDE driver.  In particular, the
  ^^^
  Intel Triton chipset is supported for  bus-mastered
  DMA  operation with many drives (experimental).  It
  is also a good idea to use the -X34 option in  com-
  bination  with  -d1 to ensure that the drive itself
  is programmed for multiword DMA mode2.   Using  DMA
  does  not  necessarily  provide  any improvement in
  throughput or system performance,  but  many  folks
  swear by it.  Your mileage may vary.

It could be that your controller card isn't supported.

On Wed, 22 Oct 1997, Tim Bell wrote:

 Hi,
 
 I've been fiddling with hdparm, trying to improve the I/O performance
 of my machine (Gateway PII 233, 96Mb, 3.2Gb IDE disk). However, I can't
 get hdparm to turn on the DMA mode:
 
   # hdparm -d1 /dev/hda
 
   /dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma=  0 (off)
 
 When I use the -X34 option also as recommended in the hdparm man page,
 I still get the same error.
 
 I have a Quantum UDMA IDE hard drive, connected to a UDMA PCI controller
 card.  Here's the interesting bits from /proc/pci:
 
   Bus  0, device  11, function  0:
 RAID bus controller: Promise Technology Unknown device (rev 1).
   Vendor id=105a. Device id=4d33.
   Medium devsel.  IRQ 9.  Master Capable.  Latency=32.  
   I/O at 0xfff0.
   I/O at 0xffe4.
   I/O at 0xffa8.
   I/O at 0xfbe4.
   I/O at 0xff80.
   Bus  0, device   7, function  1:
 IDE interface: Intel 82371SB Natoma/Triton II PIIX3 (rev 0).
   Medium devsel.  Fast back-to-back capable.  Master Capable.  
 Latency=32.  
   I/O at 0xff60.
 
 And here's the info from the drive:
 
   # hdparm -i /dev/hda
 
   /dev/hda:
 
Model=QUANTUM FIREBALL ST3.2A, FwRev=A0F.0400, SerialNo=15371126
Config={ HardSect NotMFM HdSw15uSec Fixed DTR10Mbs }
RawCHS=6256/16/63, TrkSize=32256, SectSize=512, ECCbytes=4
BuffType=3(DualPortCache), BuffSize=81kB, MaxMultSect=16, MultSect=16
DblWordIO=no, maxPIO=2(fast), DMA=yes, maxDMA=2(fast)
CurCHS=6256/16/63, CurSects=6306048, LBA=yes, LBAsects=6306048
tDMA={min:120,rec:120}, DMA modes: sword0 sword1 sword2 mword0 mword1 
 mword2 
IORDY=on/off, tPIO={min:120,w/IORDY:120}, PIO modes: mode3 mode4 
 


Bob Nielsen Internet: [EMAIL PROTECTED]
Tucson, AZ  AMPRnet:  [EMAIL PROTECTED]
http://www.primenet.com/~nielsen


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: DMA with IDE on Triton II

1997-10-22 Thread Bruce Perens
I think you have to re-build the kernel with Triton IDE DMA support enabled.

Bruce
-- 
Can you get your operating system fixed when you need it?
Linux - the supportable operating system. http://www.debian.org/support.html
Bruce Perens K6BP   [EMAIL PROTECTED]   NEW PHONE NUMBER: 510-620-3502


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .