Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753339AbbKWQln (ORCPT ); Mon, 23 Nov 2015 11:41:43 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:51109 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751081AbbKWQlk (ORCPT ); Mon, 23 Nov 2015 11:41:40 -0500 From: Arnd Bergmann To: Stanimir Varbanov Cc: Gabriele Paoloni , "linux-arm-msm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-pci@vger.kernel.org" , Bjorn Helgaas , Srinivas Kandagatla , Rob Herring , Rob Herring , Mark Rutland , Pawel Moll , Ian Campbell , Jingoo Han , Pratyush Anand , Bjorn Andersson Subject: Re: [PATCH v3 1/6] PCI: designware: remove wrong io_base assignment Date: Mon, 23 Nov 2015 17:40:56 +0100 Message-ID: <6899049.45pKpnsxmL@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <56533D93.5000604@linaro.org> References: <56533D93.5000604@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:7Y2NYiXeBnmCPZ3w532CX3N2J4E8O45HHX3wfxv1oO6NhSA9RlA xROt6SvFb5y/iJYN+vnjBLS253iebZhKNt8c//hEQD5m0D+QTaz6USS1p92WpCbv1qLt4UM JB9c0kXCg/DIKEVjVebyBfZer+Vj6LLdOgKy46ssGpw0/5zx4+W7zbjX5cPfr+0/Ed9mOhG rtRVsSifauCPwAogPxQiQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:qtRoflW9NNc=:J3x3No+iuACe3F9kMGjORJ o3DGKV7rS4r6HxYV6PlQWX1NMe7THhERnq+1DBPdnGQvJA9DqIzAEtrrUA1i+eR5EqTEl/Vwf fDExAyLxDUn1F7g2pl+7r2yh2VNMlXLFi+biZr9QU4CNTAARlH5mxK+IkEDpCq4h1xY5/V3QE GZ2hHPBgmKL8jSgRABUcShF7EdA3nf5uAicTTD7kSAjPOrE16hBR0Yp3deKjc/M4b5iZ2Qp8u yNquAbBrZao0DqKYd3D96fEL5eqMXArxRxUqp5b7EZuuZId7g9orl/WwFJjtVv4dQNDR3ncq7 WgY4KKm/M1IsSIL7lnjvy3Brd8gm/4gHLv57E6TnsEssU4DA1K7T+bNnqmNxR4ieIhacJYyap gcIhfNkY7yCfduHOkkTVz+BOOUMYoqtY79qbRjiG/dwCpe++BTJ8G6VFZmoch/1c4/JfJNxIN SnBdtnbOsHcCGGAc6vxHhQE+1ZthbCrAJLuu1K6p8mxMy+JAMW2nK+3ik4xHuqpklmHS0yWtP lnhLOS3d7OQ4qQdzCRoldvftvElSLNldwqeU2Hrny4/ae00sdBdMGYCv6nea/o8KM8F3qHy1f ZXn1HJbN+8+NReSW+zlYzQPp8QrBs2ocb53vIl5wKCiGW03DBFnYLHUfmY3trnFKFf1jBDxgI J3EZ92nN06ZsgDdTJndmdKhi6b0snNsfSciQuxUX7R8IMBl2SJpkUuu09mA2cq7yfXK6qaebW eHZGPvDweAnOOoCQ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 982 Lines: 27 On Monday 23 November 2015 18:23:47 Stanimir Varbanov wrote: > >> > >> Fixes: 0021d22b73d6 ("PCI: designware: Use of_pci_get_host_bridge_resources() > >> to parse DT") > >> Reviewed-by: Arnd Bergmann > > I think the bug is introduced in: > > cbce7900598c ("PCI: designware: Make driver arch-agnostic") > > cause the io_base is correctly calculated in 0021d22b73d6, do you agree? I think cbce7900598c just slightly changes the io_base value, but it's still referring to a bus address, not a cpu address, both before and after the patch. 0021d22b73d6 hower seems to remove the correct 'pp->io_base = range.cpu_addr;' and replaces it with 'pp->io_base = pp->io->start;', so it's now in the wrong address space. Arnd -- 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/