[ltp] thinkpad_ec fails to load on Thinkpad T500

Wolfgang Enderlein linux-thinkpad@linux-thinkpad.org
Sat, 11 Oct 2008 16:21:45 +0200


Hello readers around the world,

have anyone success to load the thinkpad_ec module from the
tp_smapi-0.39 package? When I try with a kernel 2.6.27, 
I get the following error message 

insmod: error inserting 'thinkpad_ec.ko': -1 No such device or address

/var/log/syslog shows:
[...]
Oct 11 14:11:59 abe-nb-9 kernel: system 00:02: ioport range 0x164e-0x164f has been reserved
Oct 11 14:11:59 abe-nb-9 kernel: system 00:02: ioport range 0x1000-0x107f has been reserved
Oct 11 14:11:59 abe-nb-9 kernel: system 00:02: ioport range 0x1180-0x11ff has been reserved
Oct 11 14:11:59 abe-nb-9 kernel: system 00:02: ioport range 0x800-0x80f has been reserved
Oct 11 14:11:59 abe-nb-9 kernel: system 00:02: ioport range 0x15e0-0x15ef has been reserved
Oct 11 14:11:59 abe-nb-9 kernel: system 00:02: ioport range 0x1600-0x1641 has been reserved
Oct 11 14:11:59 abe-nb-9 kernel: system 00:02: ioport range 0x1600-0x161b has been reserved
[...]
Oct 11 15:51:54 abe-nb-9 kernel: thinkpad_ec: cannot claim io ports 0x1600-0x161f
[...]

and /proc/ioports gives
[...]
1600-1641 : pnp 00:02
  1600-161b : pnp 00:02
164e-164f : pnp 00:02
[...]

The io-port range seems to be blocked by the system for a device 00:02. 
But what is this device? Anyone any ideas how to identify?

In BIOS I set the graphics adapter to  "discrete" (ATI Radeon HD 3650) 
and not switchable; so the internal Intel graphics adapter should be
disabled (It fails also when I set to the Intel one).
    
Best reagards
Wolle

==========
/proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0064-0064 : keyboard
0070-0071 : rtc0
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
03c0-03df : vga+
0800-080f : pnp 00:02
0cf8-0cff : PCI conf1
1000-107f : pnp 00:02
  1000-1003 : ACPI PM1a_EVT_BLK
  1004-1005 : ACPI PM1a_CNT_BLK
  1008-100b : ACPI PM_TMR
  1010-1015 : ACPI CPU throttle
  1020-102f : ACPI GPE0_BLK
  1050-1050 : ACPI PM2_CNT_BLK
1180-11ff : pnp 00:02
15e0-15ef : pnp 00:02
1600-1641 : pnp 00:02
  1600-161b : pnp 00:02
164e-164f : pnp 00:02
1830-1833 : 0000:00:1f.2
  1830-1833 : ahci
1834-1837 : 0000:00:1f.2
  1834-1837 : ahci
1838-183f : 0000:00:1f.2
  1838-183f : ahci
1840-185f : 0000:00:19.0
1860-187f : 0000:00:1a.0
  1860-187f : uhci_hcd
1880-189f : 0000:00:1a.1
  1880-189f : uhci_hcd
18a0-18bf : 0000:00:1a.2
  18a0-18bf : uhci_hcd
18c0-18df : 0000:00:1d.0
  18c0-18df : uhci_hcd
18e0-18ff : 0000:00:1d.1
  18e0-18ff : uhci_hcd
1c00-1c1f : 0000:00:1d.2
  1c00-1c1f : uhci_hcd
1c20-1c3f : 0000:00:1f.2
  1c20-1c3f : ahci
1c40-1c47 : 0000:00:1f.2
  1c40-1c47 : ahci
1c60-1c7f : 0000:00:1f.3
  1c60-1c7f : i801_smbus
2000-2fff : PCI Bus 0000:01
  2000-20ff : 0000:01:00.0
3000-3fff : PCI Bus 0000:05
4000-4fff : PCI Bus 0000:0d
5000-8fff : PCI Bus 0000:15
  5000-50ff : PCI CardBus 0000:16
  5400-54ff : PCI CardBus 0000:16

==========
lspci -v
00:00.0 Host bridge: Intel Corporation Cantiga Memory Controller Hub (rev 07)
        Subsystem: Lenovo Device 20e0
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information <?>
        Kernel modules: intel-agp

00:01.0 PCI bridge: Intel Corporation Cantiga PCI Express Graphics Port (rev 07)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 00002000-00002fff
        Memory behind bridge: cff00000-cfffffff
        Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
        Capabilities: [88] Subsystem: Lenovo Device 20e2
        Capabilities: [80] Power Management version 3
        Capabilities: [90] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
        Capabilities: [a0] Express Root Port (Slot+), MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [140] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:03.0 Communication controller: Intel Corporation Cantiga MEI Controller (rev 07)
        Subsystem: Lenovo Device 20e6
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at fc226800 (64-bit, non-prefetchable) [size=16]
        Capabilities: [50] Power Management version 3
        Capabilities: [8c] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-

00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
        Subsystem: Lenovo Device 20ee
        Flags: bus master, fast devsel, latency 0, IRQ 217
        Memory at fc200000 (32-bit, non-prefetchable) [size=128K]
        Memory at fc225000 (32-bit, non-prefetchable) [size=4K]
        I/O ports at 1840 [size=32]
        Capabilities: [c8] Power Management version 2
        Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
        Capabilities: [e0] PCIe advanced features <?>
        Kernel driver in use: e1000e
        Kernel modules: e1000e

00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
        Subsystem: Lenovo Device 20f0
        Flags: bus master, medium devsel, latency 0, IRQ 20
        I/O ports at 1860 [size=32]
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
        Subsystem: Lenovo Device 20f0
        Flags: bus master, medium devsel, latency 0, IRQ 21
        I/O ports at 1880 [size=32]
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
        Subsystem: Lenovo Device 20f0
        Flags: bus master, medium devsel, latency 0, IRQ 22
        I/O ports at 18a0 [size=32]
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03) (prog-if 20)
        Subsystem: Lenovo Device 20f1
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at fc226c00 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCIe advanced features <?>
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
        Subsystem: Lenovo Device 20f2
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at fc220000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [130] Root Complex Link <?>
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel

00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
        Capabilities: [90] Subsystem: Lenovo Device 20f3
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [180] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
        Memory behind bridge: f4200000-f42fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
        Capabilities: [90] Subsystem: Lenovo Device 20f3
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [180] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
        I/O behind bridge: 00003000-00003fff
        Memory behind bridge: f8000000-f9ffffff
        Prefetchable memory behind bridge: 00000000f4000000-00000000f40fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
        Capabilities: [90] Subsystem: Lenovo Device 20f3
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [180] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=0d, subordinate=14, sec-latency=0
        I/O behind bridge: 00004000-00004fff
        Memory behind bridge: fa000000-fbffffff
        Prefetchable memory behind bridge: 00000000f4100000-00000000f41fffff
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable+
        Capabilities: [90] Subsystem: Lenovo Device 20f3
        Capabilities: [a0] Power Management version 2
        Capabilities: [100] Virtual Channel <?>
        Capabilities: [180] Root Complex Link <?>
        Kernel driver in use: pcieport-driver
        Kernel modules: shpchp

00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
        Subsystem: Lenovo Device 20f0
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at 18c0 [size=32]
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
        Subsystem: Lenovo Device 20f0
        Flags: bus master, medium devsel, latency 0, IRQ 17
        I/O ports at 18e0 [size=32]
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
        Subsystem: Lenovo Device 20f0
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at 1c00 [size=32]
        Capabilities: [50] PCIe advanced features <?>
        Kernel driver in use: uhci_hcd
        Kernel modules: uhci-hcd

00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03) (prog-if 20)
        Subsystem: Lenovo Device 20f1
        Flags: bus master, medium devsel, latency 0, IRQ 19
        Memory at fc227000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [50] Power Management version 2
        Capabilities: [58] Debug port: BAR=1 offset=00a0
        Capabilities: [98] PCIe advanced features <?>
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93) (prog-if 01)
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=15, subordinate=18, sec-latency=32
        I/O behind bridge: 00005000-00008fff
        Memory behind bridge: f4300000-f7ffffff
        Prefetchable memory behind bridge: 00000000f0000000-00000000f3ffffff
        Capabilities: [50] Subsystem: Lenovo Device 20f4

00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
        Subsystem: Lenovo Device 20f5
        Flags: bus master, medium devsel, latency 0
        Capabilities: [e0] Vendor Specific Information <?>

00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03) (prog-if 01)
        Subsystem: Lenovo Device 20f8
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 218
        I/O ports at 1c40 [size=8]
        I/O ports at 1834 [size=4]
        I/O ports at 1838 [size=8]
        I/O ports at 1830 [size=4]
        I/O ports at 1c20 [size=32]
        Memory at fc226000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Queue=0/4 Enable+
        Capabilities: [70] Power Management version 3
        Capabilities: [a8] SATA HBA <?>
        Capabilities: [b0] PCIe advanced features <?>
        Kernel driver in use: ahci

00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
        Subsystem: Lenovo Device 20f9
        Flags: medium devsel, IRQ 23
        Memory at fc227400 (64-bit, non-prefetchable) [size=256]
        I/O ports at 1c60 [size=32]
        Kernel driver in use: i801_smbus
        Kernel modules: i2c-i801

01:00.0 VGA compatible controller: ATI Technologies Inc Mobilitiy Radeon HD 3650
        Subsystem: Lenovo Device 2117
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at d0000000 (32-bit, prefetchable) [size=256M]
        I/O ports at 2000 [size=256]
        Memory at cfff0000 (32-bit, non-prefetchable) [size=64K]
        [virtual] Expansion ROM at cff00000 [disabled] [size=128K]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Legacy Endpoint, MSI 00
        Capabilities: [a0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [100] Vendor Specific Information <?>

03:00.0 Network controller: Intel Corporation Device 4236
        Subsystem: Intel Corporation Device 1011
        Flags: fast devsel, IRQ 17
        Memory at f4200000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [e0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [140] Device Serial Number ec-3d-69-ff-ff-ea-16-00
        Kernel driver in use: iwlagn
        Kernel modules: iwlagn

15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
        Subsystem: Lenovo Device 20c6
        Flags: bus master, medium devsel, latency 168, IRQ 16
        Memory at f4300000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=15, secondary=16, subordinate=17, sec-latency=176
        Memory window 0: f0000000-f3fff000 (prefetchable)
        Memory window 1: 80000000-83fff000
        I/O window 0: 00005000-000050ff
        I/O window 1: 00005400-000054ff
        16-bit legacy interface ports at 0001
        Kernel driver in use: yenta_cardbus
        Kernel modules: yenta_socket

15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04) (prog-if 10)
        Subsystem: Lenovo Device 20c7
        Flags: bus master, medium devsel, latency 32, IRQ 17
        Memory at f4301000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [dc] Power Management version 2
        Kernel driver in use: firewire_ohci
        Kernel modules: firewire-ohci

15:00.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
        Subsystem: Lenovo Device 20c8
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at f4301800 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2

15:00.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 11)
        Subsystem: Lenovo Device 20c9
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at f4301c00 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2

15:00.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
        Subsystem: Lenovo Device 20ca
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at f4302000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2

15:00.5 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)
        Subsystem: Lenovo Device 20cb
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at f4302400 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2