On Thu, Jan 27, 2022 at 09:37:59AM +0000, yangx.jy@xxxxxxxxxxx wrote: > Do you mean we have to consider that some allocated pages come from high > memory? > > I think INFINIBAND_VIRT_DMA kconfig[1] has ensured that all allocated > pages have a kernel virtual address. rxe and siw depend on INFINIBAND_VIRT_DMA which depends on !HIGHMEM, so you don't need kmap here at all. > In this case, is it OK to call page_address() directly? Yes.