A while ago (January or so) I wrote about ide-scsi using so much cpu power when writing. It was suggested that DMA wasn't enabled on the CD-RW drive. What I didn't understand was that DMA needed to be enabled for the corresponding /dev/hdx device - I didn't know you could do that. Found that out thanks to a typo, and now all is fine. I can burn at any speed, and CPU usage remain low (althoug still higher than in windows). Now my question. dmesg shows me the following: VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1 ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdc:DMA, hdd:DMA hda: ST340810A, ATA DISK drive hdc: HL-DT-STDVD-ROM GDR8161B, ATAPI CD/DVD-ROM drive hdd: HL-DT-ST GCE-8481B, ATAPI CD/DVD-ROM drive so the kernel is a ware of the DVD and CD-RW drives' DMA capabilities. Why doesn't it enable it by default? Is there a bootparameter that will tell the kernel to switch it on? This would help with installations! (see my other post) Thanks Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
The 03.05.03 at 23:30, H du Plooy wrote:
What I didn't understand was that DMA needed to be enabled for the corresponding /dev/hdx device - I didn't know you could do that. Found that out thanks to a typo, and now all is fine. I can burn at any speed, and CPU usage remain low (althoug still higher than in windows).
Ah! :-O Yes, out of curiosity, I just reviewed that conversation, and it seems nobody told you that explicitly. It's a question many times asked, so we didn't explain it fully... curious.
so the kernel is a ware of the DVD and CD-RW drives' DMA capabilities. Why doesn't it enable it by default?
Good question. Probably because sometimes it may not work.
Is there a bootparameter that will tell the kernel to switch it on? This would help with installations! (see my other post)
Er... there is an option on the sources to turn it on by default if available. Let me see... here, this is how the kernel is set up: ATA/IDE/MFM/RLL support ---> IDE, ATA and ATAPI Block devices ---> [*] Use PCI DMA by default when available [*] Enable DMA only for disks Default is no, no; but suse uses yes, yes. If I understand correctly, it means that normal ide devices will have dma on, other devices (like cdroms) will have it off. Probably because it is safer, meaning that it will work on most computers. As for a boot parameter, yes: ide?= [HW] (E)IDE subsystem : config (iomem/irq), tuning or debugging (serialize,reset,no{dma,tune,probe}) or chipset specific parameters. But I think it is for the bus. not the device. In suse 8.1, just edit "/etc/sysconfig/hardware" like this: DEVICES_FORCE_IDE_DMA_ON="hdc hdd" And they will be set on for you. -- Cheers, Carlos Robinson
On Sun, 4 May 2003 01:56:04 +0200 (CEST)
"Carlos E. R."
ATA/IDE/MFM/RLL support ---> IDE, ATA and ATAPI Block devices ---> [*] Use PCI DMA by default when available [*] Enable DMA only for disks
Thanks Carlos, I knew about this, but I was hoping there's a way without recompiling.
As for a boot parameter, yes:
ide?= [HW] (E)IDE subsystem : config (iomem/irq), tuning or debugging (serialize,reset,no{dma,tune,probe}) or chipset specific parameters.
But I think it is for the bus. not the device.
Thanks, I'll give this a try. A boot parameter would be good, as it would seriously speed up installs.
In suse 8.1, just edit "/etc/sysconfig/hardware" like this:
DEVICES_FORCE_IDE_DMA_ON="hdc hdd"
And they will be set on for you.
Thanks, this would help. I'm surprised that Yast2 doesn't show the relevant /dev/hdx devices so one can do it from there. Thanks again Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
-----Original Message-----
From: "H du Plooy"
On Sun, 4 May 2003 01:56:04 +0200 (CEST) "Carlos E. R."
wrote: ATA/IDE/MFM/RLL support ---> IDE, ATA and ATAPI Block devices ---> [*] Use PCI DMA by default when available [*] Enable DMA only for disks
Thanks Carlos, I knew about this, but I was hoping there's a way without recompiling.
As for a boot parameter, yes:
ide?= [HW] (E)IDE subsystem : config (iomem/irq), tuning or debugging (serialize,reset,no{dma,tune,probe}) or chipset specific parameters.
But I think it is for the bus. not the device.
Thanks, I'll give this a try. A boot parameter would be good, as it would seriously speed up installs.
In suse 8.1, just edit "/etc/sysconfig/hardware" like this:
DEVICES_FORCE_IDE_DMA_ON="hdc hdd"
And they will be set on for you.
Thanks, this would help. I'm surprised that Yast2 doesn't show the relevant /dev/hdx devices so one can do it from there.
Go into yast2-->Hardware-->IDE DMA Mode You can make the changes there. Ken
Thanks again Hans
On Sun, 04 May 2003 06:56:59 -0400
"Ken Schneider"
Go into yast2-->Hardware-->IDE DMA Mode
You can make the changes there.
Ken
For ide devices running as ide devices, yes. Not for devices using ide-scsi. Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
-----Original Message-----
From: "H du Plooy"
On Sun, 04 May 2003 06:56:59 -0400 "Ken Schneider"
wrote: Go into yast2-->Hardware-->IDE DMA Mode
You can make the changes there.
Ken
For ide devices running as ide devices, yes. Not for devices using ide-scsi.
Hans
If that is so why does it work for my DVD/CDRW that is using ide-scsi? Ken
On Sun, 04 May 2003 07:06:43 -0400
"Ken Schneider"
If that is so why does it work for my DVD/CDRW that is using ide-scsi?
Ken
No idea. I'm talking SuSE 8.1 Pro. Do you have 8.2? If I enable ide-scsi, they don't show up in Yast2's IDE-DMA module. If I put "hdc=ide-cd hdd=ide-cd" in kernel boot parameters, they do. Hans == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
On Sun May 4 2003 6:14 am, H du Plooy wrote:
No idea. I'm talking SuSE 8.1 Pro. Do you have 8.2? If I enable ide-scsi, they don't show up in Yast2's IDE-DMA module. If I put "hdc=ide-cd hdd=ide-cd" in kernel boot parameters, they do.
Hans
8.2 changed this in YaST so that all IDE devices show in the IDE DMA module regardless of their ide-scsi usage. Each device lists multiple choices for setting DMA speeds. From off through UltraDMA/100 on my hard drives. My CD-RW only goes to DMA16 while my DVD goes to UltraDMA/33. Stan
-----Original Message-----
From: "H du Plooy"
On Sun, 04 May 2003 07:06:43 -0400 "Ken Schneider"
wrote: If that is so why does it work for my DVD/CDRW that is using ide-scsi?
Ken
No idea. I'm talking SuSE 8.1 Pro. Do you have 8.2? If I enable ide-scsi, they don't show up in Yast2's IDE-DMA module. If I put "hdc=ide-cd hdd=ide-cd" in kernel boot parameters, they do.
Hans
== Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Yes I do have 8.2 PRO and (using grub) I only have hdc=ide-scsi in menu.lst More changes between earlier versions I guess. Ken
Yes I do have 8.2 PRO and (using grub) I only have hdc=ide-scsi in menu.lst
I haven't been following this thread all that close due to a busy schedule, but I thought I read that kernel 2.4.20 no longer required the ide-scsi module for one reason or another. Can anyone shed some light on this? Sorry if I missed a critical post, just let me know if I did. -- John LeMay KC2KTH Senior Enterprise Consultant NJMC | http://www.njmc.com | Phone 732-557-4848 Specializing in Microsoft and Unix based solutions
On Sunday 04 May 2003 20:27, John LeMay wrote:
I thought I read that kernel 2.4.20 no longer required the ide-scsi module for one reason or another.
It's got nothing to do with the kernel. cdrecord 2.0 has ATAPI support, so it doesn't need ide-scsi. So if you use cdrecord from the command line, or if you use a GUI that understands the "dev=ATAPI:" notation (I only know of xcdroast) you can do without it
On Sunday 04 May 2003 20:30, Anders Johansson wrote:
It's got nothing to do with the kernel.
OK, slight correction. It's got a little to do with the kernel, but the support has been there for some time. The new thing in SuSE 8.2 is the use of cdrecord 2.0 which can use it Check /usr/share/doc/packages/cdrecord/README.ATAPI for the details
The 03.05.04 at 13:01, H du Plooy wrote:
Go into yast2-->Hardware-->IDE DMA Mode
You can make the changes there.
Ken
For ide devices running as ide devices, yes. Not for devices using ide-scsi.
Correct. In suse 8.1 Yast does not sugest/allow dma for devices using ide-scsi. However, if you do the change on the hardware file manually, it is accepted. And, if you want to do the change during an install, in the worst case you might go to a console and use hdparm - but I don't really know if it is on the install/rescue system. -- Cheers, Carlos Robinson
participants (6)
-
Anders Johansson
-
Carlos E. R.
-
H du Plooy
-
John LeMay
-
Ken Schneider
-
Stan Glasoe