New: Device buffer on a DVD multi standard writer runs out burning a CD
http://bugzilla.kernel.org/show_bug.cgi?id=11742
Summary: Device buffer on a DVD multi standard writer runs out
burning a CD
Product: IO/Storage
Version: 2.5
KernelVersion: 2.6.27
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IDE
AssignedTo: [email protected]
ReportedBy: [email protected]
Latest working kernel version: 2.6.26
Earliest failing kernel version:2.6.27
Distribution: Debian Unstable
Hardware Environment: Laptop Acer 5920G with a Samsung CDDVDW TS-L632H connected through IDE
Software Environment: KDE 3.5.9; k3b 1.0.5; Brasero
Problem Description: I have compiled the 2.6.27 kernel using make oldconf, thus almost copying the passed 2.6.26.5 configuration. Since then, when I burn a CD the internal buffer in my DVD burner reaches 0% obliging k3b and brasero to slow down the writing speed. It happens even if I don't run any other application. I have noticed that the device buffer runs out even if the software buffer is full, like there was not a fast transfer from the software buffer to the device buffer. In the end, k3b reports a big amount of buffer under-runs (> 100).Everything works as expected with an older 2.6.26.5 kernel. What I need to do to help solving this bug? See you
Valerio
Steps to reproduce: Using 2.6.27 kernel and k3b or brasero to burn a CD. It works in simulation mode too (so you don't waste too much CD's ;))
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
http://bugzilla.kernel.org/show_bug.cgi?id=11742
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
Regression|0 |1
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #1 from [email protected] 2008-10-12 23:44 ------- Can you send me your .config and dmesg pls?
Thanks.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #2 from [email protected] 2008-10-13 01:25 -------
Reply-To: [email protected]
Alle lunedì 13 ottobre 2008, hai scritto:
Quoted 10 lines
http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #1 from [email protected] 2008-10-12 23:44 ------- Can you send me your .config and dmesg pls?
Thanks.
Of course I can. Here they are.
Cheers
Valerio
Here some information about the attached config files.
config-2.6.27 it's my custom config with some drivers compiled statically (i.e: SATA and ext3), many unnecessary modules removed to speed up compilation and other options to fit better my architecture (core duo 2 64bit).
config-2.6.27b it's more similar to the Debian configuration of stock kernel (2.6.26), I just made some changes to fit architecture and removed drivers obviously (IMO :) ) not related to my problem (bug 11742) like ALSA modules, V4L modules and so on. I have just tried to check if it worked better but it didn't.
dmesg.txt is related to the kernel made with the first config in attachment (config-2.6.27)
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
------- Comment #3 from [email protected] 2008-10-13 22:55 ------- Hi,
I don't see your attachments probably because you have to add the attachments over the bugzilla interface "Create a New Attachment" usually found at the lower end of the bugpage. Simply attaching them to the mail won't work, imho.
Thanks,
Boris.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #4 from [email protected] 2008-10-14 01:23 ------- I have send this stuff to your personal account too, just to be sure(bbpetkov_At_yahoo...). Anyhow, i will attach here the same files, so that everybody else can give a look to them :)
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #5 from [email protected] 2008-10-14 01:37 ------- Created an attachment (id=18299)
--> (http://bugzilla.kernel.org/attachment.cgi?id=18299&action=view)
my custom config quite different from the debian one
config-2.6.27 it's my custom config with some drivers compiled statically (i.e: SATA and ext3), many unnecessary modules removed to speed up compilation and other options to fit better my architecture (core duo 2 64bit).
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #6 from [email protected] 2008-10-14 01:38 ------- Created an attachment (id=18300)
--> (http://bugzilla.kernel.org/attachment.cgi?id=18300&action=view)
A config more similar than the previous to Debian stock kernel's config
config-2.6.27b it's more similar to the Debian configuration of stock kernel (2.6.26), I just made some changes to fit architecture and removed drivers obviously (IMO :) ) not related to my problem (bug 11742) like ALSA modules, V4L modules and so on. I have just tried to check if it worked better but it didn't.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #7 from [email protected] 2008-10-14 01:40 ------- Created an attachment (id=18301)
--> (http://bugzilla.kernel.org/attachment.cgi?id=18301&action=view)
dmesg output
dmesg.txt is related to the kernel made with the first config in attachment (config-2.6.27
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #8 from [email protected] 2008-10-14 18:51 ------- Can you give a shot at ata_piix and see whether it behaves any differently?
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #9 from [email protected] 2008-10-14 22:08 ------- I assume the dmesg is your failing kernel? Can you also boot with your working kernel (2.6.26.5, as you say above) and send me that dmesg too?
Thanks.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #10 from [email protected] 2008-10-15 04:11 ------- Created an attachment (id=18321)
--> (http://bugzilla.kernel.org/attachment.cgi?id=18321&action=view)
dmesg output from 2.6.26.5 Kernel
In this kernel everything is working as expected.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #11 from [email protected] 2008-10-15 04:13 ------- Created an attachment (id=18322)
--> (http://bugzilla.kernel.org/attachment.cgi?id=18322&action=view)
lsmod output from the non working 2.6.27 kernel
This file shows that the kernel is already using ata_piix as module
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #12 from [email protected] 2008-10-15 04:22 ------- the previous dmesg that I've posted yesterday is referred to the non working kernel 2.6.27.
Quoted 1 line
Can you give a shot at
ata_piixand see whether it behaves any differently?
Do you mean to try with or without? As you can see from the above attached lsmod belonging from 2.6.27 kernel, ata_piix is loaded as module automatically. If you wanted me to disable it, please send me a kernel option I can give at boot time to GRUB to override this default behaviour of the kernel.
See you
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #13 from [email protected] 2008-10-15 17:18 ------- ata_piix can drive the same controllers piix can but in your case piix is being loaded before ata_piix thus grabbing the common controller. So, to rephrase, can you please retry without piix and with ata_piix? How to inhibit or exclude a module from initrd is distro specific, so you'll need to dig a bit there. Thanks.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #14 from [email protected] 2008-10-16 01:54 ------- I have blacklisted piix in Debian and so scsi emulation has been activated instead of "native" ide-cd (a couple of errors at boot time, but nothing serious). Thus the drive is listed as /dev/scd0 instead of /dev/hda The result is that burning a CD in simulation and real mode produces no buffer under runs. :)
Now that we have found who is guilty, what are we going to do next?
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #15 from [email protected] 2008-10-16 03:00 ------- Hang the developer :)
You could bisect search for the commit which is causing that regression - this'll be of great help. Here's a good tutorial on that:
http://www.kernel.org/doc/local/git-quick.html
Thanks.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #16 from [email protected] 2008-10-16 05:36 ------- Valerio,
I'm afraid you've stumbled on an ongoing dispute among developers regarding which drivers to use and improve. The "piix" driver is part of the old "ide" framework that is being replaced. The ata_piix driver is part of the new "libata" framework that is close to doing everything that "ide" does, plus a lot more.
Some developers like Borislav are sadly willing to spend their time on the old "ide" framework, which will be removed from the kernel soon. That would be fine, if it weren't for the fact that they are also wasting the users' (read:
your) time debugging and git-bisecting a dead horse. You can read some background on the problem at
http://marc.info/?l=linux-ide&m=122392751706811&w=2 .
If ata_piix works for you, just use that. Please attach the boot time errors you mentioned in Comment #14 so that they can be fixed in libata/ata_piix.
Thanks.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #17 from [email protected] 2008-10-16 05:56 ------- Sure, you can do that too, nobody is forced to do anything here.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #18 from [email protected] 2008-10-16 07:48 -------
Quoted 2 lines
Some developers like Borislav are sadly willing to spend their time on the old "ide" framework, which will be removed from the kernel soon. That would be
I hear this since 2005...
Nobody is going to remove "old" framework anytime soon. It is still a preferred solution on the embedded front (we've just support for another controller recently) and many non-x86 platforms.
There is a lot of non-ISA/VLB & non-x86 hardware that is not supported by libata. Please check up your facts.
Quoted 2 lines
fine, if it weren't for the fact that they are also wasting the users' (read:
your) time debugging and git-bisecting a dead horse. You can read some
Nobody is forcing anybody here to do anything. People are free to use or develop whatever driver or framework they want.
Please keep the discussion technical == free of unfounded speculations and your personal preferences. If you want to show your support for libata the best way to do it is to go work on it instead of forcing other people to do it.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #19 from [email protected] 2008-10-16 07:51 ------- PS this is not piix/ata_piix issue but a ide-cd one
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #20 from [email protected] 2008-10-16 07:56 ------- This is wild guess but does reverting commit e5318b531b008c79d2a0c0df06a7b8628da38e2f help?
[ it should be possible to just revert patch
from 2.6.27 if you are not using git ]
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #21 from [email protected] 2008-10-16 09:33 ------- Thank Boris and Stan for you replies.
Quoted 2 lines · Stan
If
ata_piixworks for you, just use that. Please attach the boot time errors you mentioned in Comment #14 so that they can be fixed in libata/ata_piix.
Don't worry, it was "my" mistake. In the procedure I've found to blacklist piix it was not mentioned to "depmod -ae" before creating an initrd image. Anyhow, now that I have fixed it, there is no more any warning at boot time :). It's time to be happy, relax and take a coffee ;)
Quoted 2 lines
You could bisect search for the commit which is causing that regression - this'll be of great help. Here's a good tutorial on that:
Ok, it seems not easy, but sadly now I've a lot of free time and I think that spending it on helping in fixing this bug is not that bad... at least until you have both frameworks in the kernel. I don't want to mess in the discussion, I'm not a developer, just an user. But I have a practical approach to almost everything and IMO until we have both, we should have them working and avoid problems to other users. I consider this as a service to the community. That's all
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
------- Comment #22 from [email protected] 2008-10-16 09:42 ------- (In reply to comment #19)
Quoted 2 lines
PS this is not piix/ata_piix issue but a ide-cd one
Ok, I can help you on testing if you can't reproduce this bug on your computer and/or don't have time to do it, but please tell me exactly what to do. Are you sure it's a ide-cd problem?
You mentioned to work with patches instead of GIT. It would be great, because I'm more familiar with patching the kernel than in GIT, that I must learn before.
Signature · 3 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
[Bug 11742] Device buffer on a DVD multi standard writer runs out burning a CD
In reply to [email protected]http://bugzilla.kernel.org/show_bug.cgi?id=11742
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|[email protected] |[email protected] Status|NEW |ASSIGNED
------- Comment #23 from [email protected] 2008-10-16 10:16 ------- Ok, you can do the following if !GIT:
patch -p1 -R --dry-run < [patch]
(in case there are no rejects, remove the --dry-run option)
ontop of 2.6.27. It should revert cleanly, though. Then recompile the kernel, boot. The [patch] above is following in an attachment.
Thanks,
Boris.
Signature · 4 lines
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You are the assignee for the bug, or are watching the assignee.