From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753910AbaCJT3J (ORCPT ); Mon, 10 Mar 2014 15:29:09 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:64860 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752099AbaCJT3H (ORCPT ); Mon, 10 Mar 2014 15:29:07 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Geert Uytterhoeven , "devicetree@vger.kernel.org" , linaro-kernel , Benjamin Herrenschmidt , linux-pci , Liviu Dudau , LKML , Will Deacon , Tanmay Inamdar , Catalin Marinas , Bjorn Helgaas Subject: Re: [PATCH v6 6/6] pci: Add support for creating a generic host_bridge from device tree Date: Mon, 10 Mar 2014 20:28:32 +0100 Message-ID: <2669340.5Jm6AjVlSo@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1394020137-1830-1-git-send-email-Liviu.Dudau@arm.com> <1469359.kil5iaOqdU@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:EX3a5AruirvFxuKpkbS6wz6QWQdqKUhs3PT2oA3qE5M CDZ3v4d7dLL0dX7xgJFralU9YMAhzd24QzyOxsTyeylEkRBPKK 3Q/CsJHiIZiLihtP9SDEeAE2a7ttxi+m1fcTCYSl+RxAotF42a HCro8inavHI3JJJxNPG1b0e3uzhff1gF15RaAINeKkGaFYUz5S pYui1PRzoVLTAwDdHauBfQ2ZZu200XtJ39dWzeha8bZLBDimuK GdjlQaF4EJLDNE9XYV4qbtG93es/x6x1qP+m76HedP0GNTZddR 3MSdoILknCTZbKP3sllwEEmAXQ5/flehAmfXBDag55aBPXS7qY qw5v1A1LF0obElv4Krf4= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 10 March 2014 20:16:25 Geert Uytterhoeven wrote: > On Mon, Mar 10, 2014 at 7:59 PM, Arnd Bergmann wrote: > >> arch/avr32/include/asm/io.h:#define IO_SPACE_LIMIT 0xffffffff > >> arch/frv/include/asm/io.h:#define IO_SPACE_LIMIT 0xffffffff > > > > They have no MMU, and the code relies on the port number to match > > both the virtual and the physical address. You could be right about > > these, but I would guess that the code also needs some other > > changes if we want to make it work on nommu kernels. It also depends > > on whether the I/O bus address is the same as the CPU address, or > > if it starts at bus address 0. > > >> arch/m68k/include/asm/io_no.h:#define IO_SPACE_LIMIT 0xffffffff > > > > This looks like a mistake, it should be smaller > > io_no.h is for nommu. Ah, I missed that. In that case I assume it doesn't matter because the only m68k with PCI is M54xx and that always has an MMU. Arnd