nv50 mouse cursor disappears hourly
I compiled linux-2.6 from git. I think my last pull/merge? is this one (git show)
commit d03ab2d78b6ab62e94f9958da50b4419c27e0f60
Author: Marcin Kościelnicki <[email protected]> Date: Mon Mar 1 00:18:39 2010 +0000
drm/nv50: Improve PGRAPH interrupt handling.
I also compiled nouveau-drm_2.4.18-1_amd64.deb and nouveau_drv.so that day and installed them to a Debian system.
I'm using KDE 4.3. The mouse cursor disappears, but menu items that glow when the mouse is over them will still glow when the mouse is over them. I can click on stuff and menus pop up or actions occur as normal. I can logout, but i am not returned to the KDM menu. I can't switch to a virtual terminal. I must do a hard reboot. I haven't tried that SysReq thing.
Next time it happens, i'll check /var/log/
I have compositing turned off according to KDE system-settings / Desktop. In fact all desktop effects are disabled.
Here's my xorg.conf
Section "InputDevice"
Identifier "Generic Keyboard"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"EndSection
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
EndSection
Section "Monitor"
Identifier "Integrated LCD"
# 1920x1200 @ 60.00 Hz (GTF) hsync: 74.52 kHz; pclk: 193.16 MHz
Modeline "1920x1200_60.00" 193.16 1920 2048 2256 2592 1200 1201 1204 1242 -HSync +Vsync
Option "PreferredMode" "1920x1200_60.00"EndSection
# disable VGA by default
Section "Monitor"
Identifier "VGA-0"
Option "Ignore" "true"
EndSectionSection "Device"
Identifier "Configured Video Device"
Driver "nouveau"
Option "Monitor-LVDS-1" "Integrated LCD"EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Integrated LCD"
# Monitor "External DVI"
DefaultDepth 24
SubSection "Display"
Depth 24
Virtual 3840 2400
EndSubSectionEndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
The hardware is on a Dell Latitude E6500.
01:00.0 VGA compatible controller: nVidia Corporation G98M [Quadro NVS 160M] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Dell Device 024f
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f5000000 (32-bit, non-prefetchable) [size=16M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f2000000 (64-bit, non-prefetchable) [size=32M]
I/O ports at df00 [size=128]
[virtual] Expansion ROM at f4000000 [disabled] [size=128K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>
Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
Kernel driver in use: nouveau
I'll be glad to specify more info. Please tell me what you need.
thanks,
Brian
--
http://brian.derocher.org
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 1 line · On Thursday 11 March 2010 15:30:01 Brian DeRocher wrote:
Next time it happens, i'll check
/var/log/
/var/log/syslog
Mar 11 15:26:38 bregalad kernel: [ 4011.159249] [drm] nouveau 0000:01:00.0: Allocating FIFO number 4 Mar 11 15:26:38 bregalad kernel: [ 4011.172345] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 4 Mar 11 15:26:56 bregalad kernel: [ 4029.528631] [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 4 Mar 11 15:30:01 bregalad /USR/SBIN/CRON[4460]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null) Mar 11 15:40:01 bregalad /USR/SBIN/CRON[4703]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null) Mar 11 15:50:01 bregalad /USR/SBIN/CRON[5128]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null) Mar 11 15:59:05 bregalad kernel: [ 5958.643154] [drm] nouveau 0000:01:00.0: EvoCh 0 Mthd 0x0000 Data 0x00000400 (0x0002 0x01) Mar 11 16:00:01 bregalad /USR/SBIN/CRON[5371]: (www-data) CMD ([ -x /usr/lib/cgi-bin/awstats.pl -a -f /etc/awstats/awstats.conf -a -r /var/log/apache/access.log ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null)
/var/log/dmesg
Mar 11 15:59:05 bregalad kernel: [ 5958.643154] [drm] nouveau 0000:01:00.0: EvoCh 0 Mthd 0x0000 Data 0x00000400 (0x0002 0x01) Mar 11 14:20:53 bregalad kernel: [ 65.957641] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 3 Mar 11 14:29:08 bregalad kernel: [ 561.104849] [drm] LVDS-7: set mode 1920x1200 3e Mar 11 14:29:23 bregalad kernel: [ 576.013970] [drm] LVDS-7: set mode 1920x1200_60.00 3d Mar 11 14:29:45 bregalad kernel: [ 598.589129] CPUFREQ: Per core ondemand sysfs interface is deprecated - up_threshold Mar 11 14:47:32 bregalad kernel: [ 1665.713034] CE: hpet increasing min_delta_ns to 15000 nsec Mar 11 14:50:34 bregalad kernel: [ 1847.552047] CE: hpet increasing min_delta_ns to 22500 nsec Mar 11 15:26:38 bregalad kernel: [ 4011.159249] [drm] nouveau 0000:01:00.0: Allocating FIFO number 4 Mar 11 15:26:38 bregalad kernel: [ 4011.172345] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 4 Mar 11 15:26:56 bregalad kernel: [ 4029.528631] [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 4 Mar 11 15:59:05 bregalad kernel: [ 5958.643154] [drm] nouveau 0000:01:00.0: EvoCh 0 Mthd 0x0000 Data 0x00000400 (0x0002 0x01)
Brian
Quoted 8 lines · Brian DeRocher
I compiled linux-2.6 from git. I think my last pull/merge? is this one (git show)
commit
d03ab2d78b6ab62e94f9958da50b4419c27e0f60
Author: Marcin Kościelnicki <[email protected]>
Date: Mon Mar 1 00:18:39 2010 +0000drm/nv50: Improve PGRAPH interrupt handling.
Is this a regression ? Did you build an earlier kernel that worked ? .git/logs/HEAD might help.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 2 lines · On Sunday 14 March 2010 05:37:59 you wrote:
Is this a regression ? Did you build an earlier kernel that worked ? .git/logs/HEAD might help.
Here's the whole file.
0000000000000000000000000000000000000000 a8072c2a92a13511e28edbec015b58c6b66c35c9
root <[email protected]> 1260291438 -0500 clone: from git://anongit.freedesktop.org/git/nouveau/linux-2.6
a8072c2a92a13511e28edbec015b58c6b66c35c9 a733b93582023fd100c5ce6430f3a0b0f26af86c
root <[email protected]> 1266534758 -0500 pull : Fast-forward
a733b93582023fd100c5ce6430f3a0b0f26af86c d03ab2d78b6ab62e94f9958da50b4419c27e0f60
root <[email protected]> 1267454502 -0500 pull : Fast-forward
I'm trying to remember the history. Here are the dates of those updates.
2009-12-08 Merge remote branch 'korg/drm-radeon-dp' into drm-linus Dave Airlie 24 -323/+2657 2010-02-17 drm/nouveau: fix i2ctable bounds checking Marcin Slusarz 1 -3/+4 2010-03-01 drm/nv50: Improve PGRAPH interrupt handling. Marcin Kościelnicki 7 -56/+622
After the first cloning, the other packages like drm or xf86-video-nouveau didn't compile. So i reverted back to using a stock debian kernel.
After the first update. I'm pretty sure it was working correctly. No cursors disappearing.
After the second update clearly it's failing.
I'd be glad to revert back and test, if someone would help me with the git commands. Should i try git bisect?
I suppose i'll need to do the same with drm and xf86-video-nouveau in order to (1) get it to compile and (2) recreate the same conditions. Is that right?
thanks,
Brian
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 23 lines · Brian DeRocher
Quoted 2 lines · On Sunday 14 March 2010 05:37:59 you wrote:
Is this a regression ? Did you build an earlier kernel that worked ? .git/logs/HEAD might help.
Here's the whole file.
0000000000000000000000000000000000000000
a8072c2a92a13511e28edbec015b58c6b66c35c9
root <[email protected]> 1260291438 -0500 clone: fromgit://anongit.freedesktop.org/git/nouveau/linux-2.6
a8072c2a92a13511e28edbec015b58c6b66c35c9a733b93582023fd100c5ce6430f3a0b0f26af86croot <[email protected]> 1266534758 -0500 pull : Fast-forward
a733b93582023fd100c5ce6430f3a0b0f26af86cd03ab2d78b6ab62e94f9958da50b4419c27e0f60root <[email protected]> 1267454502 -0500 pull : Fast-forwardI'm trying to remember the history. Here are the dates of those updates.
2009-12-08 Merge remote branch 'korg/drm-radeon-dp' into drm-linus Dave Airlie 24 -323/+2657 2010-02-17 drm/nouveau: fix i2ctable bounds checking Marcin Slusarz 1 -3/+4 2010-03-01 drm/nv50: Improve PGRAPH interrupt handling. Marcin Kościelnicki 7 -56/+622
After the first cloning, the other packages like drm or xf86-video-nouveau didn't compile. So i reverted back to using a stock debian kernel.
Quoted 8 lines
After the first update. I'm pretty sure it was working correctly. No cursors disappearing.
After the second update clearly it's failing.
I'd be glad to revert back and test, if someone would help me with the git commands. Should i try git bisect?
I suppose i'll need to do the same with drm and xf86-video-nouveau in order to (1) get it to compile and (2) recreate the same conditions. Is that right?
Since 2010-02-17 is right after the ABI break, this should not cause any problems, so I would just move back to this older kernel first with git checkout and check for some period that it indeed works. And if it does work, start a bisection between these two dates.
Looking back at this commit range, there is the nv50 ctxprog right in the middle.
So maybe it would be a good idea to try this nouveau module parameter first :
parm: ctxfw:Use external firmware blob for grctx init (NV40) (int)
(it seems the param description needs an update for NV50 ;) )
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
2010/3/15 Xavier Chantry <[email protected]>:
Quoted 6 lines
Since 2010-02-17 is right after the ABI break, this should not cause any problems, so I would just move back to this older kernel first with git checkout and check for some period that it indeed works. And if it does work, start a bisection between these two dates.
Quoted 7 lines
Looking back at this commit range, there is the nv50 ctxprog right in the middle.
So maybe it would be a good idea to try this nouveau module parameter first :
parm: ctxfw:Use external firmware blob for grctx init (NV40) (int)(it seems the param description needs an update for NV50 ;) )
I should always ask first people who know better :)
20:19 < mwk> shining: fwiw, ctxprog generator shouldn't be the one causing cursor screwups
20:19 < mwk> it deals with entirely different area of card 20:19 < mwk> ctxprog == PGRAPH, cursor == PDISPLAY 20:19 < mwk> evoch == PDISPLAY too
I started with this,
git bisect start
git bisect good a8072c2a92a13511e28edbec015b58c6b66c35c9 bit bisect bad master
git reset -hard a8072c2a92a13511e28edbec015b58c6b66c35c9
# oops i really wanted this git reset --hard a733b93582023fd100c5ce6430f3a0b0f26af86c
built that kernel, install, reboot
Here's a summary.
2009-12-08 a8072c2a92a13511e28edbec015b58c6b66c35c9 I could not compile the stack.
Quoted 2 lines
Quoted 2 lines
a8072c2a92a13511e28edbec015b58c6b66c35c9a733b93582023fd100c5ce6430f3a0b0f26af86c
root <root-qh82uKLjDaOJy/[email protected]> 1266534758 -0500 pull : Fast-forward
2010-02-17 a733b93582023fd100c5ce6430f3a0b0f26af86c is marked as bad. Therefor i can't *really* say this is a regression.
But this confuses me. I was running a733b93582023fd100c5ce6430f3a0b0f26af86c for about 8 work days (mon-fri) and never saw the bug. Is it possible that the bug is not in the kernel? What's the next package i should re-compile, nouveau-drm or xserver-xorg-video-nouveau?
Here's the action that caused the mouse to disappear last time. In a konsole terminal i
(1) typed "dpkg -i "
(2) double clicked on "linux-headers-2.6.32-nouveau.git_nouveau.1280_amd64.deb"
(3) middle mouse clicked to paste it
(4) typed " "
(5) double clicked on "linux-image-2.6.32-nouveau.git_nouveau.1280_amd64.deb"
(6) the cursor was gone.
Funny. I had already marked a733 as good, and compiled the next kernel 128022241f068271f0fc937edf9ed22ffbac3d77. When i was one keystroke away from installing it, a733 failed.
I've tried very hard to reproduce this issue according to the steps above with several variations, but can't. I've tried middle mouse clicking in the window and dragging it outside the window, cutting and pasting very fast, very slow, repeatedly 20 times, bringing another window to focus between cut and paste. But nothing will reproduce it.
thanks,
Brian