Cursor plane flickers under DRM_MODE_ROTATE_180 when PSR is enabled
Brief summary of the problem:
Cursor plane flickers under DRM_MODE_ROTATE_180 when PSR2 is enabled. Please see attached video.
Note that GNOME/Mutter blacklists the usage of DRM_MODE_ROTATE_90/DRM_MODE_ROTATE_270. There are other issues for those two modes. But let's deal with DRM_MODE_ROTATE_180 first.
Hardware description:
- CPU: AMD Ryzen 5 PRO 7540U w/ Radeon 740M Graphics
- GPU: VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev de)
- Display(s): [drm] PSR support 1, DC PSR ver 1, sink PSR ver 3 DPCD caps 0x7b su_y_granularity 4
- Type of Display Connection: eDP
System information:
- Distro name and Version: Ubuntu Mantic
- Kernel version: mainline, older and newer kernels all have this issue.
- Custom kernel: amd-staging-drm-next
- AMD official driver version: N/A
How to reproduce the issue:
Rotate the screen 180 degree. Move the cursor and observe the issue.