Is there DMA for SATA Optical Drives? Or is my inspiron optical not supported (yet)?
I'm having for the first time in 3 years, choppyness in my DVD playback. This is with my new laptop a DELL Inspiron E1505 Custom(but no the drive). Would like to know if this is indeed a SATA drive (if anyone owns this model Dell laptop or similar, since the laptops don't seem to change all that much except the GPU and CPU), or if it is an IDE drive. If it is a SATA where in the kenerl am I able to enable DMA for my drive? I have tried generic DAM acceleration but that is not for SATA drives. Under Serial devices,(I believe that is what it is called, I'll have to look it up once more, bad recall memory) I cannot find anything that has to do with DMA acceleration, unless there isn't any at all.
What should I do to get DMA acceleration? |
DMA is supposedly not needed for SATA here is what I have set for the IDE variety.
Code:
>$ grep -i idedma /boot/config-2.6.17-ck1-smp |
Thank you, afer reviewing dmesg and chatting with someone from dell support chat. (that is terrible by the way) Though, I got next to nothing from Dell (I'm suprised to say after fighting about me not using Windows but using Linux, the person sent me a link out of the blue to enable DMA for Linux, strange), dmesg and lspci seems to tell me I'm using an IDE chipset named ICH7 from intel... sadly, I only see ICH5 in the Linux kernel. My question is, is there any hope of me being able to enable any sort of DMA acceleration?
|
Check to see if the options above are enabled. Also what kernel are you using?
|
2.6.17.6 vanilla sources from gentoo, not the gen kernel. When I passed that arguement above, I got no results, but no errors.
|
Quote:
|
I see, here we go now:
Code:
george@geotop /usr/src/linux $ grep -i idedma /usr/src/linux/.config |
That looks ok can you install hdparm and check the output of hdparm /dev/hd? changing the ? to the drive letter of the CD to see if the DMA is enabled. If not then try hdparm -d1 /dev/hd? to see if it will let you set it if this works then put the command in a script that runs at startup to have it set on boot in Debian you can do the same by editing the /etc/hdparm.conf perhaps Gentoo has a similar setup and you may not have to put it in a script.
|
Code:
geotop linux # hdparm /dev/hdc --EDIT-- Passing values such as Code:
hdparm -d1 /dev/hdc Code:
geotop linux # hdparm -d1 /dev/hdc |
Quote:
Code:
HappyTux:/home/stephen# hdparm /dev/hdc |
Thank you! I believe I found out my problem from the link you showed me! I'll get back to you after I reboot to see if it worked!
|
Well, I got what I needed. It was to tick off "Intel PIIXn chipsets support" in "ATA/ATAPI/MFM/RLL support", when configuring your kernel. I don't remember exactly trying to enable settings in hdparm using the following command:
Code:
hdparm -c1 -u1 -d1 -a1 /dev/hdc Code:
geotop george # hdparm /dev/hdc |
Quote:
Code:
grep -i dma /boot/config-2.6.17-ck1-smp |
I have the same laptop and have been working on this for a while. I think the problem has to do with 2.6.17 kernel not supporting ICH7, you can look at it here. The issue was supposed to be fixed in 2.6.18 as the patch went mainstream, but I still can't get it working. Try upgrading the kernel or using the patch a few replies later in the thread and let me know if you have any success.
|
Actually it looks like using the new kernel UDMA is enabled by default. You cannot change this and I dont believe there is DMA on SATA drives. hdparm -i /dev/hdc gives me:
/dev/hdc: Model=SONY DVD+/-RW DW-Q58A, FwRev=UDS2, 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: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=no Drive conforms to: Unspecified: ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7 * signifies the current active mode So, Im guessing udma2 is running. I just wish dvd playback wasnt so choppy. |
All times are GMT -5. The time now is 04:34 PM. |