Re: [RFC PATCH 3/3] pstore/ram: avoid atomic accesses for ioremapped regions

2013-04-10 Thread Rob Herring
On 04/09/2013 11:10 PM, Colin Cross wrote: > On Tue, Apr 9, 2013 at 8:08 PM, Rob Herring wrote: >> From: Rob Herring >> >> For persistent RAM outside of main memory, the memory may have limitations >> on supported accesses. For internal RAM on highbank platform exclusive >> accesses are not suppo

Re: [RFC PATCH 3/3] pstore/ram: avoid atomic accesses for ioremapped regions

2013-04-09 Thread Colin Cross
On Tue, Apr 9, 2013 at 8:08 PM, Rob Herring wrote: > From: Rob Herring > > For persistent RAM outside of main memory, the memory may have limitations > on supported accesses. For internal RAM on highbank platform exclusive > accesses are not supported and will hang the system. So atomic_cmpxchg >

[RFC PATCH 3/3] pstore/ram: avoid atomic accesses for ioremapped regions

2013-04-09 Thread Rob Herring
From: Rob Herring For persistent RAM outside of main memory, the memory may have limitations on supported accesses. For internal RAM on highbank platform exclusive accesses are not supported and will hang the system. So atomic_cmpxchg cannot be used. This commit uses spinlock protection for buffe