Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188656 - gentoo-sources-2.6.22-r2 - kernel panic with psmouse's lifebook.c for Panasonic CF-18 touchscreen
Summary: gentoo-sources-2.6.22-r2 - kernel panic with psmouse's lifebook.c for Panason...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://www.linuxquestions.org/questio...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-12 21:59 UTC by sam logen
Modified: 2007-08-22 13:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
CF-18 patch as submitted to the mainline kernel (lifebook_panasonic_cf18.patch,964 bytes, patch)
2007-08-12 23:19 UTC, Mike Pagano
Details | Diff
CF-18 patch as submitted to the mainline kernel (lifebook_panasonic_cf18.patch,968 bytes, patch)
2007-08-13 00:38 UTC, Mike Pagano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description sam logen 2007-08-12 21:59:34 UTC
Hi, you may or may not be aware that support for Fujitsu and some Panasonic touchscreens is included with the 'psmouse' module.  Some of us at linuxquestions.org have discovered a small error in psmouse's lifebook.c file that causes the kernel to panic once the touchscreen (for a Panasonic CF-18) is used.  This is also present in Gentoo's development kernel '2.6.22-gentoo-r2'.

As far as I know, the panic occurs 100% of the time once the touchscreen is pressed.

I tested a small patch listed on the page below and it seems to correct the problem.  I had to enter the fixes manually, though.
http://www.linuxquestions.org/questions/showthread.php?t=546167&page=3

I know that this fix will sooner or later enter the mainline vanilla kernel, but I thought I'd mention it here, since I was testing a Gentoo kernel still in development.

Sam

Reproducible: Always

Steps to Reproduce:
1.Load a 2.6.22 kernel on a Panasonic CF-18 with touchscreen
2.Enable 'psmouse' in kernel or as module - load it.
3.Boot with new kernel and touch screen.

Actual Results:  
The kernel panicked.  Debug output appeard and computer became non-responsive.  Didn't save the debug output.

Expected Results:  
produced output when 'cat /dev/input/mouse0' is executed.
Comment 1 Mike Pagano gentoo-dev 2007-08-12 23:09:42 UTC
Committed into mainline: e6b20d8d62d87451f41365945b27202d7dadaee6

patch submit:
http://lkml.org/lkml/2007/8/7/357



Comment 2 Mike Pagano gentoo-dev 2007-08-12 23:19:00 UTC
Created attachment 127913 [details, diff]
CF-18 patch as submitted to the mainline kernel

Here's the patch that has been submitted by the author and committed to the mainline kernel.

Can you bring your patched code back to the original sources and then apply this patch and retest?

you can apply this patch by putting in your /usr/src/linux (or the correct directory) and typing:

patch -p0 < lifebook_panasonic_cf18.patch

Thanks
Comment 3 Mike Pagano gentoo-dev 2007-08-13 00:38:59 UTC
Created attachment 127918 [details, diff]
CF-18 patch as submitted to the mainline kernel

This patch has the same changes as the first one but it conforms to standards properly and should be applied as follows:

patch -p1 < lifebook_panasonic_cf18.patch
Comment 4 Mike Pagano gentoo-dev 2007-08-15 12:25:30 UTC
Sam emailed me directly:

> Hi, I tested the latest patch you sent me on the
> gentoo-sources 2.6.22-r2 kernel (The one you said is
> inserted into the mainline kernel), and it works.  The
> kernel doesn't panic, and I get my usual events from
> the device.

Comment 5 Christian Heim (RETIRED) gentoo-dev 2007-08-19 11:57:06 UTC
2.6.22.3 has this fix, so the solution would be genpatches-2.6.22-5.
Comment 6 Christian Heim (RETIRED) gentoo-dev 2007-08-19 11:57:42 UTC
(In reply to comment #5)
> 2.6.22.3 has this fix, so the solution would be genpatches-2.6.22-5.

Or =sys-kernel/gentoo-sources-2.6.22-r4.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2007-08-22 13:36:02 UTC
Thanks for testing, sounds like this is fixed then.