public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* console colors messed up with 2.4.X Rivafb driver
@ 2001-05-29 14:29 sduchene
  2001-05-29 15:03 ` Bakonyi Ferenc
  2001-05-29 15:28 ` Nick Papadonis
  0 siblings, 2 replies; 4+ messages in thread
From: sduchene @ 2001-05-29 14:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: Bakonyi Ferenc, Louis Garcia

I have a Riva128 based video card in a older SMP P-Pro system and with all
of the lastest 2.4 series of kernels (mostly the ac stuff) I have screwy colors
on the console (the penguin boot logos are shades of blue) and initially when
I start X (XFree86 4.0.3) the colors are very dark until I switch to a console
and back again. Once I switch to a console and back to X things are fine in
X. I noticed a reply to a note from Louis Garcia <louisg00@bellsouth.net> by
Bakonyi Ferenc <fero@drama.obuda.kando.hu> with some info about TNT cards
expecting 8 bit verses 6 bit color registers. Bakonyi indicated that the console
colors should be correct with Rivafb 0.9.2 and above but with the 2.4.5-ac3
kernel the boot messages indicate:

rivafb: RIVA MTRR set to ON
Console: switching to colour frame buffer device 160x64
rivafb: PCI nVidia NV3 framebuffer ver 0.9.2a (RIVA-128, 4MB @ 0xEF000000)

My /proc/pci entry says:

 Bus  0, device  15, function  0:
    VGA compatible controller: NVidia / SGS Thomson (Joint Venture) Riva128 (rev 16).
      IRQ 19.
      Master Capable.  Latency=64.  Min Gnt=3.Max Lat=1.
      Non-prefetchable 32 bit memory at 0xee000000 [0xeeffffff].
      Prefetchable 32 bit memory at 0xef000000 [0xefffffff].

and even at 0.9.2a colors are still screwy on the console both before and after starting
the Xserver.

The fbset output on this system says:

mode "1280x1024-74"
    # D: 135.007 MHz, H: 78.859 kHz, V: 74.116 Hz
    geometry 1280 1024 1280 1024 16
    timings 7407 256 32 34 3 144 3
    accel true
    rgba 5/11,6/5,5/0,0/0
endmode

The same thing still occurs if I set the color depth to 8 bit.

This is a pci card with 4Mb of video memory. I also have a AMD K6 system with a 16Mb
AGP TNT2 card and this does not happen on that machine.

BTW, why is the mtrr for the Riva set to 0M ???
-- 
Steven A. DuChene	sad@valinux.com
			sduchene@mindspring.com

	http://www.mindspring.com/~sduchene/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: console colors messed up with 2.4.X Rivafb driver
  2001-05-29 14:29 console colors messed up with 2.4.X Rivafb driver sduchene
@ 2001-05-29 15:03 ` Bakonyi Ferenc
  2001-05-29 20:16   ` sduchene
  2001-05-29 15:28 ` Nick Papadonis
  1 sibling, 1 reply; 4+ messages in thread
From: Bakonyi Ferenc @ 2001-05-29 15:03 UTC (permalink / raw)
  To: sduchene; +Cc: linux-kernel, Louis Garcia


	Hi!

Steven A. DuChene wrote:
> I have a Riva128 based video card in a older SMP P-Pro system and with all
> of the lastest 2.4 series of kernels (mostly the ac stuff) I have screwy colors
> on the console (the penguin boot logos are shades of blue) and initially when
> I start X (XFree86 4.0.3) the colors are very dark until I switch to a console
> and back again. Once I switch to a console and back to X things are fine in
Pressing 'ctrl alt +' and 'ctrl alt -' is enough. On Riva 128 cards 
rivafb uses 8 bit color registers but XFree86 4.0.x still uses 6 bit 
color registers.

>...
> The fbset output on this system says:
> 
> mode "1280x1024-74"
>     # D: 135.007 MHz, H: 78.859 kHz, V: 74.116 Hz
>     geometry 1280 1024 1280 1024 16
>     timings 7407 256 32 34 3 144 3
>     accel true
>     rgba 5/11,6/5,5/0,0/0
^^^^^^^^^^^^^^^^^^^^^^^^^^^
This line indicates you are using rivafb in 16 bpp mode. Unfortunetly 
16 bpp is not supported by Riva 128 hw. It's a bug, in a perfect 
world rivafb should disable 16 bpp mode on Riva 128. In this case 
hardware is set to 15 bpp, but rivafb thinks it's set to 16 bpp. (Or 
something similar.)

Fastest solution: try using 15 bpp or 32 bpp.

> endmode
> 
> The same thing still occurs if I set the color depth to 8 bit.
If you boot with 8 bpp and you do not use X, console and logo colors 
should be fine. Please detail this problem!

> 
> This is a pci card with 4Mb of video memory. I also have a AMD K6 system with a 16Mb
> AGP TNT2 card and this does not happen on that machine.
> 
> BTW, why is the mtrr for the Riva set to 0M ???
Because you said yes to 'Processor type and features ---> MTRR 
(Memory Type Range Register) support'.

Regards:
	Ferenc Bakonyi


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: console colors messed up with 2.4.X Rivafb driver
  2001-05-29 14:29 console colors messed up with 2.4.X Rivafb driver sduchene
  2001-05-29 15:03 ` Bakonyi Ferenc
@ 2001-05-29 15:28 ` Nick Papadonis
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Papadonis @ 2001-05-29 15:28 UTC (permalink / raw)
  To: sduchene; +Cc: linux-kernel

sduchene@mindspring.com writes:

> I have a Riva128 based video card in a older SMP P-Pro system and with all
> of the lastest 2.4 series of kernels (mostly the ac stuff) I have screwy colors
> on the console (the penguin boot logos are shades of blue) and initially when
> I start X (XFree86 4.0.3) the colors are very dark until I switch to a console

I have this same problem with my Intel 810.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: console colors messed up with 2.4.X Rivafb driver
  2001-05-29 15:03 ` Bakonyi Ferenc
@ 2001-05-29 20:16   ` sduchene
  0 siblings, 0 replies; 4+ messages in thread
From: sduchene @ 2001-05-29 20:16 UTC (permalink / raw)
  To: Bakonyi Ferenc; +Cc: linux-kernel, Louis Garcia

On Tue, May 29, 2001 at 05:03:54PM +0200, Bakonyi Ferenc wrote:
> 
> 	Hi!
> 
> Steven A. DuChene wrote:
> > I have a Riva128 based video card in a older SMP P-Pro system and with all
> > of the lastest 2.4 series of kernels (mostly the ac stuff) I have screwy colors
> > on the console (the penguin boot logos are shades of blue) and initially when
> > I start X (XFree86 4.0.3) the colors are very dark until I switch to a console
> > and back again. Once I switch to a console and back to X things are fine in
> Pressing 'ctrl alt +' and 'ctrl alt -' is enough. On Riva 128 cards 
> rivafb uses 8 bit color registers but XFree86 4.0.x still uses 6 bit 
> color registers.
> 
> >...
> > The fbset output on this system says:
> > 
> > mode "1280x1024-74"
> >     # D: 135.007 MHz, H: 78.859 kHz, V: 74.116 Hz
> >     geometry 1280 1024 1280 1024 16
> >     timings 7407 256 32 34 3 144 3
> >     accel true
> >     rgba 5/11,6/5,5/0,0/0
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> This line indicates you are using rivafb in 16 bpp mode. Unfortunetly 
> 16 bpp is not supported by Riva 128 hw. It's a bug, in a perfect 
> world rivafb should disable 16 bpp mode on Riva 128. In this case 
> hardware is set to 15 bpp, but rivafb thinks it's set to 16 bpp. (Or 
> something similar.)
> 
> Fastest solution: try using 15 bpp or 32 bpp.

Well, since the video card only has 4Mb of memory I tried 15 bpp but then
I kept getting a kernel Opps from a function in the rivafb driver. I will
try to catch it to see an exact error but it is difficult as the Opps
eventually halts the system and the error is not capturable.

> 
> > endmode
> > 
> > The same thing still occurs if I set the color depth to 8 bit.
> If you boot with 8 bpp and you do not use X, console and logo colors 
> should be fine. Please detail this problem!

I did boot with 8 bpp and it does indeed seem to be fine. Got two correctly
colored penguin logos and system did not Opps.

BTW, when the system Opps with 15 bpp I don't see the penguin logos at all.
There is blank space at the top of the screen during booting where they
would normally be displayed but they aren't there.

With the screwed up colors (but no-Opps'ing system) at 16 bpp I do see the
two penguin logos but as I said they are various shades of blue only.

> 
> > 
> > This is a pci card with 4Mb of video memory. I also have a AMD K6 system with a 16Mb
> > AGP TNT2 card and this does not happen on that machine.
> > 
> > BTW, why is the mtrr for the Riva set to 0M ???
> Because you said yes to 'Processor type and features ---> MTRR 
> (Memory Type Range Register) support'.
> 

Shouldn't that indicate that the system should allocate & use mtrr registers &
memory? It does on other systems I have.
-- 
Steven A. DuChene	sad@ale.org
			sad@valinux.com
			sduchene@mindspring.com

	http://www.mindspring.com/~sduchene/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-29 20:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-29 14:29 console colors messed up with 2.4.X Rivafb driver sduchene
2001-05-29 15:03 ` Bakonyi Ferenc
2001-05-29 20:16   ` sduchene
2001-05-29 15:28 ` Nick Papadonis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox