Skip to contentSkip to conversation

DRM: how the mmap() work for scatter_sg?

DISCUSSION figo zhang 1 participant 1 message Mar 20, 2010

lore
Share & tools
lore

figo zhang

author
#0 lore raw

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
*

------------------------------------------------------------------------------
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

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