Re: Radeon 9000 If (RV250), Mac G4 (Wintunnel) problems with XFree86

2003-08-01 Thread Simon Urbanek
On Saturday, July 26, 2003, at 01:08 PM, Michel Dänzer wrote:

On Tue, 2003-07-15 at 16:29, Benjamin Herrenschmidt wrote:
When did you try exactly ? I've seen more fixes for TMDS getting
in the CVS recently. I'm not sure what's up here, definitely not
something the doc explains. I suspect it's the path of pixel
data from the framebuffer to the TMDS transmitter that has an
endian problem, I fail to see why SURFACE_CNTL thing would fail,
or maybe it's a problem related to surface translation getting in
our way ?
I suspected that as well. If current CVS still doesn't work (works
perfectly here with an external CRT on an M9 in a TiBook IV), please 
try
this patch and post the RADEONInitCommonRegisters output.
Thanks for the info. I was out of town so I couldn't test it until now.

I built X from the current CVS just a few hours ago with the following 
results:

1) If I enable FBDev, then I get a nice picture on the TMDS screen, 
correct colors and nice 24 bit color depth. I also get a white screen 
on the ADC (VGA) screen. (After booting Ben's .21 kernel with radeon fb 
drivers you get white ADC screen and console DVI screen. When starting 
X the white screen goes black and then back to white; I'm running the 
radeonfb on boot at 8 bpp). The funny thing is that the mouse is 
correctly displayed on the corresponding screen (i.e. I can move the 
mouse from one screen to the other). But the ADC screen is otherwise 
totally white. It is evident that some weird overplotting is taking 
place since the DVI screen has some painting problems (it looks like 
the driver thinks that it paints in the ADC fb but in fact it's still 
on the DVI screen).
The nice thing here is that you can get back to the console without 
problems, but still the second screen is unusable.

2) If I disable FBDev, then the results are exactly same as the version 
of X I used when first reporting this problem: signal is only on the 
DVI screen (ADC is blanked), the colors are broken in that weird manner 
(half-split color bits). Getting back to the console is impossible 
since both screens get blanked once you try that.

I used your patch, but the info doesn't seem very helpful (btw the 
behavior was the same with/without the patch). I have attached logs 
from both runs.

I'm still very thankful for any help!

Ben, can we have the second framebuffer in the kernel *wink*? Your 
driver still seem to be only working one ;). It's just missing the 
second fb device :P

Cheers,
Simon


X-FbDevOff.log
Description: Binary data


X-FbDevOn.log
Description: Binary data


Re: Radeon 9000 If (RV250), Mac G4 (Wintunnel) problems with XFree86

2003-06-04 Thread Daniel Stone
On Wed, Jun 04, 2003 at 12:08:47PM +0100, John Leach wrote:
 Hi Michel,
 
 My attempts at using the binary have failed.  X reports:
 
 (II) LoadModule: radeon
 (II) Loading /usr/X11R6/lib/modules-dri-trunk/drivers/radeon_drv.o
 (II) Module radeon: vendor=The XFree86 Project
 compiled for 4.3.99.5, module version = 4.0.1
 Module class: XFree86 Video Driver
 ABI class: XFree86 Video Driver, version 0.7
 (EE) module ABI minor version (7) is newer than the server's version (6)
 (II) UnloadModule: radeon
 (II) Unloading /usr/X11R6/lib/modules-dri-trunk/drivers/radeon_drv.o
 (EE) Failed to load module radeon (module requirement mismatch, 0)
 
 I've tried and failed to build a new dri-trunk package incorporating the
 patch (most likely a newbie deb package building/xfree86 compiling
 problem).
 
 My package versions are:
 xserver-xfree86 4.2.1-6  the XFree86 X server
 xserver-xfree86-dri-trunk 2003.05.04-1  The XFree86 X server [DRI trunk]
 
 If this is due to your binary being compiled against a different version
 of X than my own, what can I do?  Should I try it with a 4.3 server?
 (and if so, are some official debs available?)  Could you compile it
 against a lower version for me?  Or shall I just give up on this whilst
 somebody else with more xfree86 smarts tests it? :(

4.3.0 debs are available at:
deb http://penguinppc.org/~daniels/sid/$(ARCH) ./

-- 
Daniel Stone [EMAIL PROTECTED] [EMAIL PROTECTED]
KDE: Konquering a desktop near you - http://www.kde.org


pgp0.pgp
Description: PGP signature


Re: Radeon 9000 If (RV250), Mac G4 (Wintunnel) problems with XFree86

2003-06-04 Thread Simon Urbanek
On Wednesday, June 4, 2003, at 01:19 AM, Michel Dänzer wrote:

On Tue, 2003-06-03 at 15:22, Benjamin Herrenschmidt wrote:
On Fri, 2003-05-30 at 11:52, Simon Urbanek wrote:
Summary:
1) CRT + TMDS dual head configuration doesn't work
2) In all configurations colors are completely wrong
3) closing X blanks all monitors
I have tested following versions of XFree86:
Debian sid officail 4.2.1
Michel Daenzer's 4.2.1 DRI build
Debian inoffical 4.3.0
latest CVS build (by myself) as of yesterday (4.3.99...)
Ok, CVS is the really interesting one. Michel, did you ever commit
the fix of SURFACE_CNTL ? That should fix the colors at least on
the main aperture
It's in, but only handles aperture 0. Can someone try
http://penguinppc.org/~daenzer/XFree86/radeon-ap1.diff or
http://penguinppc.org/~daenzer/XFree86/radeon_drv.o ?
I tried the patch, but without any visible results :(.

I was digging a bit more in the wrong colors issue and found out the 
following:
When I'm running the CRT,CRT layout (as opposed to the previous 
CRT,TMDS) the colors behave differently. In fact is seems like a common 
endianess-problem: the layout of colors is 0xBBGGRR00 in Mac big-endian 
notation, but the color on the screen written by the driver are 
0x00RRGGBB - that is the colors red and green are swapped and blue is 
never seen. This is true for both screens.

So the summary (CVS XFree):
* CRT,CRT mode: swapped 'byte-sex' causes wrong colors, otherwise both 
screens are OK
* CRT,TMDS mode: CRT screen is off, TMDS has split colors - i.e. the 
low and high 4 bits of the components are interlaced

I wanted to look at the code, but I can't seem to find any tech info on 
the Radeon chip - is it available to the chosen only after signing a 
NDA?

Any help, especially with the CRT+TMDS mode is highly appreciated!

Cheers,
Simon
PS: Additional info for Ben: In fact the kernel radeon driver works 
with the DFP *only* - in CRT,CRT layout the kernel hangs in the 
early-boot screen (and doesn't go further - no network etc.).

___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel