Skip to contentSkip to conversation

ide-cdrom / atapi burning bug - 2.6.1

DISCUSSION Mans Matulewicz 5 participants 13 messages Jan 31, 2004 – Feb 1, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Software:
Distro: gentoo
Kernel: 2.6.1 stock
cdrtools: 2.01_alpha25
cdrdao: 1.1.7-r3
k3b: 0.10.3

Hardware
Cpu: Athlon XP 1700+ (palomino)
Mobo: ASUS A7V333 (kt333)
Ide interface: VIA Technologies, In VT82C586/B/686A/B PI (rev 6).
/dev/hda 40 gig ibm harddisc
/dev/hdb liteon LTR16102B (the troublemaker) /dev/hdc 120 gig hitachi harddisc
/dev/hdd toshiba dvd player
Dma is on

(ver linux script:
Linux meanmachine 2.6.1 #1 SMP Fri Jan 30 21:54:39 CET 2004 i686 AMD Athlon(TM) XP 1700+ AuthenticAMD GNU/Linux

Gnu C                  3.2.3
Gnu make               3.80
util-linux             2.11z
mount                  2.11z
module-init-tools      0.9.15-pre4
e2fsprogs              1.34
PPP                    2.4.1
nfs-utils              1.0.6
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
Procps                 3.1.12
Net-tools              1.60
Kbd                    1.08
Sh-utils               5.0.91
Modules Loaded         w83781d i2c_sensor i2c_viapro i2c_core

iptable_mangle ipt_state iptable_filter ipt_MASQUERADE iptable_nat ip_conntrack ip_tables hci_usb bluetooth pwc videodev uhci_hcd ehci_hcd snd_seq_midi snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_event snd_seq_midi_emul snd_seq snd_emu10k1 snd_rawmidi snd_seq_device snd_ac97_codec snd_util_mem snd_hwdep snd_pcm_oss snd_pcm snd_page_alloc snd_timer snd_mixer_oss snd soundcore sd_mod scsi_mod )

#1 lore raw
Quoted 8 lines · Mans Matulewicz

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Did you use DMA in 2.4 as well? Does 2.6 work if you turn it off? It's most likely an issue with your via adapter.

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 10 lines · Jens Axboe
Quoted 8 lines · Mans Matulewicz

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Quoted 2 lines

Did you use DMA in 2.4 as well? Does 2.6 work if you turn it off? It's most likely an issue with your via adapter.

I used DMA in 2.4.

I tried without dma on but it still totally locks my system while erasing an rw.

#3 lore raw
Quoted 11 lines · Mans Matulewicz
Quoted 10 lines · Jens Axboe
Quoted 8 lines · Mans Matulewicz

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Quoted 7 lines
Quoted 2 lines

Did you use DMA in 2.4 as well? Does 2.6 work if you turn it off? It's most likely an issue with your via adapter.

I used DMA in 2.4.

I tried without dma on but it still totally locks my system while erasing an rw.

Do you really have an SMP box, or are you just using an SMP kernel? If you have SMP, it would be interesting to enable the nmi watchdog (if it works on your system).

Are you using preempt?

Signature · 1 line
Jens Axboe
#4 lore raw
Quoted 17 lines · Jens Axboe
Quoted 16 lines · Mans Matulewicz
Quoted 10 lines · Jens Axboe
Quoted 8 lines · Mans Matulewicz

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Quoted 2 lines

Did you use DMA in 2.4 as well? Does 2.6 work if you turn it off? It's most likely an issue with your via adapter.

I used DMA in 2.4.

Quoted 8 lines
Quoted 2 lines

I tried without dma on but it still totally locks my system while erasing an rw.

Do you really have an SMP box, or are you just using an SMP kernel? If you have SMP, it would be interesting to enable the nmi watchdog (if it works on your system).

Are you using preempt?

Its just an smp kernel. I only have one cpu.

Preempt is enabled in kernel

#5 lore raw
Quoted 25 lines · Mans Matulewicz
Quoted 24 lines · Jens Axboe
Quoted 11 lines · Mans Matulewicz
Quoted 10 lines · Jens Axboe
Quoted 8 lines · Mans Matulewicz

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Quoted 7 lines
Quoted 2 lines

Did you use DMA in 2.4 as well? Does 2.6 work if you turn it off? It's most likely an issue with your via adapter.

I used DMA in 2.4.

I tried without dma on but it still totally locks my system while erasing an rw.

Do you really have an SMP box, or are you just using an SMP kernel? If you have SMP, it would be interesting to enable the nmi watchdog (if it works on your system).

Quoted 5 lines
Quoted 1 line

Are you using preempt?

Its just an smp kernel. I only have one cpu.

Preempt is enabled in kernel

Could you try disabling preempt?

Signature · 1 line
Jens Axboe
#6 lore raw
Quoted 26 lines · Jens Axboe
Quoted 25 lines · Mans Matulewicz
Quoted 24 lines · Jens Axboe
Quoted 11 lines · Mans Matulewicz
Quoted 10 lines · Jens Axboe
Quoted 8 lines · Mans Matulewicz

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Quoted 7 lines
Quoted 2 lines

Did you use DMA in 2.4 as well? Does 2.6 work if you turn it off? It's most likely an issue with your via adapter.

I used DMA in 2.4.

I tried without dma on but it still totally locks my system while erasing an rw.

Do you really have an SMP box, or are you just using an SMP kernel? If you have SMP, it would be interesting to enable the nmi watchdog (if it works on your system).

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Are you using preempt?

Its just an smp kernel. I only have one cpu.

Preempt is enabled in kernel

Could you try disabling preempt?

That worked.
preempt= off
dma was on

#7 lore raw
In reply to Jens Axboe

I don't have an RW, but when my cdrom fixates, it stalls everything while it's fixating. I have an nForce chipset. (2.6.x)

Quoted 19 lines · Jens Axboe
Quoted 10 lines · Mans Matulewicz

Hi,
After replacing my 2.4.22 with a 2.6.1 kernel I tried ATAPI cd burning. This totally fails. Most of the CD's are corrupt and my system totally locks up when erasing an cdrw (reset button was the option I needed to reboot my system) . k3b reports cd is completely burned but fails are not identical or totally unreadable. I tried it both with an tainted (nvidia) and an untainted (nv) kernel: same results. With ide-scsi burning in 2.4.x I had no problems.

Did you use DMA in 2.4 as well? Does 2.6 work if you turn it off? It's most likely an issue with your via adapter.

#8 lore raw
Quoted 2 lines · David Ford

I don't have an RW, but when my cdrom fixates, it stalls everything while it's fixating. I have an nForce chipset. (2.6.x)

Does "everything" mean everything on that ide channel? If so, then that's a hardware limitation.

Signature · 1 line
Jens Axboe
#9 lore raw
Quoted 6 lines · Jens Axboe
Quoted 2 lines · David Ford

I don't have an RW, but when my cdrom fixates, it stalls everything while it's fixating. I have an nForce chipset. (2.6.x)

Does "everything" mean everything on that ide channel? If so, then that's a hardware limitation.

My IBM A31p (Intel 845 chipset) had a similar problem with the CD burner. Using the '-immed' flag resolved the issue for me.

Daniel

Signature · 4 lines
To-morrow, and to-morrow, and to-morrow,
Creeps in this petty pace from day to day,
To the last syllable of recorded time;
        -- Macbeth; Act V, Scene VI
#10 lore raw
Quoted 10 lines · Daniel Pittman
Quoted 6 lines · Jens Axboe
Quoted 2 lines · David Ford

I don't have an RW, but when my cdrom fixates, it stalls everything while it's fixating. I have an nForce chipset. (2.6.x)

Does "everything" mean everything on that ide channel? If so, then that's a hardware limitation.

My IBM A31p (Intel 845 chipset) had a similar problem with the CD burner. Using the '-immed' flag resolved the issue for me.

(Dave cut from cc, annoying auth process required to mail him)

immed will help, because it causes the command to 'release' in as close a sense to the word as ide allows. I'm not sure if error handling works correctly in that case?

Signature · 1 line
Jens Axboe
#11 lore raw
In reply to Jens Axboe
Quoted 6 lines · Jens Axboe
Quoted 2 lines · David Ford

I don't have an RW, but when my cdrom fixates, it stalls everything while it's fixating. I have an nForce chipset. (2.6.x)

Does "everything" mean everything on that ide channel? If so, then that's a hardware limitation.

I have seen the problem as well.

It is not just processes using the IDE. Everything will pause for a second or two. (Which causes grief with streaming audio running at the same time.)

Even more annoying is that it does not always occur. I have not tried tracking down where the kernel is getting hung up at that moment since it has been fairly intermittent for me.

Signature · 4 lines
"Push that big, big granite sphere way up there from way down here!
Gasp and sweat and pant and wheeze! Uh-oh! Feel momentum cease!
Watch it tumble down and then roll the boulder up again!"
    - The story of Sisyphus by Dr. Zeus in Frazz 12/18/2003
#12 lore raw
Quoted 5 lines · Alan
Quoted 4 lines · Jens Axboe
Quoted 2 lines · David Ford

I don't have an RW, but when my cdrom fixates, it stalls everything while it's fixating. I have an nForce chipset. (2.6.x)

Quoted 8 lines
Quoted 2 lines

Does "everything" mean everything on that ide channel? If so, then that's a hardware limitation.

I have seen the problem as well.

It is not just processes using the IDE. Everything will pause for a second or two. (Which causes grief with streaming audio running at the same time.)

One process can easily stall the other, if they end up waiting on some resource. Might not always happen, but easily can.

Quoted 3 lines

Even more annoying is that it does not always occur. I have not tried tracking down where the kernel is getting hung up at that moment since it has been fairly intermittent for me.

There's not much you can do about it - you may want to try -immed as mentioned earlier in this thread.

Signature · 1 line
Jens Axboe