Bug 11581
Summary: | CDRW not detected on boot. 2.6.18 worked ok. | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | sanvila |
Component: | IDE | Assignee: | Borislav Petkov (bp) |
Status: | CLOSED OBSOLETE | ||
Severity: | normal | CC: | akpm, alan, axboe, bp, lars.winterfeld |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 2.6.26.5 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | |
Attachments: |
output of lspci -v
output of dmesg spit failing command patch dmesg after patching ide-io.c More dmesg output enable full debugging info dmesg with full debug patch oops after cat /dev/hdc ide-cd.s ide-cd.dsm unrelated NULL ptr fix new oops after cat /dev/hdc |
Description
sanvila
2008-09-17 04:46:44 UTC
Created attachment 17834 [details]
output of lspci -v
Created attachment 17835 [details]
output of dmesg
Marked as a regression, reassigned to IDE, cc'ed Jens. Jens, please note that this was bisected down to a block layer change. Hmm interesting. So the drive is actually detected, but later issued commands by udev are timing out. Could you double check if 2.6.27-rc6 is broken or not? CC'ing Bart and Borislav. 2.6.27-rc6 is also broken. Note: This time I've had to use the .config from the Debian package for 2.6.26, as the one provided by "make defconfig" didn't detect the hard disk (!). The behaviour is the same: Waiting time while udev is trying to detect hdc, timeout of "udevadm settle", eject button does not work, and a simple "less -f /dev/hdc" makes eject to actually happen. Hi, can you please try the attached patch and send me the dmesg output? Thanks. Created attachment 17848 [details]
spit failing command patch
(In reply to comment #7) > Created an attachment (id=17848) [details] > spit failing command patch Could you tick the "patch" checkbox on this attachment? Created attachment 17854 [details]
dmesg after patching ide-io.c
More info, which I don't know if it's relevant. If I leave the system alone and don't try to wake up the cdrom by doing "less -f /dev/hdc", then the following messages are appended to dmesg (see next attach). Created attachment 17855 [details]
More dmesg output
Ok, those are follow-up traces from the soft lockup detector code showing that we're stuck trying to revalidate the disk after reading the toc. There are also some ioctls which come from somewhere else so we'll have to enable full debugging output in order to see exactly what happens. Here's a debugging patch, it is pretty big, please recompile with it and send me the whole boot log - the dmesg might not be complete since the debug output is going to be a lot more verbose and overflow the ring buffer so try to copy it from /var/log/syslog or similar, thanks. Created attachment 17856 [details]
enable full debugging info
Here it is. Notes: * This is 2.6.27-rc6, as the patch didn't apply cleanly to 2.6.26.5. * I've modified the file /usr/share/initramfs-tools/scripts/init-premount/udev which is used in my system to build the initramfs so that "udevadm settle" takes only 30 seconds instead of the default 180. Created attachment 17858 [details]
dmesg with full debug patch
Using 2.6.27-rc6, "cat /dev/hdc" produces a kernel panic and kdb is started. [ Would love to cut and paste but there is no bash anymore ]. you can catch the output with a serial console or a netconsole. Ok. This is what netconsole was able to catch. It's an oops. Created attachment 17879 [details]
oops after cat /dev/hdc
Can you now do objdump -d drivers/ide/ide-cd.o > drivers/ide/ide-cd.dsm and make drivers/ide/ide-cd.s and send me the .s and .dsm files? Thanks. Created attachment 17885 [details]
ide-cd.s
Created attachment 17886 [details]
ide-cd.dsm
This is a NULL ptr access in the debugging printk, here's a fix. Created attachment 17887 [details]
unrelated NULL ptr fix
Hi, does the above patch fix the oops you get? I'm still working on the main problem but it looks pretty hairy... Thanks. [ Sorry for the delay, the computer is the one I use at work ]. The patch seems to fix the previous oops, but now there is a new one. Follows netconsole output for this one. Created attachment 17937 [details]
new oops after cat /dev/hdc
i opened a similar (possibly same) bug on http://bugzilla.kernel.org/show_bug.cgi?id=10216 drivers/ide is now obsolete |