I now have my solaris agp driver to where it can be mmap-able from the user
perspective. I have not tried to recompile xfree with it yet, because :

  The "testgart" program I have, does an UNBIND and re-BIND as part of its
  testing. My driver fails the rebind.

Is this rebinding common?
The only time I can see this as being useful, is if the user-level program
allocates more AGP keyed memory than the capacity of the aperture, and then
uses UNBIND/reBIND as essentially fast-copy operations.

However, if I'm reading the BSD agp driver, it does not allow
AGPIOC_ALLOCATE of more memory than the size of the aperture.

So what's the point?

  ----- ----- ----   ----- ----- ----   ----- ----- ----
Reason this is problematical:

Solaris has a kernel entry point for mmap().
There is no munmap entry point. munmap is handled by the higher-level
kernel routines 'automatically'
So once a user maps a particular 'page' for the aperture... the appropriate
page STAYS as that page for the aperture until the user calls munmap().

So willy-nilly bind/unbind/binding will not fly too well.


_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to