-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Adam Jackson wrote:
> drmAddMap has to be root-only because it's mapping device memory into > userspace (can trigger bus-master writes, blah blah, root escalation). I > think that's the only one that _really_ needs it, and to be honest those > mappings should get set up from the DRM side anyway and AddMap should just > die. I agree 100%. In fact, most of my recent work to enable DRI on PCI Matrox cards focused on exactly that. The code in mga_do_dma_bootstrap (and friends) is a good model (IM-not-so-HO!) for where the other DRMs should go. Basically, user-mode should say to the kernel, "Please initialize yourself with these tunable parameters." The kernel should then do whatever it wants and let user-mode know what it did. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCs5JqX1gOwKyEAw8RAhKjAJkBSErmFwfgBMX2/3AJv1eJ+FQVWQCgltBk S/0UJ5ThmMPV7XXX+QBjXz0= =wny5 -----END PGP SIGNATURE----- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel