I've been lurking on this thread all day since I've been underwater on something else but I want to give some perspective on both things that we've done on Android in the past and where we are going in the future that's relevant to the fd's vs. "cookies" discussion here. I've owned the "memory manager" component on pretty much every android program the android team has been involved with directly, qualcomm's pmem was written by me, nvidia's nvmap was heavily modified, many of ti's things flowed through my fingers etc. As many of you know, we're also working on our own new solution -- yes I know we don't need one more from google, but really you already have several from google, we're trying to replace them with one that solves all the problems the others do.
> * Efficient lookup in system callsThis isn't a great boon as we've seen with GEM and TTM.
> * Established ways to pass them around
> * Easy to mmap() -- if you want to map anything into user space, you
> need a file descriptor anyway
The problem for GEM was we used shmem to back the fds, so the mmap
was a cached mapping, now when we had alternate mapping available
such as via the GTT we had to go and add code to mmap via that drm file
descriptor. Though probably could have gotten around that by changing the
mmap backing away from shmem.
Dave.
_______________________________________________
Linaro-mm-sig mailing list
Linaro-mm-sig@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-mm-sig