linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* BAT mapping exported to user-space
@ 2004-07-26 17:20 Linh Dang
  2004-07-26 18:09 ` Dan Malek
  0 siblings, 1 reply; 11+ messages in thread
From: Linh Dang @ 2004-07-26 17:20 UTC (permalink / raw)
  To: Embedded Linux PPC list


Hi all,

In our project, our application continuously does random-access to
various ASICs. The ASICs are mapped by a bat register:

- Forcing the application to use system-calls for accessing the ASICs
  would incur a too-big overhead.

- Adding _PAGE_USER to bat-mapping is ok but would export the mapping
  to every single userspace processes.

- I'm contemplating adding 2 bitmasks (1 read, 1 write) into the
  mm_struct:
  - each bit in the mask represent a BAT register that should be
    accessible from userspace.
  - in switch_mm, prior to the call to set_context(), the BATs's Vp
    bits would be updated based on the masks of the `next' mm.

My questions are:
- has it been discussed/comptemplate/done before?
- what issues (performance,style,...) do you think such a change would
  create?
- How the X server access the hw on PPC?


Thanx

--
Linh Dang

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-07-28  8:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-26 17:20 BAT mapping exported to user-space Linh Dang
2004-07-26 18:09 ` Dan Malek
2004-07-26 18:33   ` Linh Dang
2004-07-27  1:18     ` Dan Malek
2004-07-27  2:27       ` Linh Dang
2004-07-27 16:36         ` Dan Malek
2004-07-27 17:34           ` Dang, Linh [CAR:2X23:EXCH]
2004-07-27 18:02             ` Dan Malek
2004-07-27 19:32               ` Linh Dang
2004-07-27 20:09                 ` Dan Malek
2004-07-28  8:12                 ` Oliver Korpilla

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).