Bug 71879 - no DMA mode set for SATA drive
Summary: no DMA mode set for SATA drive
Status: RESOLVED FIXED
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: unspecified
Hardware: x86-64 SUSE Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ladislav Slezák
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-09 18:32 UTC by Joachim Werner
Modified: 2008-01-31 14:24 UTC (History)
2 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Werner 2005-03-09 18:32:05 UTC
On an x86-64 system with SATA drive (at least on mine) clicking on the "IDE 
DMA Modus" displays the HD. No DMA mode is set. 
 
I don't know if it is necessary for SATA drives to set DMA, but either it 
should be set automatically or the disk shouldn't appear in the list of 
drives.
Comment 1 Lukas Ocilka 2005-03-10 11:27:58 UTC
Assigning to the yast2-tune maintainer
Comment 2 Ladislav Slezák 2005-03-10 12:15:45 UTC
The DMA mode is enabled by default, yast just doesn't know which mode is current
(133MB/s or 100MB/s or ...).

I reproduced it on a testmachine. The problem is that hdparm -i doesn't print
DMA mode line, but hdparm -I does. Yast unfortunately uses -i. I'll change it to
-I parameter instead.
Comment 3 Ladislav Slezák 2005-03-10 14:19:25 UTC
Another problem is that 'hdparm -d <disk>' doesn't work correctly with SATA
drives (at least it happens on a test machine).
Comment 4 Ladislav Slezák 2005-03-10 14:52:13 UTC
'hdparm -d <disk>' works corectly with PATA drives, with SATA drives it returns
error "HDIO_GET_DMA failed: Inappropriate ioctl for device". 'hdparm -I <disk>'
works correctly with both drive types.

So the question is whether it's possible to get (and set) DMA status for SATA
drives at all. It may be problem of the test machine to which I have access or
it may be a general SATA problem.

Rudi?
Comment 5 Ruediger Oertel 2005-03-10 23:51:31 UTC
AFAIR dma-control of SATA drives is not supported in hdparm 
(meaning in the kernel ioctls used by hdparm). Jens or Vojtech 
might be able to tell details. 
Comment 6 Ladislav Slezák 2005-03-11 15:49:18 UTC
I just have asked Vojtech: SATA always use DMA, it's similar to SCSI.

So SATA disks shoud not be displayed in the table. I'll fix that.

Comment 7 Ladislav Slezák 2005-03-14 16:18:32 UTC
fixed in yast2-tune-2.11.6
Comment 8 Martin Vidner 2008-01-31 14:21:38 UTC
Making the bug public to explain why the YaST IDE DMA module was dropped.