Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120362 - repeated characters from keypress with AMD64 and SMP kernel
Summary: repeated characters from keypress with AMD64 and SMP kernel
Status: VERIFIED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://bugzilla.kernel.org/show_bug.c...
Whiteboard:
Keywords:
: 120493 120496 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-25 19:15 UTC by Alan Jackson
Modified: 2006-02-21 03:03 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Jackson 2006-01-25 19:15:25 UTC
I have this problem both with Redhat and with Gentoo. If I run the SMP kernel, then I get repeated characters under X from keypresses. The mouse also tends to go haywire. Running non-smp kernel fixes the problem.

 # emerge --info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://www.ibiblio.org/gentoo http://adelie.polymtl.ca/ ftp://ftp.ussg.iu.edu/pub/l inux/gentoo http://gentoo.mirrors.pair.com/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dvd eds emboss encode exif expat f77 fam ffmpeg foomaticdb fortran gdbm gif gimpprint glade gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 jpeg kde lcms libg++ libwww mad mikmod mng motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pcre pda pdflib perl png python qt quicktime readline sdl spell ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-01-25 23:56:52 UTC
(In reply to comment #0)
> I have this problem both with Redhat and with Gentoo. 

So report it upstream, please...
Comment 2 Alan Jackson 2006-01-26 19:38:54 UTC
*** Bug 120493 has been marked as a duplicate of this bug. ***
Comment 3 Alan Jackson 2006-01-26 19:39:23 UTC
*** Bug 120496 has been marked as a duplicate of this bug. ***
Comment 4 Gerald Normandin (RETIRED) 2006-01-26 19:40:17 UTC
How is your clock functioning? 
If the clock is ticking faster, or is an unreliable source of time, this may
cause your mouse or keyboard to behave this way.
Comment 5 Alan Jackson 2006-01-27 09:50:10 UTC
(In reply to comment #4)
> How is your clock functioning? 
> If the clock is ticking faster, or is an unreliable source of time, this may
> cause your mouse or keyboard to behave this way.
> 
How do I check that? The hardware clock seems to be okay...
# hwclock --show
Fri 27 Jan 2006 11:47:49 AM CST  -0.106921 seconds

Comment 6 Alan Jackson 2006-01-27 12:00:18 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > I have this problem both with Redhat and with Gentoo. 
> 
> So report it upstream, please...
> 

Pardon my ignorance, but how do I report it upstream?
Comment 7 widu wittekindt 2006-01-31 04:00:52 UTC
(In reply to comment #0)
> I have this problem both with Redhat and with Gentoo. If I run the SMP kernel,
> then I get repeated characters under X from keypresses. The mouse also tends to
> go haywire. Running non-smp kernel fixes the problem.
> 
>  # emerge --info
> Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130,
> glibc-2.3.4.20041102-r1, 2.6.15-gentoo-r1 i686)
> =================================================================
> System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) 64 X2 Dual Core Processor
> 3800+
>.....
I have an identical system and can confirm this bug. but:
beforeinstallinggentoo on that machine, I had an ubuntu-system running and didn't encounter this bug with kernel 2.6.15 SMP.
If I can deliver useful information, i'll be glad to do so
Comment 8 Alan Jackson 2006-02-04 11:53:35 UTC
I think this may be the same as bug 5105 lost ticks - hang check - after loading the CPU, which was also discussed on the forum :
[solved] Athlon X2 and the weird clock issue
http://forums.gentoo.org/viewtopic-t-369231
I added options clock=pmtmr notsc to the kernel line in grub.conf, and the problem seems to be fixed. I also heard back from Redhat, and they made the same suggestion (actually just to add clock=pmtmr). Curiously, dmesg seems to imply the notsc option has been ignored...
...
Kernel command line: ro root=/dev/sda6 video=vesafb:mtrr,ywrap,1024x768-32@85 clock=pmtmr notsc
notsc: Kernel compiled with CONFIG_X86_TSC, cannot disable TSC.
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Warning: clock= override failed. Defaulting to PIT
Detected 2010.493 MHz processor.
Using pit for high-res timesource

I'll know for certain in a day or so if it is really fixed, but so far it is looking good.
Comment 9 widu wittekindt 2006-02-06 23:28:30 UTC
(In reply to comment #8)
> I added options clock=pmtmr notsc to the kernel line in grub.conf, and the
> problem seems to be fixed. 
Seems to solve the probblem for me too
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2006-02-17 08:41:08 UTC
Please try and reproduce this on the latest development kernel (currently 2.6.16-rc3), without any extra boot arguments. Ideally this should work "out of the box".
Comment 11 widu wittekindt 2006-02-18 02:58:28 UTC
(In reply to comment #10)
> Please try and reproduce this on the latest development kernel (currently
> 2.6.16-rc3), without any extra boot arguments. Ideally this should work "out of
> the box".
> 
I did try 2.6.16-rc3 this morning, but it shows the same bug as 2.6.15 without the  additional kernel-parameters. what a pitty.
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2006-02-18 05:15:06 UTC
Sorry to throw another kernel at you. 2.6.16-rc4 has just been released and it contains a patch which looks like it might help. When you get a chance, could you please test that version?
Comment 13 widu wittekindt 2006-02-19 06:06:36 UTC
(In reply to comment #12)
> Sorry to throw another kernel at you. 
no problem, kernel compiling is one of my favourite hobbies
> 2.6.16-rc4 has just been released and it
> contains a patch which looks like it might help. When you get a chance, could
> you please test that version?
but still no go, as well with 2.6.16-rc4.
but you do have an idea where the problem is, do you? I'd really like to learn something more about this problem. So if you feel boared some time, you could maybe pass me some information.


Comment 14 Daniel Drake (RETIRED) gentoo-dev 2006-02-19 07:19:38 UTC
I don't have much knowledge on the subject. I thought this patch (included in 2.6.16-rc4) might help:

http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=7fd67843b96f90f59c9a244a1bc25137978a3ff9

Please file this as an upstream bug at http://bugzilla.kernel.org and post the new bug URL here.

You should also check for any available BIOS updates.
Comment 15 widu wittekindt 2006-02-20 00:44:48 UTC
I filed a bug report at kernel org:
http://bugzilla.kernel.org/show_bug.cgi?id=6104
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2006-02-21 03:03:40 UTC
.