Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dvd slow to play, cd even slower, dma?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
TheAxeMaster
n00b
n00b


Joined: 17 Sep 2003
Posts: 50

PostPosted: Fri Mar 24, 2006 1:40 am    Post subject: dvd slow to play, cd even slower, dma? Reply with quote

Sorry for the repeated DMA-type question, its sometimes difficult to find the solution while searching ( I did it all last night and didn't find anything definative). I'm pretty sure I need to set another compile option to get this working properly, but I don't know what it is. My DVD playing is a little slow and choppy, and here's some evidence:
Code:
htpc linux # hdparm -Tt /dev/hda

/dev/hda:
 Timing cached reads:   2228 MB in  2.00 seconds = 1116.16 MB/sec
 Timing buffered disk reads:   10 MB in  3.56 seconds =   2.81 MB/sec

The first number doesn't seem bad, but the second one does. At least, to play a dvd anyway. CDs absolutely chug, it plays about 2 seconds of audio, half a second pause, repeat. I'm pretty sure I can fix that problem with the suggestion found here I have that exact same drive:
Code:
htpc dev # hdparm -i /dev/dvdrw

/dev/dvdrw:

 Model=LITE-ON DVDRW SOHW-1693S, FwRev=KS09, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs 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
 Drive conforms to: device does not report version:

 * signifies the current active mode

hdparm completely fails when I try to do the timing test with a CD. Doesn't even give timings. What I don't know, and what I'm hoping you all can help me with, is what kernel option I've missed that's making this not function correctly. I'm kind of worried that its not using any sort of dma mode at all, but trying to set a mode through hdparm doesn't work. It says permission denied. Here is what lspci says:
Code:
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
0000:00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)

The relevant bits anyway. And here's part of my .config:
Code:
#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
CONFIG_BLK_DEV_CMD640=y
# CONFIG_BLK_DEV_CMD640_ENHANCED is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
CONFIG_BLK_DEV_RZ1000=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_IT821X is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
# CONFIG_IDE_CHIPSETS is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
# CONFIG_BLK_DEV_HD is not set
If you need any more of that let me know. I'm just more than a little lost at this point. I appreciate the help.
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Fri Mar 24, 2006 10:31 am    Post subject: Reply with quote

What does it say when you do this and what is hdparm -i
# hdparm -u 1 -W 1 -c 1 -d 1 -a 2048 -P 1024 -S 52 -X 69 /dev/hda
Back to top
View user's profile Send private message
TheAxeMaster
n00b
n00b


Joined: 17 Sep 2003
Posts: 50

PostPosted: Sat Mar 25, 2006 2:39 am    Post subject: Reply with quote

Here is the first result:
Code:
htpc Contact # hdparm -u 1 -W 1 -c 1 -d 1 -a 2048 -P 1024 -S 52 -X 69 /dev/hda

/dev/hda:
 setting fs readahead to 2048
 setting 32-bit IO_support flag to 1
 setting unmaskirq to 1 (on)
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 setting drive prefetch to 1024
 HDIO_DRIVE_CMD(setprefetch) failed: Input/output error
 setting xfermode to 69 (UltraDMA mode5)
 setting drive write-caching to 1 (on)
 HDIO_DRIVE_CMD(setcache) failed: Input/output error
 setting standby to 52 (4 minutes + 20 seconds)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  0 (off)
 readahead    = 2048 (on)


And the second:
Code:
htpc Contact # hdparm -i /dev/hda

/dev/hda:

 Model=LITE-ON DVDRW SOHW-1693S, FwRev=KS09, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs 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
 Drive conforms to: device does not report version:

 * signifies the current active mode


Trying to change the dma mode with hdparm fails.
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Sat Mar 25, 2006 3:57 am    Post subject: Reply with quote

It can't do udma5 maybe thats why. try
# hdparm -u 1 -W 1 -c 1 -d 1 -a 2048 -P 1024 -S 52 -X 66 /dev/hda
Back to top
View user's profile Send private message
TheAxeMaster
n00b
n00b


Joined: 17 Sep 2003
Posts: 50

PostPosted: Sun Mar 26, 2006 11:36 pm    Post subject: Reply with quote

Code:
# hdparm -u 1 -W 1 -c 1 -d 1 -a 2048 -P 1024 -S 52 -X 66 /dev/hda

/dev/hda:
 setting fs readahead to 2048
 setting 32-bit IO_support flag to 1
 setting unmaskirq to 1 (on)
 setting using_dma to 1 (on)
 HDIO_SET_DMA failed: Operation not permitted
 setting drive prefetch to 1024
 HDIO_DRIVE_CMD(setprefetch) failed: Input/output error
 setting xfermode to 66 (UltraDMA mode2)
 setting drive write-caching to 1 (on)
 HDIO_DRIVE_CMD(setcache) failed: Input/output error
 setting standby to 52 (4 minutes + 20 seconds)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  0 (off)
 readahead    = 2048 (on)
htpc ben # hdparm -i /dev/hda

/dev/hda:

 Model=LITE-ON DVDRW SOHW-1693S, FwRev=KS09, SerialNo=
 Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs 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
 Drive conforms to: device does not report version:

 * signifies the current active mode


Doesn't seem to make a difference. BUT, I think its just the player that I'm using. I've been just running stuff through mythtv/mythmusic and the playback wasn't that great. I've tried some other stuff for the audio CDs at least and the playback is great. So I don't really think there is anything wrong with my drive settings anymore. I should have done more testing before I asked. Thanks a lot for your suggestions.
Back to top
View user's profile Send private message
augury
l33t
l33t


Joined: 22 May 2004
Posts: 722
Location: philadelphia

PostPosted: Mon Mar 27, 2006 2:50 am    Post subject: Reply with quote

I did a google search for your drive and it seems like there may be a bug in some of the older kernels. Try 2.6.16.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum