lkml.org 
[lkml]   [2020]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2 2/3] MIPS: Loongson: Add DMA support for 7A1000
From


于 2020年3月25日 GMT+08:00 下午9:27:56, Christoph Hellwig <hch@infradead.org> 写到:
>On Mon, Mar 23, 2020 at 10:59:14AM +0800, Tiezhu Yang wrote:
>> Implement __phys_to_dma() and __dma_to_phys() according to the
>> node id offset in the 7A1000 DMA route config register.
>
>Can you please try to just use the dma_pfn_offset field in struct
>device
>for all loongson platforms? I'm pretty sure I asked for that last time
>around..

Here we have a problem that dma_pfn_offset doesn't fit our platform.

We have multiple dma-ranges that translate in to different address and
dma_pfn_offset can only handle single range
with fixed offset.

Thanks.

--
Jiaxun Yang

\
 
 \ /
  Last update: 2020-03-27 07:28    [W:0.118 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site