Re: Can we map a device address to two different memory locations?

2011-05-28 Thread Peter Teoh
the concept of "remap" is to map again, thus, if u call ioremap() multiple times, u will just remove the previous mapping setup. This is implied in the source for ioremap() - delved down all the way to where the PTE is setup. the reason for this is because the MMU translation process is hardwar

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread Mulyadi Santosa
On Sat, May 28, 2011 at 00:48, anish singh wrote: > > > On Fri, May 27, 2011 at 10:54 PM, Mulyadi Santosa > wrote: >> >> Hi... >> >> On Fri, May 27, 2011 at 17:49, sandeep kumar >> wrote: >> > Now the question is can we memory map a one device resource(say some >> > iomemory) to two different me

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread anish singh
On Fri, May 27, 2011 at 10:54 PM, Mulyadi Santosa wrote: > Hi... > > On Fri, May 27, 2011 at 17:49, sandeep kumar > wrote: > > Now the question is can we memory map a one device resource(say some > > iomemory) to two different memory locations? > > the other way of seeing at this question is, >

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread Mulyadi Santosa
Hi... On Fri, May 27, 2011 at 17:49, sandeep kumar wrote: > Now the question is can we memory map a one device resource(say some > iomemory) to two different memory locations? > the other way of seeing at this question is, > Will ioremap() gives different 'virtual addresses' when called multiple

Re: Can we map a device address to two different memory locations?

2011-05-27 Thread Daniel Baluta
On Fri, May 27, 2011 at 1:49 PM, sandeep kumar wrote: > Hi all, > Memory mapping is done so that CPU can access the devices, which it cant > unless. > > Now the question is can we memory map a one device resource(say some > iomemory) to two different memory locations? > the other way of seeing at

Can we map a device address to two different memory locations?

2011-05-27 Thread sandeep kumar
Hi all, Memory mapping is done so that CPU can access the devices, which it cant unless. Now the question is can we memory map a one device resource(say some iomemory) to two different memory locations? the other way of seeing at this question is, Will ioremap() gives different 'virtual addresses'