First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 127453
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Steev Klimaszewski <steev@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: TGL <tom.gl@free.fr>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
thinkpad-5.9-remove-inter_module.patch thinkpad-5.9-remove-inter_module.patch patch TGL 2006-03-24 10:39 0000 5.83 KB Details | Diff
thinkpad-5.9-remove-thinkpadpm-argument.patch thinkpad-5.9-remove-thinkpadpm-argument.patch patch TGL 2006-03-24 10:39 0000 1.03 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 127453 depends on: Show dependency tree
Show dependency graph
Bug 127453 blocks: 126972
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-24 10:38 0000
I have encountered two issues with this module after switching to 2.6.16:

 - the first one is that inter_module* functions have finaly been removed from
Linux, but thinkpad module was still using them. I will attach a patch to
convert it to the EXPORT_SYMBOL scheme. I don't know whether this patch should
be applied unconditionnaly, or only for >=2.6.16 (should work with older
versions, sure, but why make the change if it is not required?), so i will
leave you integration to the src_unpack().

 - the second one is that the thinkpadpm code is no more used in thinkpad-5.9,
but the thinkpad module was still declaring an obsolete "enable_thinkpadpm"
parameter, leading to this error:
  # modprobe thinkpad
  FATAL: Error inserting thinkpad
(/lib/modules/2.6.16-archck1/thinkpad/thinkpad.ko): Invalid argument
  # dmesg | tail -n 1
  thinkpad: falsely claims to have parameter enable_thinkpadpm
Well, actually, this one i'm not sure whether it is specific to 2.6.16 kernel.
I've also switched to gcc4 recently, so maybe that's him who optimize-out an
unused variable, or something like that. I will report back later after trying
a 2.6.15 again. Anyway, the patch for this one is simple too: it drops any
mention of the obsolete parameter in the thinkpad module.

------- Comment #1 From TGL 2006-03-24 10:39:05 0000 -------
Created an attachment (id=83027) [edit]
thinkpad-5.9-remove-inter_module.patch

patch for issue #1

------- Comment #2 From TGL 2006-03-24 10:39:32 0000 -------
Created an attachment (id=83028) [edit]
thinkpad-5.9-remove-thinkpadpm-argument.patch

patch for issue #2

------- Comment #3 From TGL 2006-03-24 11:06:10 0000 -------
(In reply to comment #0)
>
> Well, actually, this one i'm not sure whether it is specific to 2.6.16 kernel.

I have just tested on 2.6.15, and the unpatched module doesn't make kernel
complain about this parameter. So it seems to be specific to 2.6.16, although i
don't know where the difference comes from.

I have also tested both patches on 2.6.15, and they seems to work fine there
too. So i still don't have a clue whether they should be applied only for
`kernel_is gt 2 6 16` or not.

------- Comment #4 From Steev Klimaszewski 2006-03-25 03:54:19 0000 -------
Tested here on my Thinkpad 600E, thanks for the patches, committed to CVS,
please let me know if there are any problems.  Will try to 5.9-r1 stable in 2-3
weeks.

------- Comment #5 From Petteri Räty 2006-05-01 05:43:11 0000 -------
(In reply to comment #4)
> Tested here on my Thinkpad 600E, thanks for the patches, committed to CVS,
> please let me know if there are any problems.  Will try to 5.9-r1 stable in 2-3
> weeks.
> 

Have you forgotten to stable the new version or are problems?

------- Comment #6 From Steev Klimaszewski 2006-05-01 11:05:49 0000 -------
Yes I had forgotten to request stabelization.  Will open a bug shortly, unless
you get to it before I get the chance

------- Comment #7 From Peter Volkov 2006-12-02 13:27:09 0000 -------
TGL: I'm not kernel hacker, thus may be I'm wrong but it seems to me that it's
better to use
  pxint_doSmapi = (pxint_do_t)symbol_request( smapi_do );
instead of, suggested in your patch
  pxint_doSuperio = (pxint_do_t)try_then_request_module( 
  __symbol_get("superio_do") , _szSuperioName );

symbol_request is defined include/linux/module.h and it's definition is very
similar to the code you wrote, but there are some differences. FEX, it uses
symbol_get instead of __symbol_get and thus takes into account
MODULE_SYMBOL_PREFIX. What do you think about this?

First Last Prev Next    No search results available      Search page      Enter new bug