Bug 9526

Summary: ACPI: Error installing bay notify handler - Acer PentiumM
Product: ACPI Reporter: Laurent Bigonville (bigon)
Component: Config-HotplugAssignee: Shaohua (shaohua.li)
Status: CLOSED CODE_FIX    
Severity: normal CC: acpi-bugzilla, kristen.c.accardi
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24 Subsystem:
Regression: --- Bisected commit-id:
Attachments: lspci -nnvv output
dmesg log
acpidump
dmesg log (2.6.22)
test the workaround patch
dmesg log with patch applied
dmesg log with patch applied and acpi debug enabled
debug patch

Description Laurent Bigonville 2007-12-07 20:24:59 UTC
When booting on my laptop (with 2.6.24 kernel from ubuntu hardy) I get:

ACPI: \_SB_.PCI0.IDE0.SECN.BAY1: found ejectable bay
ACPI: \_SB_.PCI0.IDE0.SECN.BAY1: Adding notify handler
ACPI: Error installing bay notify handler
ACPI: Bay [\_SB_.PCI0.IDE0.SECN.BAY1] Added
Comment 1 Laurent Bigonville 2007-12-07 20:25:51 UTC
Created attachment 13910 [details]
lspci -nnvv output
Comment 2 Laurent Bigonville 2007-12-07 20:26:23 UTC
Created attachment 13911 [details]
dmesg log
Comment 3 Len Brown 2007-12-07 22:05:54 UTC
please attach the output from acpidump.

Did you see these warnings with earlier releases (say, 2.6.23)
or did they just start in 2.6.24?  do you still see them
with a kernel.org kernel?

BTW, this doesn't look so good -- have you always seen these?
[    9.445870] pnp: PnP ACPI init
[    9.445875] ACPI: bus type pnp registered
[    9.446418] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446460] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446498] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446535] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446573] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446610] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446648] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446686] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446723] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446761] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446798] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446836] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446873] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446911] pnpacpi: exceeded the max number of IO resources: 24 
[    9.446948] pnpacpi: exceeded the max number of IO resources: 24 
[    9.450867] pnp: PnP ACPI: found 11 devices
[    9.450870] ACPI: ACPI bus type pnp unregistered
Comment 4 Laurent Bigonville 2007-12-07 22:49:27 UTC
Created attachment 13912 [details]
acpidump

I also get the "ACPI: Error installing bay notify handler" error with a 2.6.22 kernel
Comment 5 Laurent Bigonville 2007-12-07 23:08:09 UTC
Created attachment 13914 [details]
dmesg log (2.6.22)

just rebooted under 2.6.22 and I don't get the pnpacpi warnings
Comment 6 ykzhao 2007-12-09 21:52:25 UTC
Created attachment 13931 [details]
test the workaround patch

Will you please attach the dmesg after using the workaround patch?
Thanks
Comment 7 Laurent Bigonville 2007-12-10 14:37:10 UTC
Created attachment 13959 [details]
dmesg log with patch applied
Comment 8 ykzhao 2007-12-10 16:59:50 UTC
Hi, Laurent
The dmesg in comment #7 doesn't show the error message.
Will you please enable the debug of ACPI in kenrel configuration and attach the dmesg ?
Thanks.
Comment 9 Laurent Bigonville 2007-12-10 17:34:26 UTC
[   39.287508] ACPI Exception (bay-0306): AE_ALREADY_EXISTS, Error installing bay notify handler [20070126]

it's not enough? I'will recompile with ACPI debug on tomorrow
Comment 10 Laurent Bigonville 2007-12-10 19:15:30 UTC
Created attachment 13962 [details]
dmesg log with patch applied and acpi debug enabled
Comment 11 ykzhao 2007-12-10 22:06:52 UTC
Thanks for the log.
Now it is enough.
Comment 12 ykzhao 2008-03-06 22:05:21 UTC
Hi, Kristen
    From the log in comment #10 and #7 it seems that this bug is related with bay driver.
    In this laptop the bay1 device is located in _SB_.PCI0.IDE0.SECN. And ATA driver will install the notify handler for this ACPI device from the kernel of 2.6.24.(The main reason is that libata_noacpi is zero and ata will be assocatied with ACPI). So when bay driver install the notify handler for this device, the following message will be reported. 
>   Error installing bay notify handler
    
    Will you please take some time to look at this?
    Thanks.
   
Comment 13 Shaohua 2008-05-05 22:37:50 UTC
libata-acpi can handle bay well. I thought we could remove bay driver.
Comment 14 Shaohua 2008-05-05 23:18:15 UTC
Created attachment 16034 [details]
debug patch

please try latest kernel with attached patch and not select acpi bay driver, and check if your bay eject works. if it works, I'll remove bay driver.
Comment 15 Shaohua 2008-06-17 20:00:11 UTC
This issue is already fixed in latest kernel. mark this closed.