From: "Jochen Roth" <jochen@panix.com>
To: Sven Luther <sven.luther@wanadoo.fr>,
linux-fbdev-devel@lists.sourceforge.net
Subject: Re: X endianess problem
Date: Tue, 10 Jun 2003 07:04:00 -0400 (EDT) [thread overview]
Message-ID: <200306101104.h5AB40k12305@panix3.panix.com> (raw)
In-Reply-To: <20030606064155.GA2166@iliana> from "Sven Luther" at Jun 06, 2003 08:41:55 AM
I just finished reading through the radeonfb/endianness thread. I am
working on an old IBM PReP thin client with an S3 Trio64V2/DX.
I started out with 2.4.19 from kernel.org and added startup code and
some patches for prep_pci.c etc. I am testing this under XFree86
4.1.0.1 with the fbdev module, current stable ppc off of debian.org.
I got the 16bit console stuff working by byte-swapping the packed
rgb words in the _setcolreg handler. Same code basically as in the
clgenfb.c, for instance.
Neither X nor fbi get the byte order right, though. I tried both the
0, 5, 10 and the 8, -3, 2 offsets for 5:5:5, and the equialents for
5:6:5 as well. (I understand the -3 conceptually, but I need to look
at the source for the library fbi uses.)
BTW, here is what happens after startx (xinit):
...
s3triofb_op_set_var con=6 1024x768-1024x768-16bpp mode=22271 56 8\
41 0 176 8 -- act=2
fb_mmap() enter
fb_mmap() success
s3triofb_op_set_var con=6 1024x768-1024x768-16bpp mode=15385 160\
24 29 3 136 6 AT act=0
...
The 22271 ps mode must get set by XFree, or it is the default for a
new VT. Then comes the mmap, followed by the proper mode switch -- this
order is not really safe, I would think.
BTW, based on my debug output X never turns off the accelerator. Is
that OK?
The hardware documentation for my chip says that there is supposed to
be an endian-swapped mapping for the frame buffer, essentially the
second 32MB of the 64MB total bar0. As far as I can tell this second
mapping does not byte-swap the video buffer.
Any suggestions on how best to proceed are greatly appreciated.
Jochen
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
next prev parent reply other threads:[~2003-06-10 11:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-04 14:54 radeonfb on pegasos powerpc motherboard and X endianess problem Sven Luther
2003-06-04 15:27 ` Michel Dänzer
2003-06-04 15:39 ` Sven Luther
2003-06-05 8:01 ` Benjamin Herrenschmidt
2003-06-05 7:59 ` Benjamin Herrenschmidt
2003-06-05 8:19 ` Sven Luther
2003-06-05 11:42 ` Benjamin Herrenschmidt
2003-06-05 11:58 ` Sven Luther
2003-06-05 12:27 ` Benjamin Herrenschmidt
2003-06-05 13:12 ` Sven Luther
2003-06-06 6:02 ` Geert Uytterhoeven
2003-06-06 6:30 ` Sven Luther
2003-06-06 6:35 ` Geert Uytterhoeven
2003-06-06 6:41 ` Sven Luther
2003-06-10 11:04 ` Jochen Roth [this message]
2003-06-13 9:27 ` Michel Dänzer
2003-06-13 10:05 ` Jochen Roth
2003-06-13 16:57 ` Michel Dänzer
2003-06-06 6:00 ` radeonfb on pegasos powerpc motherboard and " Geert Uytterhoeven
2003-06-06 5:58 ` Geert Uytterhoeven
2003-06-10 9:54 ` Sven Luther
2003-06-10 10:45 ` Sven Luther
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200306101104.h5AB40k12305@panix3.panix.com \
--to=jochen@panix.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=sven.luther@wanadoo.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).