From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Return-Path: Date: Thu, 20 Apr 2017 11:33:40 +0100 From: Catalin Marinas To: Lorenzo Pieralisi Subject: Re: [PATCH v4 03/21] ARM64: implement pci_remap_cfgspace() interface Message-ID: <20170420103340.GA755@e104818-lin.cambridge.arm.com> References: <20170419164913.19674-1-lorenzo.pieralisi@arm.com> <20170419164913.19674-4-lorenzo.pieralisi@arm.com> MIME-Version: 1.0 In-Reply-To: <20170419164913.19674-4-lorenzo.pieralisi@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Wenrui Li , Gabriele Paoloni , linux-pci@vger.kernel.org, Shawn Lin , Will Deacon , Russell King , Thierry Reding , Tanmay Inamdar , Zhou Wang , Joao Pinto , Pratyush Anand , Michal Simek , Bharat Kumar Gogada , Murali Karicheri , Benjamin Herrenschmidt , Arnd Bergmann , Jon Mason , Ray Jui , John Garry , Bjorn Helgaas , Mingkai Hu , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Jingoo Han , linux-kernel@vger.kernel.org, Stanimir Varbanov , Minghuan Lian , "Luis R. Rodriguez" , Roy Zang Content-Type: text/plain; charset="us-ascii" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+bjorn=helgaas.com@lists.infradead.org List-ID: On Wed, Apr 19, 2017 at 05:48:52PM +0100, Lorenzo Pieralisi wrote: > The PCI bus specifications (rev 3.0, 3.2.5 "Transaction Ordering > and Posting") defines rules for PCI configuration space transactions > ordering and posting, that state that configuration writes > are non-posted transactions. > > This rule is reinforced by the ARM v8 architecture reference manual > (issue A.k, Early Write Acknowledgment) that explicitly recommends > that No Early Write Acknowledgment attribute should be used to map > PCI configuration (write) transactions. > > Current ioremap interface on ARM64 implements mapping functions > where the Early Write Acknowledgment hint is enabled, so they > cannot be used to map PCI configuration space in a PCI specs > compliant way. > > Implement an ARM64 specific pci_remap_cfgspace() interface > that allows to map PCI config region with nGnRnE attributes, providing > a remap function that complies with PCI specifications and the ARMv8 > architecture reference manual recommendations. > > Signed-off-by: Lorenzo Pieralisi > Cc: Will Deacon > Cc: Catalin Marinas Acked-by: Catalin Marinas _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel