Re: [PATCHv2 1/2] mm/vmalloc: Add IO mapping space reused interface support.

2014-05-15 Thread Richard Lee
On Thu, May 15, 2014 at 6:56 AM, Andrew Morton wrote: > On Wed, 14 May 2014 16:18:51 +0800 Richard Lee > wrote: > >> For the IO mapping, the same physical address space maybe >> mapped more than one time, for example, in some SoCs: >> - 0x20001000 ~ 0x20001400 --> 1KB for Dev1 >> - 0x2000140

Re: [PATCHv2 1/2] mm/vmalloc: Add IO mapping space reused interface support.

2014-05-14 Thread Richard Lee
On Thu, May 15, 2014 at 12:06 AM, Rob Herring wrote: > Adding Nico... > > On Wed, May 14, 2014 at 3:18 AM, Richard Lee wrote: >> For the IO mapping, the same physical address space maybe >> mapped more than one time, for example, in some SoCs: >> - 0x20001000 ~ 0x20001400 --> 1KB for Dev1 >>

Re: [PATCHv2 1/2] mm/vmalloc: Add IO mapping space reused interface support.

2014-05-14 Thread Andrew Morton
On Wed, 14 May 2014 16:18:51 +0800 Richard Lee wrote: > For the IO mapping, the same physical address space maybe > mapped more than one time, for example, in some SoCs: > - 0x20001000 ~ 0x20001400 --> 1KB for Dev1 > - 0x20001400 ~ 0x20001800 --> 1KB for Dev2 > and the page size is 4KB. >

Re: [PATCHv2 1/2] mm/vmalloc: Add IO mapping space reused interface support.

2014-05-14 Thread Rob Herring
Adding Nico... On Wed, May 14, 2014 at 3:18 AM, Richard Lee wrote: > For the IO mapping, the same physical address space maybe > mapped more than one time, for example, in some SoCs: > - 0x20001000 ~ 0x20001400 --> 1KB for Dev1 > - 0x20001400 ~ 0x20001800 --> 1KB for Dev2 > and the page siz

[PATCHv2 1/2] mm/vmalloc: Add IO mapping space reused interface support.

2014-05-14 Thread Richard Lee
For the IO mapping, the same physical address space maybe mapped more than one time, for example, in some SoCs: - 0x20001000 ~ 0x20001400 --> 1KB for Dev1 - 0x20001400 ~ 0x20001800 --> 1KB for Dev2 and the page size is 4KB. Then both Dev1 and Dev2 will do ioremap operations, and the IO vmall