linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Sven Luther <sven.luther@wanadoo.fr>
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: radeonfb on pegasos powerpc motherboard and X endianess problem
Date: 05 Jun 2003 09:59:47 +0200	[thread overview]
Message-ID: <1054799986.701.20.camel@gaston> (raw)
In-Reply-To: <20030604145423.GA22876@iliana>

On Wed, 2003-06-04 at 16:54, Sven Luther wrote:
> Hello,
> 
> I finally have a working pegasos motherboard as well as a working kernel
> with a 1.6 radeonfb. I have also installed Daniel Stone's X 4.3.0
> debian/sid packages, and notice the following :
> 
>   1) radeonfb works fine in 8bpp and 32bpp but depth 15 and 16 only give
>   me some very dark grey.

Can you try my devel tree version ?

(rsync.penguinppc.org::benh-devel)

>   2) when running X with the UseFBDev option the colors are bad, i guess
>   it is an endianess problem. (with and without accel)

What radeon card is this ?

>   3) When running X without the UseFBDev option, the colors are good,
>   but i get garbage when i return to the console. Not exactly garbage,
>   at first it is ok, but when i enter a line or somehow pan the screen,
>   the corruption start. Doing a vt switch and back redraws a clean
>   screen.

Known problem. This is actually a bit nasty. X doesn't fully restore the
engine state (and it's in fact quite difficult to know in which state
it should restore it) and there's no hook in the fbdev layer for
restoring things like that when switching from KD_GRAPHICS back to
KD_TEXT. I'm thinking about adding such a hook in 2.5. Usually, a VT
switch will trigger a restore of the engine state, at least it will
with my version of the driver.

> So, i think something is wrong. The kernel was forked around the
> 2.4.18-rc4 time in a messy way, i am actually working on bringing the
> patch in sync with the newer ppc trees. Matroxfb also had problems and
> Petr told me that it probably was an endianess issue back then. I am
> using a Radeon 9000 board.

Ok, there is a problem with older radeonfb's on these regarding
endianness, newer driver should work.

> So, since this is a pegasos, based on the pop specification, which in
> turn are related to the chrp ones, and i was told that most chrp
> motherboard did endianess inversion in the northbridge or something
> such, and i believe that the pegasos doesn't do so, is it possible that
> this is the cause, and that XFree86 know how to program the graphic card
> to do endianess conversion, and fbdev knows not, or maybe that the
> XFree86 radeon driver doesn't know how to act exactly and accidentally
> reverts the endianess conversion or something such.
> 
> Using the fbdev driver in xfree86, i get a seemingly working X, but the
> background X image is yellowish and the mode is not set correctly it is
> correct, but the image is a bit smaller than the screen, and centered or
> moved to the right.
> 
> Does someone know with more exactitude what the situation is exactly
> with regard the kernel and endianess conversion with the different
> powerpc subarches.

Endianness shouldn't be related to the subarch at all


-------------------------------------------------------
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.

  parent reply	other threads:[~2003-06-05  8:00 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 [this message]
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
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=1054799986.701.20.camel@gaston \
    --to=benh@kernel.crashing.org \
    --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).