On Fri, 2009-05-15 at 14:46 +1000, Benjamin Herrenschmidt wrote: > Hi Jesse ! > > Haven't had much time to investigate the problem I've been talking to > you and David about but from what I can see in the code, we're probably > hitting this in drm_mmap_locked() in drm_vm.c : > > /* Check for valid size. */ > if (map->size < vma->vm_end - vma->vm_start) > return -EINVAL; > > Now, this won't do any good for example if the SAREA is 8K (which I > think is about that nowadays) and the machine PAGE_SIZE is 64K.
Except that radeon_cp.c does: sareapage = max_t(unsigned long, SAREA_MAX, PAGE_SIZE); ret = drm_addmap(dev, 0, sareapage, _DRM_SHM, _DRM_CONTAINS_LOCK|_DRM_DRIVER, &master_priv->sarea); So it should have worked ... hrm I'll dig more. Cheers, Ben. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel