linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John Zielinski <grim@undead.cc>
To: James Simmons <jsimmons@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	David Eger <eger-dated-1083663529.7e8c27@theboonies.us>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	"Antonino A. Daplas" <adaplas@hotpop.com>,
	eger-dated-1082943669.d79d33@theboonies.us,
	Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: [PATCH] radeonfb(): memmove() fix -- this one works ;-)
Date: Tue, 27 Apr 2004 20:18:16 -0400	[thread overview]
Message-ID: <408EF848.2030809@undead.cc> (raw)
In-Reply-To: <Pine.LNX.4.44.0404280023360.23153-100000@phoenix.infradead.org>

James Simmons wrote:

>Trust me. I wish the console would cleanup itself. It would take a good 
>amount of work to redo.
>  
>
I don't think it will be too much work.  Here's my line of thinking:

When booting fbcon sets all it's per VT var structures to what the 
driver returns as it's startup mode.  After that only fbset can change 
these per VT var structures by using a special flag it it's mode set 
call.  An fb program would change the mode any which way it wants which 
would change a the "current" var structure.  When that fb program ends 
or goes back the KD_TEXT then fbcon just sets the mode to what it has in 
it's var for the particular VT number.

At no point does fbcon try to save the current hardware state.  All it 
does is put things back to the way they were at boot or to what the user 
chose after boot with fbset.

Oh, almost forgot.  Changing the resolution using the console set rows 
and columns ioctl and changing resolution  would be equivilent to fbset 
changing the res and be stored in the per VT var structures as well.

Now I don't understand why this info needs to move back to the vt 
layer.  Let's say we had another console driver that ran a vector 
display or a pixel board or whatever other exotic display.  Different 
resolutions, timings, colour depths etc would not apply to those 
devices.  The laser vector type display might have stuff like the 
rotation speed of various mirrors.  (this is an example, I'm not saying 
it's a practical application).   That display would have it's own fbset 
type utility to set those things.  So the low level console driver 
should be where the mode is actually stored (again on a per VT basis).

But storing some of this info in the vc_data like you said would be 
useful when one console takes over for another then it can set it self 
up in the same general mode that the last console would be in although 
all the timings might be off.

John





-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

  parent reply	other threads:[~2004-04-28  0:18 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-19  1:46 [PATCH] radeonfb(): memmove() fix -- this one works ;-) David Eger
2004-04-19  1:50 ` Benjamin Herrenschmidt
2004-04-19  1:52 ` Benjamin Herrenschmidt
2004-04-20 22:52   ` James Simmons
2004-04-21  0:30     ` Benjamin Herrenschmidt
2004-04-21 18:03       ` James Simmons
2004-04-21 23:08         ` Benjamin Herrenschmidt
     [not found]     ` <12573.10.250.10.1.1082504618.squirrel@sq01.pol.net>
2004-04-21  0:30       ` Benjamin Herrenschmidt
2004-04-21  8:28         ` Geert Uytterhoeven
2004-04-21 10:36           ` Benjamin Herrenschmidt
2004-04-21 10:50             ` Geert Uytterhoeven
2004-04-21 18:13               ` James Simmons
2004-04-21 19:35                 ` Antonino A. Daplas
2004-04-22  8:22                   ` Geert Uytterhoeven
2004-04-27  0:19                     ` James Simmons
2004-04-27  0:22                       ` Benjamin Herrenschmidt
2004-04-27  8:51                         ` Geert Uytterhoeven
2004-04-27  9:43                           ` David Eger
2004-04-27  9:57                             ` Geert Uytterhoeven
2004-04-27 10:09                               ` Benjamin Herrenschmidt
2004-04-27 11:19                                 ` Geert Uytterhoeven
2004-04-27 22:41                                   ` John Zielinski
2004-04-27 10:10                             ` Benjamin Herrenschmidt
2004-04-27 11:21                               ` Geert Uytterhoeven
2004-04-27 20:28                                 ` James Simmons
2004-04-27 20:27                               ` James Simmons
2004-04-27 22:28                               ` John Zielinski
2004-04-27 22:33                                 ` James Simmons
2004-04-27 22:59                                   ` John Zielinski
2004-04-27 23:14                                     ` Benjamin Herrenschmidt
2004-04-27 23:24                                     ` James Simmons
2004-04-27 23:28                                       ` Benjamin Herrenschmidt
2004-04-27 23:57                                         ` James Simmons
2004-04-28  0:12                                           ` Benjamin Herrenschmidt
2004-04-28  1:12                                           ` John Zielinski
2004-04-28  1:50                                             ` Benjamin Herrenschmidt
2004-04-28 16:51                                             ` James Simmons
2004-04-28  0:18                                       ` John Zielinski [this message]
2004-04-27 23:02                                   ` Benjamin Herrenschmidt
2004-04-27 23:18                                     ` James Simmons
2004-04-27 23:25                                       ` Benjamin Herrenschmidt
2004-04-27 23:51                                         ` James Simmons
2004-04-27 23:53                                           ` Benjamin Herrenschmidt
2004-04-28  8:41                                             ` Geert Uytterhoeven
2004-04-28 10:00                                               ` Benjamin Herrenschmidt
2004-04-28 16:48                                                 ` James Simmons
2004-04-28 23:31                                                   ` Benjamin Herrenschmidt
2004-04-29  0:02                                                     ` James Simmons
2004-04-29  0:50                                                       ` Benjamin Herrenschmidt
2004-04-29 18:01                                                         ` James Simmons
2004-04-29 18:11                                                           ` Otto Solares
     [not found]                                                             ` <20040429194813.GA8799@dreamland.darkstar.lan>
2004-04-29 20:13                                                               ` Otto Solares
2004-04-30 16:03                                                                 ` James Simmons
2004-04-29 21:58                                                           ` Benjamin Herrenschmidt
2004-04-30 16:05                                                             ` James Simmons
2004-04-30 23:57                                                               ` Benjamin Herrenschmidt
2004-04-28 16:29                                             ` James Simmons
2004-04-28 17:56                                               ` Geert Uytterhoeven
2004-04-28 19:05                                                 ` James Simmons
2004-04-28 23:00                                                 ` John Zielinski
2004-04-28 23:29                                               ` Benjamin Herrenschmidt
2004-04-29  0:26                                                 ` James Simmons
2004-04-29  0:38                                                   ` Otto Solares
2004-04-29  8:28                                                     ` [PATCH] radeonfb(): memmove() fix -- this one works ; -) Geert Uytterhoeven
2004-04-28  1:00                                           ` [PATCH] radeonfb(): memmove() fix -- this one works ;-) John Zielinski
2004-04-28 16:38                                             ` James Simmons
2004-04-28 22:11                                               ` John Zielinski
2004-04-28  4:43                                           ` Alex Stewart
2004-04-28 17:54                                             ` James Simmons
2004-04-28 21:51                                               ` Alex Stewart
2004-04-28 21:52                                                 ` James Simmons
2004-04-28 23:35                                                   ` Alex Stewart
2004-04-27 23:54                                         ` John Zielinski
2004-04-28  0:47                           ` Antonino A. Daplas
2004-04-28  8:35                             ` [PATCH] radeonfb(): memmove() fix -- this one works ; -) Geert Uytterhoeven
2004-04-28 17:14                               ` James Simmons

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=408EF848.2030809@undead.cc \
    --to=grim@undead.cc \
    --cc=adaplas@hotpop.com \
    --cc=benh@kernel.crashing.org \
    --cc=eger-dated-1082943669.d79d33@theboonies.us \
    --cc=eger-dated-1083663529.7e8c27@theboonies.us \
    --cc=geert@linux-m68k.org \
    --cc=jsimmons@infradead.org \
    --cc=linux-fbdev-devel@lists.sourceforge.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).