Mouse cursor corruption when switching users
A message that is not in the archive (sent off-list or not yet received): [email protected]/
https://bugs.freedesktop.org/show_bug.cgi?id=46796
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|[email protected] |[email protected] | |.org QAContact|[email protected] | Product|xorg |DRI Component|Driver/Radeon |DRM/Radeon
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
--- Comment #6 from Michel Dänzer <[email protected]> 2012-03-06 09:30:19 PST --- Created attachment 58066
--> https://bugs.freedesktop.org/attachment.cgi?id=58066
Verbose test patch
In order to facilitate testing, here's another version of the fix which prints a message
[drm] Fixing large cursor offset 0xXXXXXXXX >= 0x08000000
when the suspected problem would have occurred. So if such a message appears in dmesg but the cursor is unharmed, we know this is indeed the proper fix.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
--- Comment #7 from jonathan <[email protected]> 2012-03-06 19:41:29 PST --- This is a bit above my head I think. I got the source for xserver-xorg-video-ati from the Ubuntu repositories and tried to apply the patch to it. It looks like a lot of the right files are there, but there's no radeon_gem.c. The package version is 6.14.99~git20111219.aacbd629-0ubuntu2, which includes a date that I think indicates that it's not TOO old, however I cloned the git repository atgit://anongit.freedesktop.org/xorg/driver/xf86-video-ati and had the same problem. I've also never tested a kernel mod so I'm not sure what I would do if I got the patch to compile.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=46796
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #57853|0 |1
is obsolete| |
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
--- Comment #8 from Michel Dänzer <[email protected]> 2012-03-07 00:21:12 PST --- (In reply to comment #7)
Quoted 2 lines
I got the source for xserver-xorg-video-ati from the Ubuntu repositories and tried to apply the patch to it.
That can't work, as the patch is for the kernel, not the X driver.
You should be able to get the source for your running kernel with
apt-get source linux-image-$(uname -r)
Quoted 2 lines
I've also never tested a kernel mod so I'm not sure what I would do if I got the patch to compile.
Boot the patched kernel (or load the patched radeon kernel module) and try to reproduce the problem. Look for the message from comment #6 in dmesg.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
--- Comment #9 from jonathan <[email protected]> 2012-03-10 17:04:58 PST --- This patch causes my computer to crash at login. However, it's not a super bad crash because I was able to ssh in and check dmesg. The comment did not appear. Just to make sure it wasn't something I did when trying to compile a kernel, I reversed the patch and recompiled, and I'm running that kernel now, so I'm pretty sure it's the patch.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=46796
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #58066|0 |1
is obsolete| |
--- Comment #10 from Michel Dänzer <[email protected]> 2012-03-12 05:13:22 UTC --- Created attachment 58312
--> https://bugs.freedesktop.org/attachment.cgi?id=58312
Verbose test patch with crash fixed
(In reply to comment #9)
Quoted 2 lines
This patch causes my computer to crash at login. However, it's not a super bad crash because I was able to ssh in and check dmesg.
Sorry about that, here's another test patch which shouldn't crash.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
--- Comment #11 from jonathan <[email protected]> 2012-03-12 16:41:14 PDT --- I think this patch works as intended. Well actually, it's hard for me to say it actually fixed the problem due to its random nature, but I haven't had the mouse corruption issue on this patched driver, and the message appears in dmesg:
[ 524.112945] [drm] Fixing large cursor offset 0x0d1e0000 >= 0x00000000 [ 537.020931] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id [ 537.308976] [drm] Fixing large cursor offset 0x0cf80000 >= 0x00000000 [ 607.000940] [drm:drm_mode_getfb] *ERROR* invalid framebuffer id
I have to say that the log confuses me since 1 << 27 is not 0.
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=46796
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #58312|0 |1
is obsolete| |
--- Comment #12 from Michel Dänzer <[email protected]> 2012-03-14 07:57:05 PDT --- Created attachment 58436
--> https://bugs.freedesktop.org/attachment.cgi?id=58436
Submitted fix
(In reply to comment #11)
Quoted 2 lines
[...] I haven't had the mouse corruption issue on this patched driver, and the message appears in dmesg:
Okay, so an unpatched driver probably would use too large offsets sometimes, which would definitely explain the corrupted cursor. So the fix seems to be working.
Quoted 1 line
I have to say that the log confuses me since 1 << 27 is not 0.
Indeed, but that's just a bug of the DRM_INFO call. :) (Type mismatch between format string and values)
I'm attaching the fix as I submitted it for inclusion into the kernel.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
--- Comment #13 from Chris Rankin <[email protected]> 2012-03-31 14:26:15 PDT --- Duplicate of #36769, perhaps?
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=46796
--- Comment #14 from Florian Mickler <[email protected]> 2012-04-05 06:50:20 PDT --- A patch referencing this bug report has been merged in Linux v3.4-rc1:
commit c4353016dac10133fa5d8535af83f0c4845a2915
Author: Michel Dänzer <[email protected]> Date: Wed Mar 14 17:12:41 2012 +0100
drm/radeon: Restrict offset for legacy hardware cursor.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
Michel Dänzer <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED--- Comment #15 from Michel Dänzer <[email protected]> 2012-04-05 06:55:05 PDT --- Resolving per comment #14, reopen if you're still seeing the problem with the fix.
Signature · 7 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=46796
Alex Deucher <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #16 from Alex Deucher <[email protected]> 2012-04-06 06:14:08 PDT --- *** Bug 36769 has been marked as a duplicate of this bug. ***
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.