linux-uconsole/fs/pstore
Rob Herring 681f57171b pstore/ram: avoid atomic accesses for ioremapped regions
commit 0405a5cec3 upstream.

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 buffer size and
start updates on ioremapped regions instead.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Anton Vorontsov <anton@enomsg.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
[hkp: Backported to 3.10: adjust context]
Signed-off-by: HuKeping <hukeping@huawei.com>
2015-02-05 22:35:40 -08:00
..
ftrace.c pstore/ftrace: Adjust for ftrace_ops->func prototype change 2012-12-12 19:50:04 -08:00
inode.c pstore: d_alloc_name() doesn't return an ERR_PTR 2015-02-05 22:35:39 -08:00
internal.h efi_pstore: Add a sequence counter to a variable name 2012-11-26 16:07:44 -08:00
Kconfig pstore/ftrace: Convert to its own enable/disable debugfs knob 2012-09-06 22:16:58 -07:00
Makefile pstore: Add persistent function tracing 2012-07-17 10:05:52 -07:00
platform.c pstore: Avoid deadlock in panic and emergency-restart path 2013-01-11 10:20:50 -08:00
ram.c pstore: Fix NULL pointer fault if get NULL prz in ramoops_get_next_prz 2015-02-05 22:35:40 -08:00
ram_core.c pstore/ram: avoid atomic accesses for ioremapped regions 2015-02-05 22:35:40 -08:00