View previous topic :: View next topic |
Author |
Message |
cconroy Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 26 Apr 2005 Posts: 81
|
Posted: Mon Nov 07, 2005 3:16 am Post subject: Can't get DMA to work for my DVD drive [SOLVED] |
|
|
UPDATE 11/26/05
For anyone else with similar issues, my solution was to change my bios settings from Combination/Pata mode to AHCI mode. I had set it to the combo mode a long time ago for some complex reasons and forgot to set it back. So if your kernel has support for your chipset compiled in, and DMA still doesn't work, go into your BIOS screen and play with the settings there!
END UPDATE
I can't seem to get DMA enabled on my DVD drive
Code: | lspci
0000:00:00.0 Host bridge: Intel Corporation 925X/XE Memory Controller Hub (rev 04)
0000:00:01.0 PCI bridge: Intel Corporation 925X/XE PCI Express Root Port (rev 04)
0000:00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
0000:00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
0000:00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
0000:00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
0000:00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
0000:00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
0000:00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
0000:00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3)
0000:00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
0000:00:1f.2 IDE interface: Intel Corporation 82801FR/FRW (ICH6R/ICH6RW) SATA Controller (rev 03)
0000:00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)0000:01:00.0 VGA compatible controller: ATI Technologies Inc R423 5F57 [Radeon X800XT (PCIE)]
0000:01:00.1 Display controller: ATI Technologies Inc: Unknown device 5d77
0000:02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express (rev 01)
0000:04:00.0 Communication controller: Conexant: Unknown device 2f20
0000:04:01.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
0000:04:01.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port (rev 04)
0000:04:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)
|
My DVD drive:
Code: | hdparm -i /dev/hdd
/dev/hdd:
Model=Philips DVD+RW DVD8601, FwRev=6D11, SerialNo=MY0D61227015948B01EA
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: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
AdvancedPM=no
* signifies the current active mode
|
Me trying to enable DMA:
Code: | hdparm -d 1 /dev/hdd
/dev/hdd:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
|
Here's what (i think) are the relevent portions of my kernel config
Code: | #
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_IDEDISK is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set
#
# 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 is not set
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_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
#
# SCSI device support
#
CONFIG_SCSI=y
CONFIG_SCSI_PROC_FS=y |
Any ideas for getting this enabled? No movies on the computer for me until it does ![Sad :-(](images/smiles/icon_sad.gif)
Last edited by cconroy on Sat Nov 26, 2005 7:54 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cokey Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/118296711658419dd94462d.jpg)
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Mon Nov 07, 2005 8:19 am Post subject: |
|
|
too much info.
do this and post the results: Code: | cat /usr/src/linux/.config | grep DMA |
_________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cconroy Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 26 Apr 2005 Posts: 81
|
Posted: Mon Nov 07, 2005 5:34 pm Post subject: |
|
|
sorry, wasn't sure exactly what is/isn't relevant...if I did i guess I wouldn't have to ask this question
btw. I'm running gentoo-sources-2.6.11-r6
Code: | # cat /usr/src/linux/.config | grep DMA
CONFIG_GENERIC_ISA_DMA=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_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cokey Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/118296711658419dd94462d.jpg)
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Mon Nov 07, 2005 8:14 pm Post subject: |
|
|
cconroy wrote: | sorry, wasn't sure exactly what is/isn't relevant...if I did i guess I wouldn't have to ask this question
btw. I'm running gentoo-sources-2.6.11-r6
Code: | # cat /usr/src/linux/.config | grep DMA
CONFIG_GENERIC_ISA_DMA=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_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
|
| that is all fine so it must be something to do with hdparm. Code: | HDIO_SET_DMA failed: Operation not permitted | that seems like you are almost doing it as a user. Are you doing it as root? _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
cconroy Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 26 Apr 2005 Posts: 81
|
Posted: Tue Nov 08, 2005 12:19 am Post subject: |
|
|
yup, i'm su'ing up before i do anything with hdparm
I know it's not a hardware problem per-say because it works fine in Windows.
I saw elsewhere that setting -X66 sets udma2 (which according to the info, my drive supports)
it appears to have success:
Code: | chris # hdparm -X66 /dev/hdd
/dev/hdd:
setting xfermode to 66 (UltraDMA mode2)
|
but DVD playback is still unacceptably jerky and crappy... and hdparm -d 1 fails like i listed before.
could this maybe be a conflict with hald or udev? i doubt it because you don't need to mount the drive in order to play DVDs, but just a thought |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|