From: ebiederm+eric@ccr.net (Eric W. Biederman)
To: James Simmons <jsimmons@edgeglobal.com>
Cc: Marcus Sundberg <erammsu@kieraypc01.p.y.ki.era.ericsson.se>,
"Stephen C. Tweedie" <sct@redhat.com>,
linux-mm@kvack.org
Subject: Re: accel handling
Date: 30 Aug 1999 13:51:41 -0500 [thread overview]
Message-ID: <m1aer9je4i.fsf@alogconduit1ae.ccr.net> (raw)
In-Reply-To: James Simmons's message of "Mon, 30 Aug 1999 10:31:27 -0400 (EDT)"
James Simmons <jsimmons@edgeglobal.com> writes:
> > What I believe James is talking about here is allowing non-priviledged
> > processes to access graphics hardware where the graphics card, or even
> > the whole system, may enter an unrecoverable state if you try to access
> > the frame buffer while the accel engine is active. (Yes there really
> > exist such hardware...)
> >
> > To achieve this you really must physicly prevent the process to access
> > the framebuffer while the accel engine is active. The question is what
> > the best way to do this is (and if that way is good enough to bother
> > doing it...) ?
>
> Marcus you are on this list too. Actually I have though about what he
> said. I never though of it this way but you can think of the accel engine
> as another "process" trying to use the framebuffer. Their still is the
> question. How do you know when a mmap of the framebuffer is being
> accessed? So I can lock the accel engine when needed.
Just a couple of thoughts.
A) Assuming we are doing intensive drawing whatever we are doing with
the accellerator needs to happen about 30 times per second. That
begins the aproximate limit on humans seeing updates.
B) At 30hz we can do some slightly expensive things.
To a comuputer there is all kinds of time in there.
C) We could simply put all processes that have the frame buffer
mapped to sleep during the interval that the accel enginge runs.
D) We could keep a copy of the frame buffer (possibly in other video
memory) and copy the ``frame buffer'' over, (with memcpy in the kernel, or with an
accel command).
At 1600x1280x32 x30hz that is about 220 MB/s. Is that a figure achieveable in the
real world?
E) Nowhere does it make sense to simultaneously access the accelerator
and frame buffer simultaneously. ( At least the same regions of the frame buffer).
Because the end result on the screen would be unpredicatable.
Therefore it whatever we use for locks ought to be reasonable.
F) It might be work bouncing this off of the ggi guys to see if they have
satisfactorily solved this problem. Last I looked the ggi list was linux-ggi@eskimo.com
Eric
--
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 prev parent reply other threads:[~1999-08-30 18:51 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-29 14:52 James Simmons
1999-08-29 16:14 ` Stephen C. Tweedie
1999-08-30 1:14 ` James Simmons
1999-08-30 10:44 ` Stephen C. Tweedie
1999-08-30 12:06 ` Marcus Sundberg
1999-08-30 14:18 ` Stephen C. Tweedie
1999-08-30 14:50 ` James Simmons
1999-08-30 15:52 ` Stephen C. Tweedie
1999-08-30 17:51 ` James Simmons
1999-08-30 20:27 ` Stephen C. Tweedie
1999-08-31 0:28 ` Vladimir Dergachev
1999-08-31 10:55 ` Marcus Sundberg
1999-08-31 12:49 ` Stephen C. Tweedie
1999-08-31 17:10 ` James Simmons
1999-08-31 18:44 ` Stephen C. Tweedie
1999-08-30 14:31 ` James Simmons
1999-08-30 18:51 ` Eric W. Biederman [this message]
1999-08-30 19:18 ` James Simmons
1999-08-30 21:39 ` Andreas Beck
1999-08-30 20:36 ` Stephen C. Tweedie
1999-08-29 14:57 James Simmons
1999-08-31 3:39 Jens Owen
1999-08-31 12:51 ` Stephen C. Tweedie
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=m1aer9je4i.fsf@alogconduit1ae.ccr.net \
--to=ebiederm+eric@ccr.net \
--cc=erammsu@kieraypc01.p.y.ki.era.ericsson.se \
--cc=jsimmons@edgeglobal.com \
--cc=linux-mm@kvack.org \
--cc=sct@redhat.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