Bug 87470 - Text corruption after configuring a third monitor using two cards HD7970
Summary: Text corruption after configuring a third monitor using two cards HD7970
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-19 01:11 UTC by Olaf Hernandez B
Modified: 2014-12-25 05:03 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Capture of two monitors first card (463.80 KB, image/png)
2014-12-19 01:11 UTC, Olaf Hernandez B
no flags Details
Capture of third monitor in second card (31.55 KB, image/png)
2014-12-19 01:13 UTC, Olaf Hernandez B
no flags Details
Xorg log (72.35 KB, text/plain)
2014-12-19 01:14 UTC, Olaf Hernandez B
no flags Details
xorg.conf (1.15 KB, text/plain)
2014-12-19 01:16 UTC, Olaf Hernandez B
no flags Details
Xorg log with segmentation fault (20.51 KB, text/plain)
2014-12-19 22:45 UTC, Olaf Hernandez B
no flags Details
xorg log with latest versions (64.61 KB, text/plain)
2014-12-20 00:19 UTC, Olaf Hernandez B
no flags Details
picture of login dialog (574.86 KB, image/jpeg)
2014-12-20 00:28 UTC, Olaf Hernandez B
no flags Details
Xorg log of branch 1.16 (72.46 KB, text/plain)
2014-12-24 17:47 UTC, Olaf Hernandez B
no flags Details
Backported code from 1.16.99 branch to correct text corruption in glamor (10.98 KB, patch)
2014-12-25 05:03 UTC, Olaf Hernandez B
no flags Details | Splinter Review

Description Olaf Hernandez B 2014-12-19 01:11:37 UTC
Created attachment 111020 [details]
Capture of two monitors first card

I have two Radeon HD7970 installed in my PC. The PC has installed Debian Jessie with XFCE as graphical enviroment.

The PC had two monitors connected to the first Radeon card and it was working fine.

Today I attached a old flat monitor in the second Radeon card. After some configuration in xorg.conf I can use the third monitor as second screen (xorg screen). The problem is the text have some corruption and make the read impossible. The graphics are fine only the text is affected. Text in terminal and xterm are fine. Only the fonts of the graphics programs are affected.
Comment 1 Olaf Hernandez B 2014-12-19 01:13:02 UTC
Created attachment 111021 [details]
Capture of third monitor in second card
Comment 2 Olaf Hernandez B 2014-12-19 01:14:29 UTC
Created attachment 111022 [details]
Xorg log
Comment 3 Olaf Hernandez B 2014-12-19 01:16:40 UTC
Created attachment 111023 [details]
xorg.conf
Comment 5 Michel Dänzer 2014-12-19 01:51:48 UTC
Olaf, if you can confirm that those commits fix the problem, maybe Julien can consider backporting them to the 1.16 branch.
Comment 6 Olaf Hernandez B 2014-12-19 02:06:36 UTC
(In reply to Michel Dänzer from comment #5)
> Olaf, if you can confirm that those commits fix the problem, maybe Julien
> can consider backporting them to the 1.16 branch.

Thanks Michel, I would like to confirm this by myself, but i'm not sure what to do. Can you give me some guidance?
Comment 7 Olaf Hernandez B 2014-12-19 02:41:00 UTC
(In reply to Michel Dänzer from comment #5)
> Olaf, if you can confirm that those commits fix the problem, maybe Julien
> can consider backporting them to the 1.16 branch.

Ok, I think now understand.

I'm gonna clone xorg-server-1.16.1.901 via git. Then apply the patches you indicated me (from the specific commits) and compile it. Then test if the problem is gone. 

This is correct?

Sorry for this. I have no experience with xorg and I have basics skills in git.
Comment 8 Michel Dänzer 2014-12-19 03:22:00 UTC
(In reply to Olaf from comment #7)
> I'm gonna clone xorg-server-1.16.1.901 via git. Then apply the patches you
> indicated me (from the specific commits) and compile it. Then test if the
> problem is gone. 
> 
> This is correct?

Yes, exactly.
Comment 9 Olaf Hernandez B 2014-12-19 21:34:42 UTC
(In reply to Michel Dänzer from comment #8)
> (In reply to Olaf from comment #7)
> > I'm gonna clone xorg-server-1.16.1.901 via git. Then apply the patches you
> > indicated me (from the specific commits) and compile it. Then test if the
> > problem is gone. 
> > 
> > This is correct?
> 
> Yes, exactly.


I made the test using xorg-server-1.16.1.901 with the commits you indicated me and the text corruption is still present.

Also made the test using xorg-server-1.16.2.901 with the same commits and I got text corruption.

Does I need to pair the version of xserver with a specific version of radeon driver? In both tests I used version 7.5.0.
Comment 10 Olaf Hernandez B 2014-12-19 22:43:37 UTC
Now I tested the last version of xserver, radeon driver and glamor module and the xserver die with segmentation fault.
Comment 11 Olaf Hernandez B 2014-12-19 22:45:28 UTC
Created attachment 111060 [details]
Xorg log with segmentation fault

This happens using the last versions of xserver, radeon driver and glamor module.
Comment 12 Olaf Hernandez B 2014-12-20 00:17:35 UTC
I recompiled glamor again and now the segmentantion is gone.

Now the graphics don't have fill, I see only black and blue boxes without text in login dialog. The background of debian looks fine.

After a lot of blind tries I was able to login and see that the third monitor still have corruption in text even with the latest xorg and radeon driver.
Comment 13 Olaf Hernandez B 2014-12-20 00:19:16 UTC
Created attachment 111063 [details]
xorg log with latest versions
Comment 14 Olaf Hernandez B 2014-12-20 00:28:27 UTC
Created attachment 111064 [details]
picture of login dialog
Comment 15 Michel Dänzer 2014-12-24 08:02:31 UTC
> [   126.087] (II) Loading sub module "glamoregl"
> [   126.087] (II) LoadModule: "glamoregl"
> [   126.087] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
> [   126.087] (II) Module glamoregl: vendor="X.Org Foundation"
> [   126.087] 	compiled for 1.16.99.901, module version = 0.6.0

You're using glamor from the standalone tree. Please use glamor from the xserver tree instead.
Comment 16 Olaf Hernandez B 2014-12-24 17:46:18 UTC
(In reply to Michel Dänzer from comment #15)
> > [   126.087] (II) Loading sub module "glamoregl"
> > [   126.087] (II) LoadModule: "glamoregl"
> > [   126.087] (II) Loading /usr/local/lib/xorg/modules/libglamoregl.so
> > [   126.087] (II) Module glamoregl: vendor="X.Org Foundation"
> > [   126.087] 	compiled for 1.16.99.901, module version = 0.6.0
> 
> You're using glamor from the standalone tree. Please use glamor from the
> xserver tree instead.

Ok, Now, finally, I made a right compilation of xserver with the right glamor and yes! the text corruption is gone! (in last version of xserver)

Thanks a lot!

Also I applied the commits you told me to the last version of 1.16 branch (X.Org X Server 1.16.3) and I can confirm that the commits solves the text corruption in that branch. 

I have applied the changes manually because there are some functions affected in the 1.16 branch and I had to solve some minor errors in compilation.

Now, how we inform Julien to backport this commits into the 1.16 branch? Or how can I integrate this changes in the 1.16 branch?
Comment 17 Olaf Hernandez B 2014-12-24 17:47:33 UTC
Created attachment 111294 [details]
Xorg log of branch 1.16
Comment 18 Michel Dänzer 2014-12-25 02:18:23 UTC
(In reply to Olaf Hernandez B from comment #16)
> Now, how we inform Julien to backport this commits into the 1.16 branch?

I already added him to the CC list of this report. If you could create proper Git patches for the backported fixes and attach them here or send them to Julien and the xorg-devel mailing list by e-mail, that might be helpful.
Comment 19 Olaf Hernandez B 2014-12-25 05:02:34 UTC
> I already added him to the CC list of this report. If you could create
> proper Git patches for the backported fixes and attach them here or send
> them to Julien and the xorg-devel mailing list by e-mail, that might be
> helpful.

I have ready the patch. Thank you for your support.
Comment 20 Olaf Hernandez B 2014-12-25 05:03:43 UTC
Created attachment 111310 [details] [review]
Backported code from 1.16.99 branch to correct text corruption in glamor


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.