Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp396377ybl; Tue, 13 Aug 2019 23:15:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTXPvHTgHIlpCi4o3/YP3lJJu5kA5L3mJU/Dn1N1Qinn1UTbDYX3xtihhqPur9UxOAkDpC X-Received: by 2002:a17:90a:9cf:: with SMTP id 73mr5582753pjo.90.1565763312091; Tue, 13 Aug 2019 23:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565763312; cv=none; d=google.com; s=arc-20160816; b=YlRhvQb1O0LtwU/tiyXk35U00Jdzy/VZVTINkQ+Vt3P5gy+M8f249g+lQNSclvqnUG qyugB1BC5tW5D2uTsT99n8BgCag5nOMZeaXf7ZkVLP3G3+sF+eGDJBcZGxBUGnqVkATJ asbaWuV0xbHInCy1I8xfB08QmJibW1dd+57dmkBiEZTUphkq/D53hiB8rH/Knzqbnd+E pzaeK1gm45v4cnJ3siUgGz77a6H1UYtTaYN6+t9vqSisnzkaZd/9qaiPPW3LUPlu5ZUK qn2X7GWV196q3ek4L7iwjkM9BaLq5qjqLPa/le/TrgRk/iai+GlKLEPtSeET64dbVeVQ 6xcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=44K07C207hP60aYqx/O6kvlLTyW56Ovhtuazmf91s3M=; b=mttdUxAVTQiOCv5qQ+3BwLrchWkEEtKEa2NfhOo0o9BGstJktBxrCVOo4H2NGh9MaC 7Cka/w7BecW0091ZnNt2sjxrUUzAa8810rP9ACl40mrn2HM0p5JkaDnKvtvLfFYqlKOk muCh7sLBtZJjFFCjezms8N6iXQAEbcPi5Yli63GeD1T6SBoSDU9IO8u6HNDoXujQQ7i/ IrgXEUGgs+Ck5wT5J6TMjx/rzgS7k7d7vmEBqrVt2Zo0ErVicz522v+ZpXFrwrOHzw4N Nj6JesNFDATGpimJPa85adM/1uD4mIiYaGzMMThCYysB3XKFzkTZbsUPNC57WJebMKVr ZGxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XNTqUbcz; 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 i3si33442275pgd.554.2019.08.13.23.14.56; Tue, 13 Aug 2019 23:15:12 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=XNTqUbcz; 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 S1727009AbfHNGOW (ORCPT + 99 others); Wed, 14 Aug 2019 02:14:22 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:60140 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725265AbfHNGOW (ORCPT ); Wed, 14 Aug 2019 02:14:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=44K07C207hP60aYqx/O6kvlLTyW56Ovhtuazmf91s3M=; b=XNTqUbczBcUcBbsb2phecwHjD /lGxXibOWPO99uMOTbuOoALJusaNcHor07dCMalkCClPs3nQt/P8CvClvz2yHRNX4jZwXF3D+om5T vB5pbbOJMSjhtIoVYDrnj3tQf+pOhrr8SDPfu4Z96z5i50/E9jiQ2Q+2uLpwgIkwVNH/AOCANk1H7 CmOBRSMduJImu+WNej5byXvQHT/nhYc7ifGAGEMMtpK6Ob489BB07q5Q9YbJh16eQQseDdqPzRZU+ nXjkTeROgopU8iLe44RqQC1qHEvtnpXAgFR9q96FXFTjN/yfjSEtQXPjF6XPwsHg1aBHfRiFsfM3I 51ChTttGQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hxmY8-0005Tu-P2; Wed, 14 Aug 2019 06:14:21 +0000 Date: Tue, 13 Aug 2019 23:14:20 -0700 From: Christoph Hellwig To: Christophe Leroy Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, npiggin@gmail.com, Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v1 05/10] powerpc/mm: Do early ioremaps from top to bottom on PPC64 too. Message-ID: <20190814061420.GA17453@infradead.org> References: <6bc35eca507359075528bc0e55938bc1ce8ee485.1565726867.git.christophe.leroy@c-s.fr> <019c5d90f7027ccff00e38a3bcd633d290f6af59.1565726867.git.christophe.leroy@c-s.fr> <20190814055525.GA12744@infradead.org> <1d44ec1d-339d-e22c-2133-175e0aa745f6@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d44ec1d-339d-e22c-2133-175e0aa745f6@c-s.fr> User-Agent: Mutt/1.11.4 (2019-03-13) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 14, 2019 at 08:10:59AM +0200, Christophe Leroy wrote: > > 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. Yes. > PPC installs definitive early mappings (for instance for PCI). How does that > have to be handled ? Good question, and no good answer. I've just been looking at a generic ioremap for simple architectures, and been finding all kinds of crap and inconsistencies, and this is one of the things I noticed.