Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with cdrecord + ATAPI + D. Ok, what've I missed?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
meglamaniac
n00b
n00b


Joined: 18 Nov 2004
Posts: 14

PostPosted: Mon Nov 22, 2004 2:45 pm    Post subject: Problems with cdrecord + ATAPI + D. Ok, what've I missed? Reply with quote

I've been testing my ATAPI support and I've getting some odd errors (see below), including warnings that DMA isn't enabled.
Is DMA an option I should have set when building the kernel? I've been hunting about for info on it but I'm drawing a blank. The BIOS reports both cd drives as being in UDMA mode 2.
As this machine isn't the fastest (PIII 550) I could really do without it routing cd burning through the processor when I know it does support DMA.
If someone can point out to me which bit of setup I forgot, then I'd be grateful.

Thanks!
[edit]
I've done:
Code:

hdparm -d1 /dev/cdroms/cdrom0
hdparm -d1 /dev/cdroms/cdrom1
hdparm -d1 /dev/cdrom


And they all report DMA set.
Still the same errors listed below.
What's the deal?

:(

Errors:
Code:

phoenix root # cdrecord -scanbus dev=ATAPI
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.9
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
cdrecord: Warning: SCSI transport does no longer work for suid root programs.
cdrecord: Warning: if cdrecord fails, try to run it from a root account.
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
scsibus0:
        0,0,0     0) 'HP      ' 'CD-Writer+ 9300 ' '1.0b' Removable CD-ROM
cdrecord: Warning: controller returns wrong size for CD capabilities page.
        0,1,0     1) 'ATAPI-CD' 'ROM-DRIVE-52MAX ' '52CE' Removable CD-ROM
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *


Code:

phoenix root # cdrecord dev=ATAPI:0,0,0 -checkdrive
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.9
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
cdrecord: Warning: SCSI transport does no longer work for suid root programs.
cdrecord: Warning: if cdrecord fails, try to run it from a root account.
scsidev: 'ATAPI:0,0,0'
devname: 'ATAPI'
scsibus: 0 target: 0 lun: 0
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 1
Vendor_info    : 'HP      '
Identifikation : 'CD-Writer+ 9300 '
Revision       : '1.0b'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-2 SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
Back to top
View user's profile Send private message
noergeli
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 205
Location: Hamburg, Gemany

PostPosted: Mon Nov 22, 2004 4:55 pm    Post subject: Reply with quote

Code:
Warning: There is absolutely NO DMA, operations thus are slow

If this is the line you worry about, don't mind, because I think that's what we all get with 2.6.x kernels. If you really have problems with burning CDs try a kernel before 2.6.8 or search the forum. There are many threads about burning CDs with kernels >= 2.6.8.
Back to top
View user's profile Send private message
meglamaniac
n00b
n00b


Joined: 18 Nov 2004
Posts: 14

PostPosted: Mon Nov 22, 2004 7:22 pm    Post subject: Reply with quote

Thanks.
I will continue to do some tests, and watch the processor usage while I do so in order to see if it is actually using PIO or DMA.
Back to top
View user's profile Send private message
Doogman
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 244

PostPosted: Tue Nov 23, 2004 12:47 am    Post subject: Reply with quote

Actually, this is a problem I would really like to see resolved. It's one of the few annoying quirks left using my burner with 2.6.x kernels.

To make a long story short, this is what I've found:

Kernel: 2.6.9-ck3 (happens with all 2.6.x kernels though)
Burner: DMA enabled
Interface: IDE interface ala ATAPI 0:0:0

growisofs (DVD program): Works fine!
cdrdao: Works fine!
cdrecord: Doesn't work at all with DMA enabled. I get this error:

Warning: There is absolutely NO DMA, operations thus are slow.

But, in fact, DMA is activated. If I disable DMA on the burner, cdrecord will work fine again but with all the problems associated without using DMA (system hog).

While I can using my burner fine with just growisofs and cdrdao from the command line, quite a few of the GUI burner programs require cdrecord to function correctly. I would like to get cdrecord to working again with DMA.

So, is anyone using cdrecord successfully with a 2.6.x kernel and a IDE burner with DMA enabled? If you are, what are you doing differently than the rest of us?
Back to top
View user's profile Send private message
meglamaniac
n00b
n00b


Joined: 18 Nov 2004
Posts: 14

PostPosted: Tue Nov 23, 2004 7:10 am    Post subject: Reply with quote

I guess it's a case of waiting for whoever maintains cdrecord to update it.
Hopefully it'll be done sometime shortly after 2.6.10 is out, because from what I've been able to gather 2.6.10 should fix the "unresolved issues" that cdrecord warns about (ie. access to the SCSI commands from users other than root).
Back to top
View user's profile Send private message
Doogman
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 244

PostPosted: Tue Nov 23, 2004 10:00 pm    Post subject: Reply with quote

Yeah, but my problem has absolutely nothing to do with SCSI commands, notice I said it works fine with DMA disabled. I've had this problem before the kernel crew decided to "censor" the commands sent to the burner, besides the ck patchset removes all this silliness anyway. It has something to do with DMA and cdrecord.

Is anyone else using successfully using cdrecord with DMA enabled?
Back to top
View user's profile Send private message
noergeli
Apprentice
Apprentice


Joined: 05 Oct 2004
Posts: 205
Location: Hamburg, Gemany

PostPosted: Wed Nov 24, 2004 12:27 pm    Post subject: Reply with quote

Here's what i got

kernel: 2.6.8.1-ck9
cdrecord: 2.1
cdr-drives are set to udma2

I didn't try to burn from command-line yet, cause I'm using k3b as frontend to cdrecord. Well cdrecord -scanbus is also giving me this warning about DMA, but burning with k3b using cdrecord works really fine.
Doogman wrote:
If you are, what are you doing differently than the rest of us?
Hmm, I'm just ignoring those warnings, cause i really don't have any problems with it. Also kernels <=2.6.7 shouldn't cause problems.
Back to top
View user's profile Send private message
Doogman
Apprentice
Apprentice


Joined: 24 Sep 2004
Posts: 244

PostPosted: Wed Nov 24, 2004 10:34 pm    Post subject: Reply with quote

Thanks for the help, noergeli. I think I have things working fine now.

Apparently the answer was to switch from devfs to udev. It seems that problem with cdrecord wasn't related to DMA, but an odd interaction with device names and devfs in particular. My box is unusual in that it has 3 seperate IDE controllers (6 IDE masters). perhaps that was the cause of the problem with cdrecord?

Anyway, after migrating to udev and fixing a few problems along the way, all my burning apps (including cdrecord) now work fine again with DMA activated. I'm not entirely sure if udev or the minor bit of system tweaking I did afterwards was the fix, but I'm not going to look a gift horse in the mouth. :)

But you are right, cdrecord still complains about "no DMA", but works fine anyway with DMA activated so perhaps this is just a bogus error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum