On Wed, Aug 24, 2016 at 03:09:35PM +0200, Sebastian Andrzej Siewior wrote: > I have here a FPGA behind PCIe which exports SRAM which I use for > pstore. Now it seems that the FPGA no longer supports cmpxchg based > updates and writes back 0xff…ff and returns the same. This leads to > crash during crash rendering pstore useless. > Since I doubt that there is much benefit from using cmpxchg() here, I am > dropping this atomic access and use the spinlock based version. > > Cc: Anton Vorontsov <[email protected]> > Cc: Colin Cross <[email protected]> > Cc: Kees Cook <[email protected]> > Cc: Tony Luck <[email protected]> > Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Tested-by: Rabin Vincent <[email protected]> This patch is needed for pstore to work on (most?) ARMv7 chips. See this thread for details: https://lkml.kernel.org/g/CABXOdTfT7xMfiBvRuUS1hsVs=q5q2wy1x1z8ocyyjnfckm0...@mail.gmail.com

