Summary: | sys-kernel/genkernel-3.4.10-r1 - detect_sbp2_devices() hangs boot (genkernel-3.4.10-r1) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kobboi <gentoo> |
Component: | [OLD] Unspecified | Assignee: | Gentoo Genkernel Maintainers <genkernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kernel, stefan-r-bz |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Kobboi
2008-10-03 20:21:11 UTC
All that function does is: [ -e /proc/scsi/scsi ] && echo 'scsi add-single-device 0 0 0 0' > /proc/scsi/scsi If that's hanging your boot, it sounds like a kernel problem. What kernel version is this? I noticed that's all it does, I was at a dead end. Kernel version is the latest stable portage gentoo-sources, being gentoo-sources-2.6.25-r7. Like I said, created with genkernel-3.4.10-r1, so you can find the kernel config. To be sure, I will try to get the config from the running kernel tomorrow and do a comparison. Replicated issue on Optiplex 755 with gentoo-sources-2.6.25-r8 And has anyone tried a non-genkernel kernel to see if this still happens? What about a newer kernel with gk? Sounds as if libata hangs in the add-single-device method. Is sysfs already mounted when detect_sbp2_devices is executed? If yes, check with "cat /sys/class/scsi_host/host0/proc_name" which SCSI host is the host 0 at that point. Then this host driver needs to be fixed, if it wasn't already fixed by now. Furthermore, please just delete this detect_sbp2_devices function. It does *nothing* --- except of course exposing kernel bugs (which is a good, provided that somebody picks these bugs up and fixes them, that is). This "echo 'scsi add-single-device...' >/proc/scsi/scsi" thing is a relic from ancient times when the Linux SCSI core did not have a hotplug kernel-API. This was in Linux 2.4. If you want SCSI hotplugging, use Linux 2.6. *If* you really want Linux 2.4 and SCSI hotplugging, then please don't run this add-single-device in scripts; invoke it only manually. You should *not* automatically invoke it because at least the respective Linux 2.4 interface is prone to race conditions and can crash the kernel. I've removed the function in git. Neither of the current genkernel maintainers had any idea why it was there, so we were reluctant to remove it. As agaffney removed this in git and the latest stable genkernel does not have this code any longer, is it time to close this? |