lkml.org 
[lkml]   [2018]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v2 00/10] Copy Offload in NVMe Fabrics with P2P PCI Memory


On 01/03/18 02:18 PM, Jerome Glisse wrote:
> This is pretty easy to do with HMM:
>
> unsigned long hmm_page_to_phys_pfn(struct page *page)
This is not useful unless you want to go through all the kernel paths we
are using and replace page_to_phys() and friends with something else
that calls an HMM function when appropriate...

The problem isn't getting the physical address from a page, it's that we
are passing these pages through various kernel interfaces which expect
pages that work in the usual manner. (Look at the code: we quite simply
provide a way to get the PCI bus address from a page when necessary).

Logan

\
 
 \ /
  Last update: 2018-03-01 22:24    [W:0.245 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site