From mboxrd@z Thu Jan 1 00:00:00 1970 From: rabin@rab.in (Rabin Vincent) Date: Thu, 8 Sep 2016 12:23:56 +0200 Subject: [PATCH] pstore/core: drop cmpxchg based updates In-Reply-To: <20160824130935.23110-1-bigeasy@linutronix.de> References: <20160824130935.23110-1-bigeasy@linutronix.de> Message-ID: <20160908102356.GA6020@lnxartpec.se.axis.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 > Cc: Colin Cross > Cc: Kees Cook > Cc: Tony Luck > Signed-off-by: Sebastian Andrzej Siewior Tested-by: Rabin Vincent This patch is needed for pstore to work on (most?) ARMv7 chips. See this thread for details: https://lkml.kernel.org/g/CABXOdTfT7xMfiBvRuUS1hsVs=q5q2wY1x1Z8oCyyJNFckM0g0A at mail.gmail.com From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966408AbcIHKYT (ORCPT ); Thu, 8 Sep 2016 06:24:19 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:32957 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938618AbcIHKYR (ORCPT ); Thu, 8 Sep 2016 06:24:17 -0400 Date: Thu, 8 Sep 2016 12:23:56 +0200 From: Rabin Vincent To: Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, Anton Vorontsov , Colin Cross , Kees Cook , Tony Luck , groeck@google.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] pstore/core: drop cmpxchg based updates Message-ID: <20160908102356.GA6020@lnxartpec.se.axis.com> References: <20160824130935.23110-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160824130935.23110-1-bigeasy@linutronix.de> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Cc: Colin Cross > Cc: Kees Cook > Cc: Tony Luck > Signed-off-by: Sebastian Andrzej Siewior Tested-by: Rabin Vincent This patch is needed for pstore to work on (most?) ARMv7 chips. See this thread for details: https://lkml.kernel.org/g/CABXOdTfT7xMfiBvRuUS1hsVs=q5q2wY1x1Z8oCyyJNFckM0g0A@mail.gmail.com