Hi James,<br>
As is known to all, there several memory types uesed for memory
register in kDAPL. I have some questions about the types
DAT_MEM_TYPE_PHYSICAL and DAT_MEM_TYPE_IA:<br>
1) Could memory allocated by kmem_cache_create() be OK?<br>
AFAIK, memory allocated by kmalloc() is OK and that by vmalloc() is
not. What about that allocated by kmem_cache_create()? Is it OK in the
condition that the SLAB_CACHE_DMA flag is used?<br>
2) What is the difference between DAT_MEM_TYPE_PHYSICAL and
DAT_MEM_TYPE_IA when a continuous range of physical memory is to be
registered?<br>
In my opinion, the continuous range should be tranlated into a serious
of page addresses before registered as the DAT_MEM_TYPE_PHYSICAL type,
and it's not necessary for the DAT_MEM_TYPE_IA type.
Is the translation is done in the dat_lmr_kcreate() for the
DAT_MEM_TYPE_IA type?<br>
<br clear="all">Thanks a lot!<br>
<br>-- <br>Ian Jiang<br><a href="mailto:ianjiang.ict@gmail.com">ianjiang.ict@gmail.com</a><br><br>Laboratory of Spatial Information Technology<br>Division of System Architecture<br>Institute of Computing Technology<br>Chinese Academy of Sciences