thinkpad_ec and thus tp_smapi can not be loaded

Bug #304079 reported by Christoph Bier
38
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Linux
Invalid
Low
linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Release: Ubuntu 8.10

Trying to load tp_smapi ends up with the following (http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2008-November/045459.html):

chris@skull-tp:~$ sudo modprobe tp_smapi
WARNING: Error inserting thinkpad_ec (/lib/modules/2.6.27-9-server/kernel/ubuntu/misc/thinkpad_ec.ko): No such device or address
FATAL: Error inserting tp_smapi (/lib/modules/2.6.27-9-server/kernel/ubuntu/misc/tp_smapi.ko): Unknown symbol in module, or unknown parameter (see dmesg)

I run the server kernel to be able to address 4 GB of RAM:
chris@skull-tp:~$ uname -r
2.6.27-9-server

I attach some more information.

Revision history for this message
Christoph Bier (christoph-bier) wrote :
Revision history for this message
Christoph Bier (christoph-bier) wrote :

BTW: I ran the command 'ubuntu-bug linux' but I don't know how I can refer to the information sent ...

Revision history for this message
Christoph Bier (christoph-bier) wrote :
Revision history for this message
Christoph Bier (christoph-bier) wrote :
Revision history for this message
Christoph Bier (christoph-bier) wrote :
Revision history for this message
Christoph Bier (christoph-bier) wrote :

It may be of interest that I talk about a Lenovo ThinkPad X200s---for those not reading the attachments ;-).

Revision history for this message
Mathieu Allaert (mathieu2) wrote :

On a T500 after executing
sudo modprobe tp_smapi

dmesg:
[ 2285.615503] thinkpad_ec: cannot claim io ports 0x1600-0x161f
[ 2285.624585] tp_smapi: Unknown symbol thinkpad_ec_unlock
[ 2285.625122] tp_smapi: Unknown symbol thinkpad_ec_invalidate
[ 2285.626422] tp_smapi: Unknown symbol thinkpad_ec_read_row
[ 2285.627231] tp_smapi: Unknown symbol thinkpad_ec_lock

mathieu@think:~$ uname -r
2.6.27-9-generic

Revision history for this message
n0rdik0 (bart-polot) wrote :

ThinkPad X200s owner here, same error, looks like something in the upstream driver isn't supporting the new laptops.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

The author of thinkpad_ec wanted someone with this problem to file a bug in the Kernel Bug Tracker: http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2008-November/045358.html. But compiling a vanilla kernel fails for reasons I do not understand yet ...

Revision history for this message
Dominik Stadler (dominik-stadler) wrote :

I tried to disable the check in the code where the conflict is reported to see if there is a real conflict or just the BIOS reporting the region as used. It compiles and runs ok, it allows me to use all features of tp-smapi without problems so far. See http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/2008-November/045426.html for details.

Revision history for this message
Miguel Martinez (el-quark) wrote :

Hello everybody,

I want to confirm this behaviour in a T400, using the x86_64 kernel in up to date intrepid:

$ uname -a
Linux lcpybm 2.6.27-10-generic #1 SMP Fri Nov 21 19:19:18 UTC 2008 x86_64 GNU/Linux

I've also tried building upstream tp_smapi (version 0.39, the latest as of 2008-12-13), but it also fails. Well, compilation works OK once you install the kernel sources and make the appropriate links, but modprobing fails with the very same thinkpad_ec error.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

Can anybody try to install a vanilla kernel since I still fail to compile it? Then one can file a bug against the vanilla kernel as the author of thinkpad_ec recommended. I guess there are better chances for a fix.

@Dominik: Unfortunately Henrique didn't answer to your message on the ltp mailing list. To be honest I do not dare to change the code of thinkpad_ec because I can not estimate the consequences.

Revision history for this message
n0rdik0 (bart-polot) wrote :

I'm using Arch Linux, which AFAIK ships a vanilla kernel and I have this exact same error, but I have no idea how to file a bug for the kernel...

Revision history for this message
Christoph Bier (christoph-bier) wrote :

http://bugzilla.kernel.org/

But be sure that you use at least the latest stable vanilla kernel.

Revision history for this message
n0rdik0 (bart-polot) wrote :

There you go:
http://bugzilla.kernel.org/show_bug.cgi?id=12221
If anything more is needed, just ask.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

Thanks a lot!

Revision history for this message
n0rdik0 (bart-polot) wrote :

Rereading the request I noticed that one thing is missing, the acpidump content. I don't have this command on my system (Arch Linux) and googling didnt give me any obvious result. Could someone add this file to the bug report? I believe it's available in debian-ish systems.

Revision history for this message
n0rdik0 (bart-polot) wrote :

Ok, never mind, I found it. It had a less-than-obvious name, pmtools. The acpidump is already posted.

Revision history for this message
Dominik Stadler (dominik-stadler) wrote :

There is a new version 0.40 of tp-smapi available which provides a module-parameter "force_io=1" specifically targeting this problem. Specifying this parameter allows to load thinkpad_ec successfully now for me now.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

For me, too. But it's still a workaround: http://bugzilla.kernel.org/show_bug.cgi?id=12221

Changed in linux:
status: Unknown → Invalid
Revision history for this message
Andy Whitcroft (apw) wrote :

This is not a bug in the linux-meta package, moving to the linux package.

affects: linux-meta (Ubuntu) → linux (Ubuntu)
Revision history for this message
kernel-janitor (kernel-janitor) wrote :

Hi Christoph,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/karmic .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 304079

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Boniek (boniek12p) wrote :

Unfortunately it seems this bug is still an issue. Can you confirm this issue exists with the most recent Lucid Lynx 10.04 release - http://cdimage.ubuntu.com/releases/lucid/alpha-2/. If the issue remains in Lucid, please test the latest 2.6.32 upstream kernel build - https://wiki.ubuntu.com/KernelMainlineBuilds . Let us know your results. Thanks.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

I don't know how to test alpha 2 without CD drive (X200(s) doesn't have a CD drive). If there's a way to create an USB stick let me know. I'll try the latest upstream kernel build ASAP.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

Sorry, I couldn't test because linux-image-2.6.32-02063207-generic_2.6.32-02063207_i386.deb seems to be really broken---at least the Intel graphic driver. There's no boot image and no GDM, I can only see a screwed up screen nearly black sprinkled with colored pixels. I even couldn't switch to a text console via Ctrl + Alt Fx.

Revision history for this message
Boniek (boniek12p) wrote :

Yes, it's problem with graphic driver so we'll have to wait until it'll be fixed

Revision history for this message
Friedemann Schorer (friedemann-schorer) wrote :

Still an issue with linux-image-2.6.32-21-generic as of today. Tried to compile the tp_smapi modules via dkms (package tp-smapi-dkms, compile gave no errors), but trying to insert the modules (thinkpad_ec, tp_smapi, hdaps) leads to the same error as mentioned by the original poster
Issuing the parameter "force_io=1" while loading thinkpad_ec makes the module load ok, afterwards the other two load as well. I successfully control the laptops' fan via tpfand which accesses the SMAPI features these modules make accessible to the linux kernel.

Changed in linux:
importance: Unknown → Low
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.