UNSOLVED

Ydef

updated

22 years ago

Y

Ydef

3 Posts

0

2345

March 23rd, 2005 20:00

Why can I not turn DMA on for /dev/hda on my Latitude D610?

I replaced my stock drive with the drive from my older D600 since it is a faster and larger drive. It still works perfectly on the d600 but on the d610 i'm not allowed to turn DMA on, either in the bios or using hdparm from commandline or at startup.

I get errors like this:

Wed Mar 23 09:32:04 2005: Setting parameters of disc: HDIO_SET_DMA failed: Operation not permitted

That is WEAK!!!


Anyone know why this happens and how to fix it so I can set dma on it? Again, it is not the drive that's the problem but some dell specific lameness.
  • 379

    0

    Posted April 4th, 2005 14:00

    I have the same problem.
     
    I already lost quiet some time trying to get my screen running on its native resolution and now there's this problem. I have the intel 915 chipset (no ATI video).
     
    I have looked around on the internet but couldn't find a solution at all. Because dma is not working I can't even use this notebook to watch a DVD.
  • 379

    0

    Posted April 4th, 2005 14:00

    Just a bit more information: I use suse9.2 on the D610 and have the original harddisk and DVD writer.
  • BobThomp

    7 Posts

    379

    0

    Posted April 29th, 2005 19:00

    Assuming that your D610 is like mine...

    ... my Fujitsu MHT2080A (80GB drive) is a Serial ATA (SATA) drive. I made the mistake of assuming that the drive was called /dev/hda ... but it isn't! It is called /dev/sda, using the SCSI disk naming convention.

    I'd never used an SATA drive under Linux before, but from what I can tell, SATA drives are used with SCSI emulation mode. If I look in /var/log/dmesg (or "dmesg | less", if that file doesn't exist on your system), I see:

    ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xBFA0 irq 14
    ata1: dev 0 cfg 49:2b00 82:346b 83:5b29 84:4003 85:3469 86:1a09 87:4003 88:203f
    ata1: dev 0 ATA, max UDMA/100, 156301488 sectors:
    ata1: dev 0 configured for UDMA/100
    scsi0 : ata_piix
    Vendor: ATA Model: FUJITSU MHT2080A Rev: 006C
    Type: Direct-Access ANSI SCSI revision: 05
    SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
    SCSI device sda: drive cache: write back
    sda: sda1 sda2 sda3 sda4 < sda5 >

    The "hdparm" utility only works on IDE disks, not SCSI. My understanding of the stuff above is that the SCSI emulation and/or ata_piix driver has configured the SATA interface to use UDMA/100.

    The "write back" cache thing really bothers me. I've had one too many corrupted file systems due to the disk lying about "yeah, I really wrote that data to the disk platter". I don't know yet how to disable the write-back cache for a SCSI disk (i.e. the equivalent of "hdparm -W 0"). Anyone know?
  • BobThomp

    7 Posts

    379

    0

    Posted April 29th, 2005 19:00

    Oops, I forgot to mention one other thing about the SATA/SCSI driver stuff.

    While searching the ubuntuforums.org for help on a suspend to RAM (S3)/resume problem with the D610, I found a number of complaints about various Ubuntu, Debian, and other distibutions that could not see the hard drive and/or CD-ROM after booting from the installation CD-ROM.

    Those distributions (usually older ones) don't have support for SATA drives, so they can't see the hard drive. I don't know if that's the same cause of the CD-ROM invisibility, but the answers appeared to be: use a newer distribution that contains SATA support.
  • CartmanBro

    16 Posts

    379

    0

    Posted May 1st, 2005 14:00

    Hello,

    Consider using a later kernel. I'm using Slackware 10.1. I had the same problem as you
    with the 2.4 kernel, after compiling 2.6.11-7 I now have dma for the HD. The 2.6 kernels will list the device as /dev/sda not /dev/hda.

    The problem I have now is dma for the Philips DVD drive. I cannot get that to work
    with 2.4 or the 2.6 kernel. I have recompiled quite a few kernels already. Right now
    I use % hdparm -c1 -a1 -u1 /dev/hdc
    to get some speedup, -d1 will give me the "operation not permitted" error.
  • Ydef

    3 Posts

    379

    0

    Posted May 5th, 2005 19:00

    Actually I never run anything BUT the latest kernels. At the moment I'm running 2.6.11-cko5 , with cko being the best patchset available for laptop and workstation power users imho.

    Nevertheless, thanks for the replies, though I finally figured out it had to do with requiring inclusion of the libata sata options when recompiling the kernel even though /dev/hda is ide and not sata, the libata driver handles both.

    thanks for all who replied.
  • jajjg

    1 Message

    379

    0

    Posted February 2nd, 2006 22:00

    I am having the same problem on the d610, using slack 10.2 although the kernel is 2.4.x.

    I've noticed a few people resolve this because of the HD being SATA not ATA.
    However in my case it's an ATA drive, MHV2060AH Fujitsu.

    Anyone else in my shoes? is upgrading to the 2.6.x kernel the solution?