From: Antonino Daplas <adaplas@pol.net>
To: fbdev <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Framebuffer with banked memory
Date: 31 Oct 2002 08:36:08 +0800 [thread overview]
Message-ID: <1036024565.808.27.camel@daplas> (raw)
In-Reply-To: <20021030104922.6612.qmail@web14206.mail.yahoo.com>
On Wed, 2002-10-30 at 18:49, alain volmat wrote:
> Hi,
>
> As I said the video card I am now writing a
> framebuffer for, doesn't have linear memory, which
> means that I can only access a small part of the
> memory at a time and then set offset registers in
> order to access another part of the memory.
>
> I would like to know if there is such case in current
> framebuffer drivers ?? If so, what is the common
> solution to do that ??
None in the current drivers.
>
> In fact the problem remains in the case of mmap (which
> is the most common ;( of course), since the memory
> seams to be accessed directly by pointer, there might
> be no wait to detect if we need to set or not an
> offset. In case of fb_read fb_write, it is possible to
> do that before the actual write at the end (even if it
> is not sooo beautiful ... ).
The safest solution is to create custom fb_write? and fb_read? routines.
Maybe James will add these hooks for hardware like yours.
Then disallow mmap's except probably for the MMIO regions.
Creating a bank-switching mechanism, besides entailing a lot of work, is
not entirely safe.
Tony
PS: What's your hardware?
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
next prev parent reply other threads:[~2002-10-31 0:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-30 10:49 Framebuffer with banked memory alain volmat
2002-10-31 0:36 ` Antonino Daplas [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-10-30 21:09 Sottek, Matthew J
2002-10-31 21:48 ` James Simmons
[not found] <1036024422.643.24.camel@daplas>
2002-10-31 4:02 ` alain volmat
2002-10-31 11:04 ` Antonino Daplas
2002-10-31 21:44 ` James Simmons
2002-10-31 21:16 ` Antonino Daplas
2002-10-31 21:18 Sottek, Matthew J
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=1036024565.808.27.camel@daplas \
--to=adaplas@pol.net \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.