Skip to contentSkip to conversation

ACPI hotplug

DISCUSSION Paul Ionescu 3 participants 9 messages Jan 13, 2005 – Jan 18, 2005 7 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hi,

I just read that 2.6.11-rc1 does support ACPI hotplug. What does this really mean ?
I found some new files in /sys/firmware:
find /sys/firmware/ | grep eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB7/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB0/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/IDE0/SCND/MSTR/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/EC/BAT1/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/FDC/FDD0/eject

But what can I do with them, and what else is there for hotplug ? Does it support docking stations ?

Thanks,
Paul

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

A message that is not in the archive (sent off-list or not yet received): pan.2005.01.13.14.02.37.561980-/[email protected]

#2 lore raw
Quoted 4 lines · Paul Ionescu

Hi,

I just read that 2.6.11-rc1 does support ACPI hotplug. What does this really mean ?

2.6.11-rc1 now supports physical CPU hotplug and these eject files were added to support the same. Once the cpu's are logically offlined, they can be physically removed by echoing 1 onto the eject file under _SB/PCI0/LSBX/CPUX/eject.

Quoted 7 lines

I found some new files in /sys/firmware:
find /sys/firmware/ | grep eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB7/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB0/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/IDE0/SCND/MSTR/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/EC/BAT1/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/FDC/FDD0/eject

Looks like your DSDT has _EJx methods for many other types of devices, either you can enhance these devices drivers to support user mode eject or you can simply not create "eject" file.

Quoted 3 lines

But what can I do with them, and what else is there for hotplug ? Does it support docking stations ?

Does this "eject" file has any side effects which needs to be addressed, please let me know.

-Anil

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

A message that is not in the archive (sent off-list or not yet received): 20050113120620.A1002-39QZ/XbsZ5/mO6KZMuUCQVaTQe2KTcn/@public.gmane.org

#4 lore raw

Hi Keshavamurthy,

The eject files have no any side effect for me.
I just tried to play with them for my devices.

I tried on a docked computer and I have this:
/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB7/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB0/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/IDE0/SCND/MSTR/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/PCI1/DOCK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/UART/eject Trying to echo 1 > /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/PCI1/DOCK/eject did not undocked the laptop as I hoped.

I thought I can use my docking station without being necessary to boot docked.
But is not the case.
I tried this way:
Booted normaly, loaded acpiphp (even said found a pci slot), then plug the ThinkPad in the dockingstation, but nothing happened. No new devices get added. Then I tried to boot in the dockingstation and while I see all the new devices (this was always the case), I cannot remove the laptop from the docking station because it does not senses I push the eject button on it.

Thanks,
Paul
--- Keshavamurthy Anil S

Quoted 8 lines · <[email protected]> wrote:
Quoted 3 lines · Paul Ionescu

Hi,

I just read that 2.6.11-rc1 does support ACPI

hotplug.

Quoted 1 line

What does this really mean ?

Quoted 13 lines

2.6.11-rc1 now supports physical CPU hotplug and these eject files
were added to support the same. Once the cpu's are logically offlined,
they can be physically removed by echoing 1 onto the eject file
under _SB/PCI0/LSBX/CPUX/eject.

Quoted 3 lines

I found some new files in /sys/firmware:
find /sys/firmware/ | grep eject

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB7/URTH/UPDK/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB0/URTH/UPDK/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/IDE0/SCND/MSTR/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/EC/BAT1/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/FDC/FDD0/eject

Quoted 10 lines

Looks like your DSDT has _EJx methods for many other types of devices,
either you can enhance these devices drivers to support user
mode eject or you can simply not create "eject" file.

Quoted 2 lines

But what can I do with them, and what else is

Quoted 11 lines

there for hotplug ?

Quoted 1 line

Does it support docking stations ?

Does this "eject" file has any side effects which
needs to be addressed,
please let me know.

-Anil

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#5 lore raw
In reply to a message not in the archive
Quoted 11 lines · Paul Ionescu

I just read that 2.6.11-rc1 does support ACPI hotplug. What does this really mean ?
I found some new files in /sys/firmware:
find /sys/firmware/ | grep eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB7/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB0/URTH/UPDK/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/IDE0/SCND/MSTR/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/EC/BAT1/eject /sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/FDC/FDD0/eject

The new ACPI code is to support _physical_ insertion/removal of cpus and "containers" (nodes) that have cpus and memory. This requires firmware/platform support. Linux already supports ACPI (as well as SHPC/PCI-Express) based physical insertion/removal of IO adapters independent of the new code in 2.6.11-rc1. The ACPI namespace you listed above shows ACPI ejectable IO devices. This is handled by the existing acpiphp code, not the new processor or container code.

Rajesh

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

A message that is not in the archive (sent off-list or not yet received): 20050113120644.A911-39QZ/XbsZ5/mO6KZMuUCQVaTQe2KTcn/@public.gmane.org

#7 lore raw

Hi Rajesh,

I was hoping that I can use my docking station without being necessary to boot docked.
But is not the case.
I tried this way:
Booted normaly, loaded acpiphp (even said found a pci slot), then plug the ThinkPad in the dockingstation, but nothing happened. No new devices get added. Then I tried to boot in the dockingstation and while I see all the new devices (this was always the case), I cannot remove the laptop from the docking station because it does not senses I push the eject button on it.

Thanks,
Paul

Quoted 10 lines · --- Rajesh Shah
Quoted 2 lines · Paul Ionescu

I just read that 2.6.11-rc1 does support ACPI

hotplug.

Quoted 4 lines

What does this really mean ?
I found some new files in /sys/firmware:
find /sys/firmware/ | grep eject

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB7/URTH/UPDK/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/USB0/URTH/UPDK/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/IDE0/SCND/MSTR/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/EC/BAT1/eject

Quoted 2 lines
Quoted 1 line

/sys/firmware/acpi/namespace/ACPI/_SB/PCI0/LPC/FDC/FDD0/eject

Quoted 17 lines
Quoted 1 line

The new ACPI code is to support _physical_ insertion/removal of
cpus and "containers" (nodes) that have cpus and memory. This
requires firmware/platform support. Linux already supports ACPI
(as well as SHPC/PCI-Express) based physical insertion/removal of
IO adapters independent of the new code in 2.6.11-rc1. The ACPI
namespace you listed above shows ACPI ejectable IO devices. This
is handled by the existing acpiphp code, not the new processor
or container code.

Quoted 3 lines

Rajesh

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

A message that is not in the archive (sent off-list or not yet received): 20050115101454.67867.qmail-NMLAVizEvX2A/[email protected]

#9 lore raw
Quoted 3 lines · Paul Ionescu

I was hoping that I can use my docking station without being necessary to boot docked.

I see. Docking functionality needs more support that does not live in acpiphp. There have been some recent posts, for example, about docking support in Thinkpads and this functionality is separately enabled by a different ACPI config option. Grep for ACPI_IBM in acpi/Kconfig and see Documentation/ibm-acpi.txt for more details.

Rajesh

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

A message that is not in the archive (sent off-list or not yet received): 20050117140121.A21143-39QZ/XbsZ5/mO6KZMuUCQVaTQe2KTcn/@public.gmane.org

#11 lore raw

Hi Rajesh,

I do have an IBM Thinkpad, and I am using IBM_ACPI module. But this module is limited in functionality until we get proper ACPI hotplug support.

The problem is that current acpi implementation cannot dynamically add devices not existant at boot time, or this is what I was told.
If I boot docked in, I have more ACPI devices than if I boot undocked, and that info is not possible for ACPI to get dynamically when I plug the laptop in docking station. (IE: find /sys/firmware/acpi produces different output for docked and undocked laptop). IBM_ACPI module deals with some non ACPI standard functionality, but it says in the README file that you need to have booted with the laptop docked, otherwise it is unable to see the devices.

Thanks,
Paul

Quoted 18 lines · --- Rajesh Shah
Quoted 2 lines · Paul Ionescu

I was hoping that I can use my docking station

without

Quoted 1 line

being necessary to boot docked.

I see. Docking functionality needs more support that does
not live in acpiphp. There have been some recent posts,
for example, about docking support in Thinkpads and this functionality is separately enabled by a different
ACPI config option. Grep for ACPI_IBM in acpi/Kconfig
and see Documentation/ibm-acpi.txt for more details.

Quoted 3 lines

Rajesh

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

A message that is not in the archive (sent off-list or not yet received): 20050117221751.49612.qmail-zX69vREatC6A/[email protected]

#13 lore raw
Quoted 3 lines · Paul Ionescu

I do have an IBM Thinkpad, and I am using IBM_ACPI module. But this module is limited in functionality

OK.

Quoted 3 lines

If I boot docked in, I have more ACPI devices than if I boot undocked, and that info is not possible for ACPI to get dynamically when I plug the laptop in

I see. Can you please send the dmesg output after enabling debug messages in acpiphp (acpiphp supports a "debug" module param)? I'd like to see if acpiphp is even installing a notify handler and triggering at dock.

Also, can you send the lspci -vv output with the
laptop docked at boot time?

Thanks,
Rajesh

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

A message that is not in the archive (sent off-list or not yet received): 20050117154801.A22139-39QZ/XbsZ5/mO6KZMuUCQVaTQe2KTcn/@public.gmane.org

#15 lore raw

Hi Rajesh,

I attached the info requested.
I also attached a "find /sys/firmware" when docked. I have played a little more with this and here is what I found:
If I booted undocked, when I insert the laptop in dock, the dock is still silent and I receive a
acpiphp_glue: handle_hotplug_event_func: Bus check notify on \_SB_.PCI0.PCI1.DOCK
acpiphp_glue: No new device found

Then when I do "echo dock > /proc/acpi/ibm/dock", it started the fans and leds, but no other event or notify is received, and of course no new devices are found.
Then I do "echo undock > /proc/acpi/ibm/dock", and press the dock button to undock the laptop, it does undock, but no event or notify received.

Then I booted in dock, all devices are there, but when I undock, no event or notify is received, and of course, all devices are still present after undocking, which is false. I think this is why it used to hang here, because it tried to use an unexisting device.

Best regars,
Paul

Quoted 21 lines · --- Rajesh Shah
Quoted 3 lines · Paul Ionescu

I do have an IBM Thinkpad, and I am using IBM_ACPI module. But this module is limited in

functionality

OK.

Quoted 1 line

If I boot docked in, I have more ACPI devices than

if

Quoted 2 lines

I boot undocked, and that info is not possible for ACPI to get dynamically when I plug the laptop in

I see. Can you please send the dmesg output after enabling
debug messages in acpiphp (acpiphp supports a "debug"
module param)? I'd like to see if acpiphp is even installing a notify handler and triggering at dock.

Quoted 7 lines

Also, can you send the lspci -vv output with the
laptop docked at boot time?

Thanks,
Rajesh

__________________________________
Do you Yahoo!?
Yahoo! Mail - 250MB free storage. Do more. Manage less.
http://info.mail.yahoo.com/mail_250

Jan 18 09:27:46 r50p kernel: acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.4
Jan 18 09:27:46 r50p kernel: acpiphp_glue: found PCI-to-PCI bridge at PCI 0000:00:1e.0
Jan 18 09:27:46 r50p kernel: acpiphp_glue: 16bit I/O range: 4000-8fff
Jan 18 09:27:46 r50p kernel: acpiphp_glue: 32bit Memory range: c0200000-cfffffff
Jan 18 09:27:46 r50p kernel: acpiphp_glue: 32bit Prefetchable memory range: e8000000-efffffff
Jan 18 09:27:46 r50p kernel: acpiphp_glue: _HPP evaluation failed
Jan 18 09:27:46 r50p kernel: acpiphp_pci: Device 0000:02:00.0
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[0] 0xb0000000 - 0xb0000fff (0x200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=b0000000 req_size =1000 node=c1e28c24, base=c0200000, length=fe00000
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[7] 0x60000000 - 0x603fffff (0x1200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=60000000 req_size =400000 node=f7d4d938, base=e8000000, length=8000000
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[8] 0x60400000 - 0x607fffff (0x200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=60400000 req_size =400000 node=c1e28c24, base=c0200000, length=fe00000
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[9] 0x4000 - 0x40ff (0x100)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=4000 req_size =100 node=f7c13e60, base=4000, length=5000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=4000 req_size =100 node=f7c13e60, base=4000, length=5000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 2
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[10] 0x4400 - 0x44ff (0x100)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=4400 req_size =100 node=c1f0b6fc, base=4100, length=4f00
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 1
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=4400 req_size =100 node=c1f0b6fc, base=4400, length=4c00
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 2
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_pci: Device 0000:02:00.1
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[0] 0xb1000000 - 0xb1000fff (0x200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=b1000000 req_size =1000 node=c1e28c24, base=c0200000, length=fe00000
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[7] 0x60800000 - 0x60bfffff (0x1200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=60800000 req_size =400000 node=f7d4d938, base=e8000000, length=8000000
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[8] 0x60c00000 - 0x60ffffff (0x200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=60c00000 req_size =400000 node=c1e28c24, base=c0200000, length=fe00000
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[9] 0x4800 - 0x48ff (0x100)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = f7c13e60
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->base = 0x4500
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next->base = 0x4100
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=4800 req_size =100 node=f7c13e60, base=4100, length=300
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=4800 req_size =100 node=f48116fc, base=4500, length=4b00
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 1
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=4800 req_size =100 node=f48116fc, base=4800, length=4800
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 2
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[10] 0x4c00 - 0x4cff (0x100)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = f481190c
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->base = 0x4100
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next->base = 0x4900
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=4c00 req_size =100 node=f7c13e60, base=4100, length=300
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=4c00 req_size =100 node=c1f0b6fc, base=4500, length=300
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=4c00 req_size =100 node=f481190c, base=4900, length=4700
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 1
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=4c00 req_size =100 node=f481190c, base=4c00, length=4400
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 2
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_pci: Device 0000:02:01.0
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[0] 0xc0220000 - 0xc023ffff (0x200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=c0220000 req_size =20000 node=c1e28c24, base=c0200000, length=fe00000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 1
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=c0220000 req_size =20000 node=c1e28c24, base=c0220000, length=fde0000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 2
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[1] 0xc0200000 - 0xc020ffff (0x200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = f481190c
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->base = 0xc0240000
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next->base = 0xc0200000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=c0200000 req_size =10000 node=f481190c, base=c0200000, length=20000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=c0200000 req_size =10000 node=f481190c, base=c0200000, length=20000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 2
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[2] 0x8000 - 0x803f (0x101)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = c1f0b6fc
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->base = 0x4100
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next->base = 0x4500
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=8000 req_size =40 node=f7c13e60, base=4100, length=300
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=8000 req_size =40 node=c1f0b6fc, base=4500, length=300
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=8000 req_size =40 node=f48116fc, base=4900, length=300
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=8000 req_size =40 node=c1f0b8e0, base=4d00, length=4300
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 1
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=8000 req_size =40 node=c1f0b8e0, base=8000, length=1000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : split 2
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[6] 0x0 - 0xffff (0x7200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = 00000000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=0 req_size =10000 node=f7d4d938, base=e8000000, length=8000000
Jan 18 09:27:46 r50p kernel: acpiphp_pci: Device 0000:02:02.0
Jan 18 09:27:46 r50p kernel: acpiphp_pci: BAR[0] 0xc0210000 - 0xc021ffff (0x200)
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next = f7ccab1c
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->base = 0xc0210000
Jan 18 09:27:46 r50p kernel: acpiphp_res: *head->next->base = 0xc0240000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 1st req_base=c0210000 req_size =10000 node=c1e28c24, base=c0210000, length=10000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : 2nd req_base=c0210000 req_size =10000 node=c1e28c24, base=c0210000, length=10000
Jan 18 09:27:46 r50p kernel: acpiphp_res: : got one!!!
Jan 18 09:27:46 r50p kernel: acpiphp_glue: found ACPI PCI Hotplug slot at PCI 02:03 Slot:-1
Jan 18 09:27:46 r50p kernel: acpiphp_glue: Bridge resource:
Jan 18 09:27:46 r50p kernel: acpiphp_res: I/O resource:
Jan 18 09:27:46 r50p kernel: acpiphp_res: [00] 00004100 - 000043ff
Jan 18 09:27:46 r50p kernel: acpiphp_res: [01] 00004500 - 000047ff
Jan 18 09:27:46 r50p kernel: acpiphp_res: [02] 00004900 - 00004bff
Jan 18 09:27:46 r50p kernel: acpiphp_res: [03] 00008040 - 00008fff
Jan 18 09:27:46 r50p kernel: acpiphp_res: [04] 00004d00 - 00007fff
Jan 18 09:27:46 r50p kernel: acpiphp_res: MEM resource:
Jan 18 09:27:46 r50p kernel: acpiphp_res: [00] c0240000 - cfffffff
Jan 18 09:27:46 r50p kernel: acpiphp_res: PMEM resource:
Jan 18 09:27:46 r50p kernel: acpiphp_res: [00] e8000000 - efffffff
Jan 18 09:27:46 r50p kernel: acpiphp_res: BUS resource:
Jan 18 09:27:46 r50p kernel: acpiphp_glue: Bus2 1slot(s)
Jan 18 09:27:46 r50p kernel: acpiphp_glue: Total 1slots
Jan 18 09:27:46 r50p kernel: acpiphp: Slot [4294967295] registered

Here I docked the thinkpad:

Jan 18 09:28:26 r50p kernel: acpiphp_glue: handle_hotplug_event_func: Bus check notify on \_SB_.PCI0.PCI1.DOCK
Jan 18 09:28:26 r50p kernel: acpiphp_glue: No new device found

When I docked the thinkpad, the dock was still dead, untill I did "echo dock > /proc/acpi/ibm/dock" and then it started the fans and leds. But the above notify was received just as soon as I docked the thinkpad, and the dock was still silent (no fans, no leds). When I echo-ed dock in /proc/acpi/ibm/dock, the dock started some leds and fan, but the acpiphp was not receiving anything new.