2004-01-31 01:05:44

by Mans Matulewicz

[permalink] [raw]
Subject: ide-cdrom / atapi burning bug - 2.6.1

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
)


2004-01-31 09:34:44

by Jens Axboe

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, Jan 31 2004, Mans Matulewicz wrote:
> 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.

--
Jens Axboe

2004-01-31 10:20:48

by Jens Axboe

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, Jan 31 2004, Mans Matulewicz wrote:
> On Sat, 2004-01-31 at 10:34, Jens Axboe wrote:
> > On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > > 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.
>
> 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?

--
Jens Axboe

2004-01-31 10:10:40

by Mans Matulewicz

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, 2004-01-31 at 10:34, Jens Axboe wrote:
> On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > 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.

I used DMA in 2.4.

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

2004-01-31 10:32:45

by Jens Axboe

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, Jan 31 2004, Mans Matulewicz wrote:
> On Sat, 2004-01-31 at 11:20, Jens Axboe wrote:
> > On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > > On Sat, 2004-01-31 at 10:34, Jens Axboe wrote:
> > > > On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > > > > 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.
> > >
> > > 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?
>
> Its just an smp kernel. I only have one cpu.
>
> Preempt is enabled in kernel

Could you try disabling preempt?

--
Jens Axboe

2004-01-31 10:27:15

by Mans Matulewicz

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, 2004-01-31 at 11:20, Jens Axboe wrote:
> On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > On Sat, 2004-01-31 at 10:34, Jens Axboe wrote:
> > > On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > > > 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.
> >
> > 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?

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

Preempt is enabled in kernel

2004-01-31 16:45:30

by Mans Matulewicz

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, 2004-01-31 at 11:32, Jens Axboe wrote:
> On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > On Sat, 2004-01-31 at 11:20, Jens Axboe wrote:
> > > On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > > > On Sat, 2004-01-31 at 10:34, Jens Axboe wrote:
> > > > > On Sat, Jan 31 2004, Mans Matulewicz wrote:
> > > > > > 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.
> > > >
> > > > 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?
> >
> > 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

2004-01-31 18:18:10

by David Ford

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

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)

Jens Axboe wrote:

>On Sat, Jan 31 2004, Mans Matulewicz wrote:
>
>
>>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.
>
>
>

2004-01-31 18:49:28

by Jens Axboe

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, Jan 31 2004, David Ford wrote:
> 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.

--
Jens Axboe

2004-02-01 00:01:08

by Daniel Pittman

[permalink] [raw]
Subject: Re: ide-cdrom / atapi burning bug - 2.6.1

On Sat, 31 Jan 2004, Jens Axboe wrote:
> On Sat, Jan 31 2004, David Ford wrote:
>> 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

--
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