[ltp] Re: udev hotswap events broken for bay in 2.6.24?

Marc MERLIN linux-thinkpad@linux-thinkpad.org
Sat, 10 May 2008 10:11:22 -0700


On Fri, May 09, 2008 at 10:51:59PM +0200, Joerg Platte wrote:
> Am Freitag, 9. Mai 2008 schrieb Marc MERLIN:
> > So, as shown below, I had it working until I upgraded to a newer kernel and
> > distro (2.6.24 / ubuntu hardy), and how I don't get a hotswap event
> > anymore: gandalf:/etc/acpi# udevmonitor
> 
> Try to load the bay driver before any sata driver by adding it 
> to /etc/initramfs-tools/modules or disable acpi for libata:
> options libata noacpi=1

libata seems to be built in my kernel, so I added the option to my grub
command line:
gandalf:~$ cat /proc/cmdline 
root=UUID=c21e3414-3965-4027-9376-edacff529ac1 resume=/dev/sda8 ro nosplash vga=1 acpi_sleep=s3_bios root=/dev/sda2 libata.noacpi=1
You have new mail in /home/merlin/Maildir
gandalf:~$ lsmod | grep libata
gandalf:~$ lsmod | grep ata
pata_acpi               8192  0 
ata_generic             8324  0 
ata_piix               19204  1

When I pulled the latch (not the drive), udevmonitor showed the drive being 
removed, and then my machine deadlocked.
There was no bay event I could see.

gandalf:~# grep bay /var/log/dmesg
gandalf:~# lsmod | grep bay
bay                     7040  0 
dock                   11412  1 bay

(note that I used to have
gandalf:~# cat /var/log/dmesg | grep bay
thinkpad_acpi: another device driver is already handling bay events
thinkpad_acpi: disabling subdriver bay )

What worries me is that since my kernel upgrade, I don't see this anymore:
> ACPI: ACPI Dock Station Driver 
> ACPI: \_SB_.PCI0.IDE0.PRIM.MSTR: found ejectable bay
> ACPI: \_SB_.PCI0.IDE0.PRIM.MSTR: Adding notify handler
> ACPI: Error installing bay notify handler
> ACPI: Bay [\_SB_.PCI0.IDE0.PRIM.MSTR] Added

yet, it's supposed to be in my kernel:
gandalf:~# zcat /proc/config.gz  | grep -i bay
CONFIG_ACPI_BAY=m
CONFIG_THINKPAD_ACPI_BAY=y

Looks to me like the bay driver doesn't see my bay anymore, even if
the thinkpad module one doesn't touch it either:
gandalf:~# cat /var/log/dmesg | grep thinkpad
thinkpad_acpi: ThinkPad ACPI Extras v0.19-20080107
thinkpad_acpi: http://ibm-acpi.sf.net/
thinkpad_acpi: ThinkPad BIOS 7FETA4WW (2.22 ), EC 7FHT26WW-1.08
thinkpad_acpi: Lenovo ThinkPad Z61p
thinkpad_acpi: radio switch found; radios are enabled
thinkpad_acpi: standard ACPI backlight interface available, not loading native one...
thinkpad_ec: thinkpad_ec 0.36 loaded.
gandalf:~#

Any ideas?

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems & security ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/