Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp393350ybl; Tue, 13 Aug 2019 23:12:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSEsqUnDrA+v7VsM/kvgOsCmEQY1tm6JTJMFCVKt7jcjF+XDB15Om+02tE8pn9uiriUcx9 X-Received: by 2002:a17:902:d892:: with SMTP id b18mr38438096plz.165.1565763130646; Tue, 13 Aug 2019 23:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565763130; cv=none; d=google.com; s=arc-20160816; b=I2uhNJ7K14kxwdb2lb30b1qOlV3QXkCw4d2JfA9lcocjqDB4WlJDF3kQm7H/XOrDWo G1xrQa0W4wowggNHeTyQSEtyB9Zx+OJLF0B10EIDcb8OyLwIKsnvD8919ZapfM4Dc32Z MBObQexzyzeNen9j4vIsI677d1BFxt//th3WS8alYF6e1t2tX78UHnNpM7D3r2JKUFuP Tacc39AElX2OPWIEBYKcQY5iDRZvPkQ/Ejw7sgD6GroupQtBqX47qFJsfF7x4fhycOZ5 tdubNkKJFCnWg1fEVAMvwaiSfEEdwJmzIeUwYsOocz5L1a3oyvgwO35eiYg9eSb4Rcgx R1WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=XH/hXUYOtyI0ss05GLpoqwKxWjKTlS/1d5666/vUiPQ=; b=zlMAelH6cYjJuy8+l7bv0mgJGKu9equDdREds//mxEvjvuMs5vg+Y1aACbnfuHR9a1 tX5qf2nHj2X9PumRkIBy7D4kAYnZM5F+7ImJVeg4uyeU1Lnw2oNLawSQ5Z/4mo+nbAma yqq8/emNii+LEBL2ZE0ERSTsAmH97GRnujIJpk7ELEbdKCBGCRZgq97wHMTzU6DQM9Ht rLGtpvv5LuxK4YPuEmIGoCvMT3siOax++Peu7DHZxoh2UhljU4STfObnImzFEbtJfJL/ OU0fe1ukS5IxQFCsc/SZN0GyEwVRBIZkLvf5E/F3AyYgXTBGZEgmMegc0JcxMw0w/FiM /Cmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=duCN9Vgw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si3141723plp.325.2019.08.13.23.11.55; Tue, 13 Aug 2019 23:12:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=duCN9Vgw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727205AbfHNGLC (ORCPT + 99 others); Wed, 14 Aug 2019 02:11:02 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:35458 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbfHNGLC (ORCPT ); Wed, 14 Aug 2019 02:11:02 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 467fN43NP3z9vBmv; Wed, 14 Aug 2019 08:11:00 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=duCN9Vgw; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id kd7CDSTzq66e; Wed, 14 Aug 2019 08:11:00 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 467fN4166sz9vBmt; Wed, 14 Aug 2019 08:11:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1565763060; bh=XH/hXUYOtyI0ss05GLpoqwKxWjKTlS/1d5666/vUiPQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=duCN9VgwdfKgbD5Ie20Lmdq7BCnFCQEvgMw5tWhphRKFd11RezdeQJ7mtSKud6GBm Mwl4ENf+lN/roTnNcUvF7mUWRd0iax97slF3ej3mPTtqDutzv21SqwhKq9973gMljN hjR5Ssl98zhfen6I7hExkSU7f5lTJa3JTOCTKfzw= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 227608B780; Wed, 14 Aug 2019 08:11:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id YFDPe1e-wMz0; Wed, 14 Aug 2019 08:11:01 +0200 (CEST) Received: from [172.25.230.101] (po15451.idsi0.si.c-s.fr [172.25.230.101]) by messagerie.si.c-s.fr (Postfix) with ESMTP id F075D8B761; Wed, 14 Aug 2019 08:11:00 +0200 (CEST) Subject: Re: [PATCH v1 05/10] powerpc/mm: Do early ioremaps from top to bottom on PPC64 too. To: Christoph Hellwig Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , npiggin@gmail.com, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <6bc35eca507359075528bc0e55938bc1ce8ee485.1565726867.git.christophe.leroy@c-s.fr> <019c5d90f7027ccff00e38a3bcd633d290f6af59.1565726867.git.christophe.leroy@c-s.fr> <20190814055525.GA12744@infradead.org> From: Christophe Leroy Message-ID: <1d44ec1d-339d-e22c-2133-175e0aa745f6@c-s.fr> Date: Wed, 14 Aug 2019 08:10:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190814055525.GA12744@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 14/08/2019 à 07:55, Christoph Hellwig a écrit : > On Tue, Aug 13, 2019 at 08:11:38PM +0000, Christophe Leroy wrote: >> Until vmalloc system is up and running, ioremap basically >> allocates addresses at the border of the IOREMAP area. > > Note that while a few other architectures have a magic hack like powerpc > to make ioremap work before vmalloc, the normal practice would be > to explicitly use early_ioremap. I guess your change is fine for now, > but it might make sense convert powerpc to the explicit early_ioremap > scheme as well. > I've been looking into early_ioremap(), but IIUC early_ioremap() is for ephemeral mappings only, it expects all early mappings to be gone at the end of init. PPC installs definitive early mappings (for instance for PCI). How does that have to be handled ? Christophe