From mboxrd@z Thu Jan 1 00:00:00 1970 From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni) Date: Mon, 19 May 2014 13:41:06 +0200 Subject: [PATCHv5 4/4] ARM: mvebu: use pci_ioremap_set_mem_type() to map PCI I/O as strongly ordered In-Reply-To: <20140519095949.GD5113@arm.com> References: <1400487234-4501-1-git-send-email-thomas.petazzoni@free-electrons.com> <1400487234-4501-5-git-send-email-thomas.petazzoni@free-electrons.com> <20140519095949.GD5113@arm.com> Message-ID: <20140519134106.2c71260c@free-electrons.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Dear Catalin Marinas, On Mon, 19 May 2014 10:59:49 +0100, Catalin Marinas wrote: > The patch is fine but for this to work in the UP case we need to fix > MT_UNCACHED definition for sections. It seems to create SO memory but > not necessarily writable (unless I miss something). Anyway, untested, > something like this: I justed tested in !CONFIG_SMP on Armada 38x, and writing to a PCI I/O mapping works in both the MT_UNCACHED and MT_DEVICE cases. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Subject: Re: [PATCHv5 4/4] ARM: mvebu: use pci_ioremap_set_mem_type() to map PCI I/O as strongly ordered Date: Mon, 19 May 2014 13:41:06 +0200 Message-ID: <20140519134106.2c71260c@free-electrons.com> References: <1400487234-4501-1-git-send-email-thomas.petazzoni@free-electrons.com> <1400487234-4501-5-git-send-email-thomas.petazzoni@free-electrons.com> <20140519095949.GD5113@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140519095949.GD5113-5wv7dgnIgG8@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Catalin Marinas Cc: Lior Amsalem , "devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Russell King , Jason Cooper , Arnd Bergmann , Andrew Lunn , Will Deacon , Grant Likely , Gregory Clement , Nadav Haklai , Rob Herring , Ezequiel Garcia , Albin Tonnerre , Tawfik Bayouk , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , Sebastian Hesselbarth List-Id: devicetree@vger.kernel.org Dear Catalin Marinas, On Mon, 19 May 2014 10:59:49 +0100, Catalin Marinas wrote: > The patch is fine but for this to work in the UP case we need to fix > MT_UNCACHED definition for sections. It seems to create SO memory but > not necessarily writable (unless I miss something). Anyway, untested, > something like this: I justed tested in !CONFIG_SMP on Armada 38x, and writing to a PCI I/O mapping works in both the MT_UNCACHED and MT_DEVICE cases. Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html