Hi all: TTM provide "ttm_bo_type_user" which create bo from user space memory.
I try to use this functions, but find some problems: 1. Can not get "pages" when driver try to bind user pages to GPU apterure. ttm->state set to "tt_unbound" when add ttm structs, while ttm_tt_populate prevent driver populate function called if ttm->state is not "tt_unpopulated" int ttm_tt_populate(struct ttm_tt *ttm) { struct page *page; unsigned long i; struct ttm_backend *be; int ret; if (ttm->state != tt_unpopulated) return 0; 2. Page number may not be the size it rounded up. eg. supports allocate a user space BO size=5K, which round up to 2 pages,but it should be 3, if the user space memory like this page1 page2 page3 _______________________ |_____|_____|_____|_____| |<-------->| 5k Thanks april ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel