[mythtv-users] RE: Help: issues in trying to enable DMA hard drives for mythtv...

2005-06-03 Thread Robert McRostie
Hello,
Thankyou Mark and Mike. And you are correct my Kernel did not have the 
correct SiS IDE driver installed. I did do this but your tip on removing the 
generic ide drivers was the trick. Thanks again. 

Regards,
Robert.
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] Help: issues in trying to enable DMA on hard drives for mythtv...

2005-06-02 Thread Robert McRostie

-

When I us hdparm -v /dev/hd? I get this

/dev/hda:

 Model=IC35L040AVVN07-0, FwRev=VA2OAF0C, SerialNo=VNP210B2GTKD0B
 Config={ HardSect NotMFM HdSw15uSec Fixed DTR10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=52
 BuffType=DualPortCache, BuffSize=1863kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=80416127
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1: 

 * signifies the current active mode


/dev/hdb:

 Model=CB511D ATAPI COMBO, FwRev=VER 13SA, SerialNo=
 Config={ Fixed Removeable DTR=5Mbs DTR10Mbs nonMagnetic }
 RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
 BuffType=unknown, BuffSize=0kB, MaxMultSect=0
 (maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
 IORDY=yes, tPIO={min:227,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 *udma2 
 AdvancedPM=no

 * signifies the current active mode


/dev/hdc:

 Model=WDC WD1600JB-00GVA0, FwRev=08.02D08, SerialNo=WD-WCAL92351843
 Config={ HardSect NotMFM HdSw15uSec SpinMotCtl Fixed DTR5Mbs FmtGapReq }
 RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=74
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=16
 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 
 AdvancedPM=no WriteCache=enabled
 Drive conforms to: device does not report version: 

 * signifies the current active mode
-

And also this


/dev/hda:
 multcount= 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq=  0 (off)
 using_dma=  0 (off)
 keepsettings =  0 (off)
 readonly =  0 (off)
 readahead= 256 (on)
 geometry = 65535/16/63, sectors = 41173057024, start = 0

/dev/hdb:
 IO_support   =  0 (default 16-bit)
 unmaskirq=  0 (off)
 using_dma=  0 (off)
 keepsettings =  0 (off)
 readonly =  0 (off)
 readahead= 256 (on)

/dev/hdc:
 multcount= 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq=  0 (off)
 using_dma=  0 (off)
 keepsettings =  0 (off)
 readonly =  0 (off)
 readahead= 256 (on)
 geometry = 19457/255/63, sectors = 160040803840, start = 0

-

As can be seen I do not have DMA enabled. But I think UDMA is enabled??? I know 
from reading all the stuff on mythtv that DMA is needed for mythtv to work 
well. After searching for this on the internet I found the command hdparm -d1 
/dev/hd? Which should enable dma access. But this does not work. I get an error 
stating

HID0_SET_DMA failed: Operation not permitted

I am running the command as root.

-

I also ran hdparm -tT /dev/hd? And I get this


/dev/hda:
 Timing cached reads:   1852 MB in  2.00 seconds = 924.29 MB/sec
 Timing buffered disk reads:8 MB in  3.36 seconds =   2.38 MB/sec

/dev/hdb:
 Timing buffered disk reads:  
/dev/hdc:
 Timing cached reads:   1840 MB in  2.00 seconds = 920.14 MB/sec
 Timing buffered disk reads:8 MB in  3.18 seconds =   2.51 MB/sec

Again from reading on the net the buffered disk reads are bad. Is this correct?


Anyway, I have recompiled the Kernel (which is 2.6.9 do to the custom driver 
for the DVICO card) to support the IDE controller and this did not make any 
difference. I am using a Gigabit mother board model GA-8S661FXM-775 with a p4 
on it. A pretty quick machine for this task.

So any suggestions on what to try next?

Thanks in advance for any help.

Regards,
Robert McRostie.

___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


[mythtv-users] RE: Help: issues in trying to enable DMA on hard drives for mythtv...

2005-06-02 Thread Robert McRostie
Thanks Mark. Just tried this and all worked except the DMA access. Gives the 
same error as before. Any other ideas?

/sbin/hdparm -c 3 -d 1 -m 16 -A1 /dev/hda

This means: '-c 3' enables 32 bit transfers with sync through the pci
bus, '-d 1' enables DMA operation, '-m 16' turns on multisector
transfers (with 16 sectors) and '-A1' enables the driver read ahead
feature.


Regards,
Robert.
___
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users