Bug 191291

Summary: [amdgpu] mouse cursor disappearing on X11 (KDE Plasma)
Product: Drivers Reporter: Johannes Hirte (johannes.hirte)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: RESOLVED OBSOLETE    
Severity: normal CC: alexdeucher
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.10-rc1 Subsystem:
Regression: No Bisected commit-id:
Attachments: dmesg-4.10.0-rc3-00029-gbd5d7428f5e5
Xorg.0.log-4.10.0-rc3-00029-gbd5d7428f5e5

Description Johannes Hirte 2016-12-27 21:43:07 UTC
With kernel 4.10-rc1 the mouse cursor is disappearing under some circumstances. It can be triggered by logging out from KDE5 Plasma session back to sddm login manager. Other possibilities are waiting for DPM turning the screen of or switching to console and back to X.

I was just guessing, but reverting

commit a1f49cc179ce6b7b7758ae3ff5cdb138d0ee0f56
Author: Flora Cui <Flora.Cui@amd.com>
Date:   Wed Dec 14 14:36:42 2016 +0800

    drm/amdgpu: fix cursor setting of dce6/dce8
    
    Fixes: 7c83d7abc999 ("drm/amdgpu: Only update the CUR_SIZE register when
                    necessary")
    Signed-off-by: Flora Cui <Flora.Cui@amd.com>
    Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

and 

commit 7c83d7abc9997cf1efac2c0ce384b5e8453ee870
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Thu Oct 27 17:44:07 2016 +0900

    drm/amdgpu: Only update the CUR_SIZE register when necessary
    
    Normally only necessary when the cursor size changes.
    
    Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

fixed the problem for me.

hardware is
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Carrizo (rev c5)
Comment 2 Johannes Hirte 2016-12-31 18:06:49 UTC
(In reply to Alex Deucher from comment #1)
> Already fixed:
> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/
> ?id=a1f49cc179ce6b7b7758ae3ff5cdb138d0ee0f56

No, as I wrote, this one was applied and I've reverted this too. Additionally I don't see how a1f49cc179ce6b7b7758ae3ff5cdb138d0ee0f56 could be relevant. Carrizo is DCE11 not 6 or 8.
Comment 3 Michel Dänzer 2017-01-10 09:40:11 UTC
Please attach the dmesg output and Xorg log file corresponding to the problem.
Comment 4 Johannes Hirte 2017-01-10 19:18:54 UTC
Attaching dmesg and Xorg.log from kernel 4.10.0-rc3-00029-gbd5d7428f5e5

I've booted the sytem, logged into KDE Plasma session logged out and the cursor was gone under sddm. Logs were taken from console after logging out from plasma.
Comment 5 Johannes Hirte 2017-01-10 19:19:35 UTC
Created attachment 251141 [details]
dmesg-4.10.0-rc3-00029-gbd5d7428f5e5
Comment 6 Johannes Hirte 2017-01-10 19:20:03 UTC
Created attachment 251151 [details]
Xorg.0.log-4.10.0-rc3-00029-gbd5d7428f5e5
Comment 7 Johannes Hirte 2017-06-21 18:55:11 UTC
This was fixed with:

commit 69bcc0b7140c30de552aa3ef08322295862e8e2f
Author: Michel Dänzer <michel.daenzer@amd.com>
Date:   Wed Jan 11 18:27:25 2017 +0900

    Revert "drm/amdgpu: Only update the CUR_SIZE register when necessary"
    
    This reverts commits 7c83d7abc9997cf1efac2c0ce384b5e8453ee870 and
    a1f49cc179ce6b7b7758ae3ff5cdb138d0ee0f56.
    
    They caused the HW cursor to disappear under various circumstances in
    the wild. I wasn't able to reproduce any of them, and I'm not sure
    what's going on. But those changes aren't a big deal anyway, so let's
    just revert for now.
    
    Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=191291
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99143
    Acked-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

so closing this.