Return-Path: Received: from down.free-electrons.com ([37.187.137.238]:56458 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753779AbaKRJ6r convert rfc822-to-8bit (ORCPT ); Tue, 18 Nov 2014 04:58:47 -0500 Date: Tue, 18 Nov 2014 10:58:43 +0100 From: Thomas Petazzoni To: Bjorn Helgaas , linux-pci@vger.kernel.org, Myron Stowe Cc: Kevin Hilman , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory =?UTF-8?B?Q2zDqW1lbnQ=?= , Ezequiel Garcia Subject: Re: Regression caused by "PCI: Shrink decoding-disabled window while sizing BARs" Message-ID: <20141118105843.3c1651d5@free-electrons.com> In-Reply-To: <20141118105542.457d7863@free-electrons.com> References: <20141118105542.457d7863@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-pci-owner@vger.kernel.org List-ID: Hello, On Tue, 18 Nov 2014 10:55:42 +0100, Thomas Petazzoni wrote: > Since next-20141117, PCI support is broken on ARM Marvell EBU > platforms. next-20141114 was working fine. The problem we see is: > > pci 0000:03:00.0: reg 0x10: can't handle BAR larger than 4GB (size 0xfffffffffff00000) Another issue (possibly related, or not), is the following compile time warning: /home/thomas/projets/linux-2.6/drivers/pci/probe.c: In function ‘pci_read_bridge_mmio_pref’: /home/thomas/projets/linux-2.6/drivers/pci/probe.c:430:5: warning: left shift count >= width of type base |= ((dma_addr_t) mem_base_hi) << 32; ^ /home/thomas/projets/linux-2.6/drivers/pci/probe.c:431:5: warning: left shift count >= width of type limit |= ((dma_addr_t) mem_limit_hi) << 32; ^ This happens because dma_addr_t is 32 bits on ARM platforms, which isn't properly taken into account by the commit that introduces support for 64 bits DMA addresses. Best regards, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com