Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753172AbbGNQaA (ORCPT ); Tue, 14 Jul 2015 12:30:00 -0400 Received: from foss.arm.com ([217.140.101.70]:35003 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752697AbbGNQ37 (ORCPT ); Tue, 14 Jul 2015 12:29:59 -0400 Date: Tue, 14 Jul 2015 17:29:56 +0100 From: Will Deacon To: David Daney Cc: David Daney , "linux-arm-kernel@lists.infradead.org" , Catalin Marinas , "linux-kernel@vger.kernel.org" , Robert Richter , David Daney Subject: Re: [PATCH] arm64: Define HAVE_ARCH_PIO_SIZE and related symbols. Message-ID: <20150714162955.GR16213@arm.com> References: <1436823096-24059-1-git-send-email-ddaney.cavm@gmail.com> <20150714110039.GC16213@arm.com> <55A53509.4060202@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55A53509.4060202@caviumnetworks.com> 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 Content-Length: 1496 Lines: 42 On Tue, Jul 14, 2015 at 05:12:57PM +0100, David Daney wrote: > On 07/14/2015 04:00 AM, Will Deacon wrote: > > On Mon, Jul 13, 2015 at 10:31:36PM +0100, David Daney wrote: > >> From: David Daney > >> > >> Needed to make pci_iomap() work. > > > > Care to elaborate? > > > > I should have explained what I am doing here a little better. Yeah, thanks. > Systems based on the Cavium ThunderX processor may have up to 8 > independent PCIe root complexes. The I/O space on each bus occupies an > independent physical address window. Hmm, so do you have 64k of I/O space per-bus? That gives 8x256x64k = 128M IIUC, so not sure what your 32MB is for. > So, in order to be able to map all of these (semi) contiguously, we need > a lot more virtual address space than is supplied by the default values > for all these constants. > > The option I chose here was to unconditionally expand the I/O ranges for > all arm64 systems. If you think this breaks existing systems/drivers, I > will have to look for other options. Hmm, but pci_iomap winds up calling __pci_ioport_map, which expands to ioport_map which just does: return PCI_IOBASE + (port & IO_SPACE_LIMIT); so I'm struggling to see what your patch achieves. Will -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/