From: vijay baskar <cn.vijaibaskar@gdatech.co.in>
To: LKML <linux-kernel@vger.kernel.org>
Subject: UIO driver for framebuffer
Date: Thu, 25 Jun 2009 17:11:25 +0530 [thread overview]
Message-ID: <4A436265.4050502@gdatech.co.in> (raw)
Hi all,
I have written a uio driver for framebuffer device. I added device
specific register memory in uio.mem. I also added DMA param memory in
uio.mem to perform DMA from userspace. Also video RAM
<http://fixunix.com/#> was mapped in kernel space using
dma_alloc_coherent() and a logical address was obtained. This logical
address was also added in uio.mem with memtype as UIO_MEM_LOGICAL
because i can fill video ram from userspace.Read and write to this DMA
param memory from userspace is not having any effect. Also video RAM
memory that i filled up is not getting written to the framebuffer device
when DMA is started. Also one more info that i noted was that values
assigned to logical addresses in kernel space are not reflected in
userspace after mmap. The values in userspace show different values
compared to that in kernel space.
This is a bit confusing for me. Why is this happening?? Have I missed
any information?? Am i on the right path??
regards,
vijai
next reply other threads:[~2009-06-25 10:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-25 11:41 vijay baskar [this message]
2009-06-28 16:00 ` UIO driver for framebuffer Hans J. Koch
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=4A436265.4050502@gdatech.co.in \
--to=cn.vijaibaskar@gdatech.co.in \
--cc=linux-kernel@vger.kernel.org \
/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