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: Re: fb_write change in your tree
Date: Wed, 24 Mar 2004 10:59:03 +1100 [thread overview]
Message-ID: <1080086342.23716.161.camel@gaston> (raw)
In-Reply-To: <Pine.LNX.4.44.0403231806450.2419-100000@phoenix.infradead.org>
> Look again. The idea was to grab the userland data and create struct
> fb_image then use xxxfb_imageblit to draw for you. We should never
> allow fb_write and fb_read to directly access the framebuffer.
Right. Note that fb_read is still using copy_to_user() with the
fb as a source, and that is hairy too.
But I would still like to allow the fb to just overwrite the whole
fb_read/write implementation. Also, your patch may break things if
userland did fb_write for an amount that covers several lines but
ends up in a middle of one afaik, it converts to images that are
rectangles, and doesn't properly deal with the possible first line
and last lines not beeing complete
> Speaking of. We really need to cleanup the fb_write and crap.
> The program flow should be:
>
> fb_write -> xxxfb_imageblit -> fb_pixmap.outbuf();
>
> The outbuf and inbuf commands should replace the fb_writeX and fb_readX
> stuff. This way driver developers can still use the cfb_xxx functions for
> strange hardware. a good example is the Epson 1335 chip. You can only
> access the framebuffer 16 bits at a time. Using 32 bit transfers will drop
> have the data. Why epson did this will never be know.
>
> The other bonus with using the imageblit method with fb_write is
> that we can treat planar modes a packed pixel modes :-)
>
>
>
--
Benjamin Herrenschmidt <benh@kernel.crashing.org>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
next prev parent reply other threads:[~2004-03-24 0:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-23 3:57 fb_write change in your tree Benjamin Herrenschmidt
2004-03-23 18:21 ` James Simmons
2004-03-23 20:10 ` Geert Uytterhoeven
2004-03-23 21:40 ` James Simmons
2004-03-24 9:28 ` Geert Uytterhoeven
2004-03-23 23:59 ` Benjamin Herrenschmidt [this message]
2004-03-24 0:16 ` James Simmons
2004-03-24 0:07 ` Benjamin Herrenschmidt
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=1080086342.23716.161.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).