RE: [PATCH 3/5] misc: vop: simply return the saved dma address instead of virt_to_phys

2020-09-27 Thread Sherry Sun
Hi Greg, > -Original Message- > On Fri, Sep 25, 2020 at 03:26:28PM +0800, Sherry Sun wrote: > > For noncoherent platform, the device page and vring should allocated > > by dma_alloc_coherent, when user space wants to get its physical > > address, virt_to_phys cannot be used, should simply

Re: [PATCH 3/5] misc: vop: simply return the saved dma address instead of virt_to_phys

2020-09-25 Thread Greg KH
On Fri, Sep 25, 2020 at 03:26:28PM +0800, Sherry Sun wrote: > For noncoherent platform, the device page and vring should allocated by > dma_alloc_coherent, when user space wants to get its physical address, > virt_to_phys cannot be used, should simply return the saved device page > dma address by