LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-06-2008, 04:43 AM   #1
alexander_bosakov
Member
 
Registered: Mar 2006
Location: Plovdiv, Bulgaria
Distribution: OpenSuse 11.3
Posts: 55

Rep: Reputation: 15
How to tweak DMA settings for /dev/sr* ?


Hi,
I'd recently installed OpenSUSE 10.3, and now my IDE drives are represented as SCSI ones - sd* and sr*, instead of hd* from my previous distro. All of them are old pATA and ATAPI, not Serial ATA ones: sda - my hard drive (ex hda), sr0 and sr1 - my DVD-RW and CD-RW (ex hdc and hdd). The question is - how to set the DMA modes for the optical drives. Before the new distro, it was "hdparm -d ...", but with the SCSI representation, this doesn't work anymore. Please, don't tell me, that it's enabled by default, that the SCSI driver sets the maximum settings, etc. I'd read all this for the last 2 days of googling. Yet, for some unknown reason, my drive sometimes switches the DMA off or to a lower udma mode (did so on my previous distro too). Before, the workaround was simply "hdparm -d1 /dev/hdc". What's the command now?
 
Old 06-06-2008, 07:31 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
thanks 4 bringing this to my own attn

install sdparm and try man sdparm or here
http://sg.torque.net/sg/sdparm.html

edit

so this was a little useful for me
sdparm --page=rw --long /dev/sr0

Last edited by aus9; 06-06-2008 at 07:45 AM.
 
Old 06-06-2008, 07:49 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
I'd recently installed OpenSUSE 10.3, and now my IDE drives are represented as SCSI ones - sd* and sr*, instead of hd*
Since kernel 2.6.20 or thereabouts, the hd* is dropped in favor of s**. My IDE drives show up as sd* and my SATA drives show up as sr*.
 
Old 06-06-2008, 07:53 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
back to hdparm....insert a disc and
hdparm -I /dev/sr0

I get on first try
/dev/sr0:

ATAPI CD-ROM, with removable media
Model Number: PIONEER DVD-RW DVR-111D
Serial Number: FCDL192208WL
Firmware Revision: 1.06
Standards:
Likely used CD-ROM ATAPI-1
Configuration:
DRQ response: 50us.
Packet size: 12 bytes
Capabilities:
LBA, IORDY(can be disabled)
Buffer size: 64.0kB
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 *udma4
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=240ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* Power Management feature set
* PACKET command feature set
* DEVICE_RESET command
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
 
Old 06-06-2008, 07:57 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
BTW I hope you are not comparing opensuse 10.3 with mdk 10 as we mdv users are now up to mdv 2008.1
 
Old 06-06-2008, 11:34 AM   #6
alexander_bosakov
Member
 
Registered: Mar 2006
Location: Plovdiv, Bulgaria
Distribution: OpenSuse 11.3
Posts: 55

Original Poster
Rep: Reputation: 15
I have sdparm, and briefly read the man-page, but nowhere I saw something remotely related to the DMA. BTW, while searching, I passed through a page, describing how to revert to /dev/hd* behavior, but I forgot the URL, and moreover, as far as I remember, it was written before the 2.6.20. I'm not comparing Suse with the recent Mandriva though, before installing Suse, I was on Mandriva 2007, not 08. Is it possible to get the old way with a recent kernel? See, before I could write at speed 8-9, now it barely gets 2-3, and the buffer is constantly going low - just a bit better than my previous system with DMA-off. As I wrote, all my drives are Parallel ATA, the computer is fairly old.
 
Old 06-06-2008, 07:16 PM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
well it must be the scripts for opensuse cos mdv 2008.1 already has my dvd at udma4.

I did try -d1 and got an error but you are right sdparm does not appear to have dma as such I am referring to hdparm (commnand) /dev/sr0 or sr1 etc
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tweaking Hidden Ubuntu Settings With Ubuntu Tweak LXer Syndicated Linux News 0 01-27-2008 05:50 PM
Enabling DMA on my /dev/hda Riddick Slackware 11 12-13-2005 07:28 PM
How can I tweak internet/mtu settings in linux cbjhawks Linux - General 1 01-19-2004 11:41 AM
DMA settings won't save willywonka Slackware 4 04-12-2003 07:38 PM
DMA on /dev/hda but not on /dev/dvd jslade Linux - Hardware 4 04-07-2003 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration