Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229499 - xorg-server 1.3.0.0: libfbdevhw color swapping issue with depths >8bpp on ppc64
Summary: xorg-server 1.3.0.0: libfbdevhw color swapping issue with depths >8bpp on ppc64
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: High normal
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-26 07:03 UTC by Charles Monett
Modified: 2008-07-01 06:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info of system with issue (bug_system_emerge_info.txt,3.14 KB, text/plain)
2008-06-26 07:04 UTC, Charles Monett
Details
emerge --info of system that had a working xorg setup (normal_system_emerge_info.txt,3.36 KB, text/plain)
2008-06-26 07:05 UTC, Charles Monett
Details
xorg.conf used to test color swapping issue (xorg.conf,2.68 KB, text/plain)
2008-06-26 07:11 UTC, Charles Monett
Details
Xorg log after sync and emerge of xorg-server 1.4.2 (Xorg.0.log,10.88 KB, text/plain)
2008-06-28 00:25 UTC, Charles Monett
Details
Xorg log after emerge of xorg-server 1.4.2 and required post-install packages (Xorg.0.log,14.55 KB, text/plain)
2008-07-01 02:09 UTC, Charles Monett
Details
The actual captured output in Xorg 1.4.2. (actual_output.jpg,436.97 KB, image/jpeg)
2008-07-01 06:14 UTC, Charles Monett
Details
Output as done via a screen capture. (screen_capture.png,702.74 KB, image/png)
2008-07-01 06:24 UTC, Charles Monett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Monett 2008-06-26 07:03:56 UTC
The colors in Xorg 7.2 are swapped at depths above 8bpp on the xorg fbdev driver.  This was observed on two separate machines that were configured with GXT4500 and similar framebuffers, with the gxt4500 kernel driver.  Colors were normal on 8bpp, but were swapped at higher settings.

This issue occurred independently of card(all gxt4500 supported cards), resolution, or UseFBDev setting.  Colors were as expected at 8bpp.  The framebuffer console was unaffected.

Reproducible: Always

Steps to Reproduce:
1.Set up a 2008.0 ppc64 system with a GXT4500P or similar card, with 64bit userland.
2.Configure a system with a kernel that uses the gxt4500 framebuffer kernel driver.
3.Build xorg-x11 7.2 ebuild, with xorg-drivers 1.3.0.0-r5.
4.Use fbdev driver in xorg.conf.  An example will be attached of an xorg.conf that will work.
5.Launch xorg with any window manager or application. TWM can be used as an example.
Actual Results:  
Cyan colors were swapped for yellows, golds were swapped with light blues, blues were swapped with reds.  Grays, whites, and blacks remained unchanged.  




Expected Results:  
The colors should not have been swapped at any color depth.

Note: emerge --info will be pasted into attachments due to length. The kernel is a stock 2.6.21.1 kernel.

An initial solution to this issue was to copy over an old libfbdevhw.so over the new one.  This fixed the color swapping issue.  If the old drivers can be built

This is the output from emerge --search for xorg-server and xorg-x11 on a working machine:
*  x11-base/xorg-server
      Latest version available: 1.3.0.0-r5
      Latest version installed: 1.1.1-r1
      Size of files: 9,046 kB
      Homepage:      http://xorg.freedesktop.org/
      Description:   X.Org X servers
      License:       xorg-server MIT

*  x11-base/xorg-x11
      Latest version available: 7.2
      Latest version installed: 7.1
      Size of files: 0 kB
      Homepage:      http://xorg.freedesktop.org
      Description:   An X11 implementation maintained by the X.Org Foundation (meta package)
      License:       as-is


This is the output from emerge --search for xorg-server and xorg-x11 where the bug occurred:
*  x11-base/xorg-server
      Latest version available: 1.3.0.0-r5
      Latest version installed: 1.3.0.0-r5
      Size of files: 9,046 kB
      Homepage:      http://xorg.freedesktop.org/
      Description:   X.Org X servers
      License:       xorg-server MIT

*  x11-base/xorg-x11
      Latest version available: 7.2
      Latest version installed: 7.2
      Size of files: 0 kB
      Homepage:      http://xorg.freedesktop.org
      Description:   An X11 implementation maintained by the X.Org Foundation (meta package)
      License:       as-is
Comment 1 Charles Monett 2008-06-26 07:04:50 UTC
Created attachment 158471 [details]
emerge --info of system with issue
Comment 2 Charles Monett 2008-06-26 07:05:39 UTC
Created attachment 158473 [details]
emerge --info of system that had a working xorg setup
Comment 3 Charles Monett 2008-06-26 07:11:23 UTC
Created attachment 158477 [details]
xorg.conf used to test color swapping issue
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2008-06-27 17:04:33 UTC
Could you give sync and give xorg-server-1.4.2 a shot?
Comment 5 Charles Monett 2008-06-28 00:25:51 UTC
Created attachment 158705 [details]
Xorg log after sync and emerge of xorg-server 1.4.2
Comment 6 Charles Monett 2008-06-28 00:27:33 UTC
Trying xorg-server 1.4.2 was unsuccessful - see new attachment.  If it requires more packages to emerge, I'll be glad to do so.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2008-06-29 23:48:35 UTC
Please file a bug at bugs.freedesktop.org in the xorg product with your Xorg.0.log and xorg.conf from 1.4.2, and post the URL here so we can track it. Thanks!
Comment 8 Charles Monett 2008-06-30 13:29:28 UTC
(In reply to comment #7)
> Please file a bug at bugs.freedesktop.org in the xorg product with your
> Xorg.0.log and xorg.conf from 1.4.2, and post the URL here so we can track it.
> Thanks!
> 

This is for both issues as seen in the log, and refer to here when submitting upstream as well?
Comment 9 Charles Monett 2008-06-30 13:52:05 UTC
(In reply to comment #7)
> Please file a bug at bugs.freedesktop.org in the xorg product with your
> Xorg.0.log and xorg.conf from 1.4.2, and post the URL here so we can track it.
> Thanks!
> 

It has been reported upstream as bug 16569.

URL:
https://bugs.freedesktop.org/show_bug.cgi?id=16569
Comment 10 Charles Monett 2008-06-30 13:57:01 UTC
I apologize if this comes as bugspam - this is to clarify the following:
The reference to 16569 is not to Gentoo's 16569(unrelated), but freedesktop's 16569.  
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2008-06-30 17:51:37 UTC
Unfortunately I didn't read your attachment showing that you didn't follow the post-installation instructions of xorg-server, and I assumed that you had actually reproduced the issue on 1.4.2. Please do so.
Comment 12 Charles Monett 2008-07-01 02:09:57 UTC
Created attachment 159037 [details]
Xorg log after emerge of xorg-server 1.4.2 and required post-install packages

This obsoletes 158705, which only pulled the server and not the packages it needed.  This is the log of what happens with 1.4.2, screenshot to follow.
Comment 13 Charles Monett 2008-07-01 06:14:48 UTC
Created attachment 159059 [details]
The actual captured output in Xorg 1.4.2.
Comment 14 Charles Monett 2008-07-01 06:24:22 UTC
Created attachment 159061 [details]
Output as done via a screen capture. 

This is what should be displayed on the screen.  

The previous attachment shows what it actually looks like on screen.  Screen captures initiated by the test system will not show the color swap.