Bug 77531

Summary: radeonsi: kaveri: mouse cursor corruption on wayland/weston session
Product: Drivers Reporter: Alvaro Fernando García (alvarofernandogarcia)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED INVALID    
Severity: low CC: alexdeucher, alvarofernandogarcia
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 3.11+ Subsystem:
Regression: No Bisected commit-id:
Attachments: issue-photo-01
dmesg kernel 3.14
weston 1.5 output
issue photo 01
issue photo 02

Description Alvaro Fernando García 2014-06-08 21:23:03 UTC
Created attachment 138501 [details]
issue-photo-01

Kernel: 3.11+ (tested with 3.11.6, 3.12.9 and 3.14.5)
Distribution: Arch Linux
Hardware: AMD A10-7850K Kaveri APU

Description: After launching a new weston session, mouse cursor gets corrupted. 

Steps to reproduce:
- Start Linux with kernel 3.11+.
- Launch weston session (tested with 1.4+).
- Mouse cursor gets corrupted.
Comment 1 Alvaro Fernando García 2014-06-08 21:27:00 UTC
Created attachment 138511 [details]
dmesg kernel 3.14
Comment 2 Alvaro Fernando García 2014-06-08 21:31:49 UTC
Created attachment 138521 [details]
weston 1.5 output
Comment 3 Alvaro Fernando García 2014-06-08 21:37:06 UTC
Created attachment 138531 [details]
issue photo 01
Comment 4 Alvaro Fernando García 2014-06-08 21:37:39 UTC
Created attachment 138541 [details]
issue photo 02
Comment 5 Alex Deucher 2014-06-09 01:21:39 UTC
This isn't a driver bug.  It's a weston bug.  Weston assumes all hardware cursors are 64x64 pixels, but newer radeon hardware only supports 128x128 pixel cursors. Weston should be updated to query the kernel kms driver and see what size cursors it supports.  See this patch I wrote for xf86-video-modesetting:
http://cgit.freedesktop.org/xorg/driver/xf86-video-modesetting/commit/?id=677935b2d20f54f21c645b5eb386b6c9485fee5f
Comment 6 Alvaro Fernando García 2014-06-09 02:16:22 UTC
I've repoerted the bug to weston bugzilla.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=79809

Thanks for answering!
Comment 7 Alvaro Fernando García 2014-06-09 03:56:43 UTC
I've uploaded a patch to weston bugtracker, so I think the bug can be closed here as invalid.