Thread (12 messages) 12 messages, 4 authors, 2004-11-03

Re: [Linux-fbdev-devel] Help re Frame Buffer/Console Problems

From: Mark Fortescue <hidden>
Date: 2004-11-02 23:05:55
Also in: lkml, sparclinux

Will this work for a kernel Panic ?

Mark

On Wed, 3 Nov 2004, Antonino A. Daplas wrote:
On Wednesday 03 November 2004 02:03, Mark Fortescue wrote:
quoted
Hi all,

I have identified what is going on. My CG3 console uses the same font and
exactly overlaps prom console. [I have re-inserted the console margin code
for my CG3 driver]. The timing is such that the prom overwrites the
console text (using colour 255) a fraction later than the fbcon code.

The two problems to be solved are (apart from seting the red,green and
blue structures up for the cg series fb cards):

1) The prom write (from -p) needs to be disabled as soon as an alternative
console becomes active (either prom console, fbcon console or serial
console). This has probably been the major cause of hassel.

2) The restore pallet function (see cgsix.c in the 2.2.x or 2.4.x kernels)
needs to be re-introduced in some form and called when exiting fbcon so
that the prom does not end up as black on black. My prom uses fg=255,
You can implement a cg3fb_open() and cg3fb_release() hooks and set up a
use_count field. You increment the count on every open, decrement on every
release. Then restore whatever on the last release. Optionally, you can even
do hardware inits on the first open.

Tony 
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help