From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933541AbdCUQz1 (ORCPT ); Tue, 21 Mar 2017 12:55:27 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:54396 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933364AbdCUQyX (ORCPT ); Tue, 21 Mar 2017 12:54:23 -0400 Date: Tue, 21 Mar 2017 16:53:50 +0000 From: Russell King - ARM Linux To: Lorenzo Pieralisi Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Arnd Bergmann , Will Deacon , Catalin Marinas , Pratyush Anand , Jingoo Han , Bjorn Helgaas , Mingkai Hu , John Garry , Tanmay Inamdar , Murali Karicheri , Bharat Kumar Gogada , Ray Jui , Wenrui Li , Shawn Lin , Minghuan Lian , Jon Mason , Gabriele Paoloni , Thomas Petazzoni , Joao Pinto , Thierry Reding , Michal Simek , Stanimir Varbanov , Zhou Wang , Roy Zang Subject: Re: [PATCH 05/20] ARM: implement pci_remap_cfgspace() interface Message-ID: <20170321165349.GB21222@n2100.armlinux.org.uk> References: <20170227151436.18698-1-lorenzo.pieralisi@arm.com> <20170227151436.18698-6-lorenzo.pieralisi@arm.com> <20170320164354.GQ21222@n2100.armlinux.org.uk> <20170321152636.GA4799@red-moon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170321152636.GA4799@red-moon> 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, Mar 21, 2017 at 03:26:36PM +0000, Lorenzo Pieralisi wrote: > I assumed that in plain terms, the difference between MT_DEVICE and > MT_UNCACHED is write posting (aka bufferable) behaviour (across CPU > architecture versions) and that does not affect write ordering rules. Having looked it up in the ARM ARM, I think we're fine. Device and strongly ordered accesses are both ordered as one group, so can be thought of as the same. The only difference is that Device can complete from the CPU's perspective before it hits the peripheral, whereas strongly ordered only completes once it's hit the peripheral. So this looks like exactly the right thing to do here. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.