From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: James Simmons <jsimmons@infradead.org>
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: set_par/check-var vs. fbcon
Date: Wed, 29 Oct 2003 09:19:22 +1100 [thread overview]
Message-ID: <1067379561.3326.36.camel@gaston> (raw)
Hi !
I'm having a problem getting proper semantics for set_par/check_var
calls with 2.6 in radeonfb.
So far, I assumed they would be called with a complete structure
containing mode timings etc... though check_var() would eventually
fail if not supported and/or slightly "adapt" the var.
That is the behaviour that is needed for things like MacOnLinux
(or even XFree on top of fbdev) to work properly.
However, when stty is used, the fbcon code will call these with
a var which is the current one with only the size changed. That
is it asks for a mode with a different size, but the timings of
the previous one. This doesn't work properly with radeonfb, and
I wonder if there is one fbdev that has this working properly
at all...
For such thing, we need to pick a full mode (timings included)
that matches the new size... So the semantics expected by the
call issued from fbcon are more like "pick a mode that has this
size", though the timings in there are a "hint" to eventually
pick a mode that has the same vfreq...
I wonder... maybe we shall set a specific flag when doing that
set_var call from fbcon to trigger the intended mecanism. Or
should we have all check_var()/set_par() calls in drivers
implement a mecanism by default ? That would prevent userland
from using the ioctl to change the timings precisely though...
Ben.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
next reply other threads:[~2003-10-28 22:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-28 22:19 Benjamin Herrenschmidt [this message]
2003-10-29 9:37 ` set_par/check-var vs. fbcon Geert Uytterhoeven
2003-10-29 22:09 ` Benjamin Herrenschmidt
2003-10-29 22:39 ` James Simmons
2003-10-30 1:16 ` Benjamin Herrenschmidt
2003-10-30 9:16 ` Geert Uytterhoeven
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=1067379561.3326.36.camel@gaston \
--to=benh@kernel.crashing.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).