From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Prakhar Vig <prakharv@gmail.com>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: How to use ISRAm as a frame buffer in Linux
Date: Wed, 31 May 2006 19:39:06 +0800 [thread overview]
Message-ID: <447D805A.6080805@gmail.com> (raw)
In-Reply-To: <dbee5b5a0605310240q3de9582cwccf9d5ee4a012a46@mail.gmail.com>
Prakhar Vig wrote:
> Hi Antonino,
> thanks for ur help.
>
> As u have told I am using an application that reads a data from
> framebuffer by opening /dev/fb0. I am attaching the code for ur
> convineance, I would like to ask following questions:
>
> 1) In this code I am using mmap to allocate memory to frame buffer which
> has one argument
> MAP_SHARED or MAP_PRIVATE.
If you use MAP_PRIVATE, it will create a map using copy-on-write which
is visible only to the process the requested the mmap. You don't want
this, use MAP_PRIVATE.
> Could you please explain for what this meant
> for i.e whether it ie related to allocation in SDRAM or ISRAM.
> MAP_SHARED in SDRAM and MAP_PRIVATE in ISRAM is it so.
>
> 2) If not, Could you please tell me how to allocate framebuffer to ISRAM
> as is faster to access from ISRAM than SDRAM.
I don't know. Is this memory visible to the CPU? If it is then it
is certainly mappable. If not, then you have to allocate a shadow
buffer using system RAM, then on intervals, transfer the contents of
the shadow buffer to and from this memory region using DMA.
>
> 3) Also, tell me whether I need to use DMA to access data from ISRAM,
> will it improve the speed of accessing the data from ISRAM. Is it
> mandatory to use DMA if you want to make it work fast.
You cannot use DMA when your method of access is mmap. You can certainly
use DMA to transfer contents to a shadow buffer which is in turn mmapped.
Tony
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
prev parent reply other threads:[~2006-05-31 11:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-30 9:32 How to use ISRAm as a frame buffer in Linux Prakhar Vig
2006-05-30 12:33 ` Antonino A. Daplas
2006-05-31 4:43 ` Prakhar Vig
2006-05-31 4:49 ` Antonino A. Daplas
2006-05-31 9:40 ` Prakhar Vig
2006-05-31 11:39 ` Antonino A. Daplas [this message]
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=447D805A.6080805@gmail.com \
--to=adaplas@gmail.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
--cc=prakharv@gmail.com \
/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).