Bug 101023 - rotating output on Radeon HD 5870 causes black screen
Summary: rotating output on Radeon HD 5870 causes black screen
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/Radeon (show other bugs)
Version: 7.7 (2012.06)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: xf86-video-ati maintainers
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-12 15:07 UTC by Harald Linden
Modified: 2017-05-16 02:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
recording of the described behaviour (3.19 MB, video/mp4)
2017-05-12 15:07 UTC, Harald Linden
no flags Details
kernel log (98.56 KB, text/x-log)
2017-05-12 15:07 UTC, Harald Linden
no flags Details
Xorg log (194.33 KB, text/plain)
2017-05-12 15:07 UTC, Harald Linden
no flags Details

Description Harald Linden 2017-05-12 15:07:10 UTC
Created attachment 131337 [details]
recording of the described behaviour

Description of problem:

I have two screens connected, one using DisplayPort, one using DVI. The problem also occurs when both are connected using DVI.
Rotating one of the screens by 90° results in a black screen, sometimes filled with artefacts. The mouse pointer still works on that screen, however no windows show up. This occurs under Cinnamon, Plasma and i3, using the onboard tools of the two former ones or xrandr on the latter. The radeon driver spams the syslog with lines like:

Mai 08 18:58:40 kernel: radeon 0000:01:00.0: evergreen_surface_check_2d:282 cb pitch 1920 invalid must be aligned with 512                                
Mai 08 18:58:40 kernel: radeon 0000:01:00.0: evergreen_cs_track_validate_cb:431 cb[0] invalid (0x000000ef 0x00007e8f 0x00190c80 0x01088468)               
Mai 08 18:58:40 kernel: radeon 0000:01:00.0: evergreen_packet3_check:1949 invalid cmd stream 1782  

Version-Release number of selected component (if applicable):

Current Operating System: Linux cik-pc31.uni-paderborn.de 4.10.10-200.fc25.x86_64 #1 SMP Thu Apr 13 01:11:51 UTC 2017 x86_64
Build ID: xorg-x11-server 1.19.3-1.fc25
RADEON(0): Chipset: "ATI Radeon HD 5800 Series" (ChipID = 0x689e)


How reproducible:

Every time.

Steps to Reproduce:

1. Rotate a screen by 90° left or right.
2. See result.

Actual results:
Driver tries to resize virtual desktop and fails immediately on rotation:

Mai 08 18:58:40 hostname /usr/libexec/gdm-x-session[1779]: (II) RADEON(0): Allocate new frame buffer 4480x1920 stride 4480                                         
Mai 08 18:58:40 hostname /usr/libexec/gdm-x-session[1779]: (II) RADEON(0): VRAM usage limit set to 167986K                                                         
Mai 08 18:58:40 hostname kernel: radeon 0000:01:00.0: evergreen_surface_check_2d:282 cb pitch 1920 invalid must be aligned with 512                                
Mai 08 18:58:40 hostname kernel: radeon 0000:01:00.0: evergreen_cs_track_validate_cb:431 cb[0] invalid (0x000000ef 0x00007e8f 0x00190c80 0x01088468)               
Mai 08 18:58:40 hostname kernel: radeon 0000:01:00.0: evergreen_packet3_check:1949 invalid cmd stream 1782                                                         
Mai 08 18:58:40 hostname kernel: [drm:radeon_cs_ioctl [radeon]] *ERROR* Invalid command stream !                         

Black screen, artefacts, mouse pointer showing up normally.


Expected results:

Fully working desktop on rotated screen.
Comment 1 Harald Linden 2017-05-12 15:07:33 UTC
Created attachment 131338 [details]
kernel log
Comment 2 Harald Linden 2017-05-12 15:07:48 UTC
Created attachment 131339 [details]
Xorg log
Comment 3 Michel Dänzer 2017-05-13 07:28:40 UTC
Does this still happen with xf86-video-ati 7.9.0 or at least 7.8.0?
Comment 4 Harald Linden 2017-05-15 16:07:34 UTC
(In reply to Michel Dänzer from comment #3)
> Does this still happen with xf86-video-ati 7.9.0 or at least 7.8.0?

I have set up a Gentoo system today to get a chance to try a newer version of the driver. The problem is not reproducable on 

Linux kernel 4.10.14
X.Org X Server 1.19.2 (current Gentoo stable)
xf86-video-ati 7.8.0

However I can't try out the radeon driver version 7.7.99 as it is not in the respositories anymore, so I'm not sure if it would have occured at all using otherwise the same config as on Fedora 25.

I'll report back when Fedora 26 goes stable, it seems that 7.9.0 is the stable version for Fedora 26.
Comment 5 Harald Linden 2017-05-15 16:53:39 UTC
(In reply to Michel Dänzer from comment #3)
> Does this still happen with xf86-video-ati 7.9.0 or at least 7.8.0?

For fun, I've just tried out the Fedora 26 alpha version of the xorg-x11-drv-ati and the problem has been resolved using module version = 7.9.0. Rotating the second screen works fine now.
Comment 6 Michel Dänzer 2017-05-16 02:19:03 UTC
Great, thanks for the followup.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.