From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753535AbcHPNU4 (ORCPT ); Tue, 16 Aug 2016 09:20:56 -0400 Received: from foss.arm.com ([217.140.101.70]:46998 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbcHPNUz (ORCPT ); Tue, 16 Aug 2016 09:20:55 -0400 Date: Tue, 16 Aug 2016 14:21:03 +0100 From: Will Deacon To: Guenter Roeck Cc: Robin Murphy , Kees Cook , Jeffy Chen , Colin Cross , Tony Luck , Douglas Anderson , linux-kernel , linux-arm-kernel@lists.infradead.org Subject: Re: Problem with atomic accesses in pstore on some ARM CPUs Message-ID: <20160816132103.GD27088@arm.com> References: <8f0c9ced-cdc3-ab9b-caee-06fe85e6c1e7@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Tue, Aug 16, 2016 at 06:14:53AM -0700, Guenter Roeck wrote: > On Tue, Aug 16, 2016 at 3:32 AM, Robin Murphy wrote: > > On 16/08/16 00:19, Guenter Roeck wrote: > >> we are having a problem with atomic accesses in pstore on some ARM > >> CPUs (specifically rk3288 and rk3399). With those chips, atomic > >> accesses fail with both pgprot_noncached and pgprot_writecombine > >> memory. Atomic accesses do work when selecting PAGE_KERNEL protection. > > > > What's the pstore backed by? I'm guessing it's not normal DRAM. > > > > it is normal DRAM. In which case, why does it need to be mapped with weird attributes? Is there an alias in the linear map you can use? Will