From: James Simmons <jsimmons@edgeglobal.com>
To: linux-mm@kvack.org
Subject: accel again.
Date: Sat, 4 Sep 1999 17:27:42 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.10.9909041708350.22380-100000@imperial.edgeglobal.com> (raw)
Well I did my homework on spinlocks and see what you mean by using
spinlocks to handle accel and framebuffer access. So just before I have
fbcon access the accel engine I could do this right?
In fb.h
--------
struct fb_info {
...
struct vm_area_struct vm_area
...
}
--------
In fbcon.c
/* I going to access accel engine */
spin_lock(&fb_info->vm_area->vm_mm->page_table_lock);
/* accessing accel engine */
....
/* done with accel engine */
spin_unlock(&fb_info->vm_area->vm_mm->page_table_lock);
Now this would lock the framebuffer correct? So if a process would try to
acces the framebuffer it would be put to sleep while its doing accels. Is
this basically what I need to do or is their something more that I am
missing.
Their also exist the possiblity that the accel engine in the kernel and
the accel registers from userland could be access at the same time. This
means that spin_lock could be called twice. Any danger in this? Then some
accel engines use a interuppt to flush their FIFO. So a
spin_lock_irqsave(&fb_info->vm_area->vm_mm->page_table_lock, flags);
should always be used correct?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
next reply other threads:[~1999-09-04 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-04 21:27 James Simmons [this message]
1999-09-09 18:37 ` Eric W. Biederman
1999-09-10 20:01 ` James Simmons
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=Pine.LNX.4.10.9909041708350.22380-100000@imperial.edgeglobal.com \
--to=jsimmons@edgeglobal.com \
--cc=linux-mm@kvack.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