From: figo zhang Subject: DRM: how the mmap() work for scatter_sg? Date: Sat, 20 Mar 2010 13:01:34 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6883563912388429196==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: dri-devel@lists.sourceforge.net, David Airlie , kernelnewbies@nl.linux.org List-Id: dri-devel@lists.freedesktop.org --===============6883563912388429196== Content-Type: multipart/alternative; boundary=001485e2c74cae1eae0482345bf1 --001485e2c74cae1eae0482345bf1 Content-Type: text/plain; charset=ISO-8859-1 hi all, i see the drm kernel source code, for SCATTER MEMORY, use vmalloc_32() to alloce some pages, and put them into sglist table in drm_scatter.c. and in drm_mmap_locked(), why it not call *remap_vmalloc_range() to remap the pages to vm_area for mmap? how it remap pages(that memory using vmalloc_32() to alloc) to vm_area? so i am puzzle how the mmap() is work for sg? would someone give it more details? Thanks. Best Figo * --001485e2c74cae1eae0482345bf1 Content-Type: text/html; charset=ISO-8859-1 hi all,

i see the drm kernel source code, for SCATTER MEMORY, use vmalloc_32() to alloce some pages, and put
them into sglist table in drm_scatter.c. and in drm_mmap_locked(), why it not call remap_vmalloc_range() to
remap the pages to vm_area for mmap? how it remap pages(that memory using vmalloc_32() to alloc) to vm_area?
so i am puzzle how the mmap() is work for sg? would someone give it more details? Thanks.

Best
Figo
--001485e2c74cae1eae0482345bf1-- --===============6883563912388429196== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev --===============6883563912388429196== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel --===============6883563912388429196==--