linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jochen Roth" <jochen@panix.com>
To: "Michel Dänzer" <michel@daenzer.net>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: X endianess problem
Date: Fri, 13 Jun 2003 06:05:26 -0400 (EDT)	[thread overview]
Message-ID: <200306131005.h5DA5Qp00126@panix3.panix.com> (raw)
In-Reply-To: <1055496457.1853.88.camel@thor.holligenstrasse29.lan> from "Michel Dänzer" at Jun 13, 2003 11:27:38 AM

> > Neither X nor fbi get the byte order right, though.
> 
> I think they just assume native byte order.

Yes -- Gerd Knorr set me straight on that one after I emailed him a
patch for fbi...

> > BTW, based on my debug output X never turns off the accelerator. Is
> > that OK?
> 
> fbdevHWMapMMIO() in 4.3.0 seems to disable it.

I will give that a try. I have not seen any negative side effects of
the accelerator being enabled, but it seems weird.

I also would have expected for the X server to just go and talk to
the fbdev kernel driver, instead of still mucking with the hardware
directly. At least the X server on exit at times seems to want to
reset my chip into 80x25 or 640x400 on occasion. Can't tell for sure,
my monitor does not digest the timing very well. I am fairly certain
that my driver does not do that, based on set_var() printks.

> > 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.
> 
> Well, there's no single byte swapping working for all cases, maybe you
> need to configure it by writing to some register(s)?

Yes. I found the 2 bits 36 hours ago. X looks much nicer with BE pixels.

Thanks for your suggestions.

Jochen



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5

  reply	other threads:[~2003-06-13 10:05 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
2003-06-13  9:27                       ` Michel Dänzer
2003-06-13 10:05                         ` Jochen Roth [this message]
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=200306131005.h5DA5Qp00126@panix3.panix.com \
    --to=jochen@panix.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=michel@daenzer.net \
    /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).