Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2251312ybe; Thu, 12 Sep 2019 06:54:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxkKAEK9sNKNt9oyNO6Rgq+1DUyGSE5E/L/9hw7RGgEqdbGhpzoERRyY7nkcTNk0eVL9tNA X-Received: by 2002:aa7:c559:: with SMTP id s25mr6343921edr.198.1568296443334; Thu, 12 Sep 2019 06:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568296443; cv=none; d=google.com; s=arc-20160816; b=DzhhJTPZfAT0dA0ulBMXakJNYX9McxRBBV293uYCX7AnDjydULIwsXC2KJlerlfe8q j6yp1nhtTIFX25eQw0ADOModlrE80W72bXR/jkeU66Rn/WD23NsMsZHJl6ZJCnaO0OcU szAjPfKDukzvRXQVSN30mZmqS0RrXE/L+s6TvNBCPF0+8dQsJkDEBvnHXaiz+eBemWAl 4q9I9C9VcOpyv9bcSNtdkQyNwdDtZ6MRsxxfCRWrHkNWBCVraoqtKHBOwNj4hPyAxdBr AI/B0Y04Q/xI8y9S8jNlc612VK0gebwDUUexHEWmBQCdL8ADZ80MNgpSoYQbqRDKwHfG Frkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:content-transfer-encoding :mime-version:subject:from:message-id:dkim-signature; bh=d2QKZgIsoKBN+peITw+555bks/d8W8e+DijVX+dp8BY=; b=06wR8kG6/qM6wqwK+rmD6IfpIg+76jSf3RHo/UqN4x7O5sUH15hnGOQpWo4njrrnkZ Z4mjnzuRn90iaBFWixs58wgVef6HOOWdnH8jLriLCPyok5nfVOZejoZfLYly536WlFg3 s8xbk8z0kmUVVqNDfheDN4YFsHgobsVEOrCfTyEJeoP5qSrsEuq2lyHRcqcNw9/38RTF YzmNDcAA0WopYmb6vf4F2IB0LvQlOeSdrePTEb5mbKUSHAvgP6pgGFrxd95zTbWWcs8B lgbUty/qajrUo/ezDw/ak1r3tY3j25L0xqPW9Z/UVqaNo6S8l1OKWPBAtIvtpdMpri+c a2rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=PpkVSY9G; 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 p40si15235823eda.334.2019.09.12.06.53.39; Thu, 12 Sep 2019 06:54:03 -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=PpkVSY9G; 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 S1732179AbfILNtm (ORCPT + 99 others); Thu, 12 Sep 2019 09:49:42 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:43914 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731209AbfILNtl (ORCPT ); Thu, 12 Sep 2019 09:49:41 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46Tg9v0znqz9tyn4; Thu, 12 Sep 2019 15:49:39 +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=PpkVSY9G; 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 Wf5kk3MVvHvj; Thu, 12 Sep 2019 15:49:39 +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 46Tg9t71PYz9tyn0; Thu, 12 Sep 2019 15:49:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1568296179; bh=d2QKZgIsoKBN+peITw+555bks/d8W8e+DijVX+dp8BY=; h=From:Subject:To:Cc:Date:From; b=PpkVSY9Gqb+knPHWbIUSQD/D+v2EuU1ilWPUrwsA+RereHq+2h/jUGl30Iy9zmRT4 ppHWVyM4vJ4rew4cLuCqRz9v4MUL537VXiPBCd74DegYXJqC0rJmI03VgEE/u/0N5F pW8LIAgMlAA0JP4k5ML0pTaonfnUW3WkZaGz3oSg= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 872498B93B; Thu, 12 Sep 2019 15:49:40 +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 4UtH4FD05xBO; Thu, 12 Sep 2019 15:49:40 +0200 (CEST) Received: from pc16032vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 525488B933; Thu, 12 Sep 2019 15:49:40 +0200 (CEST) Received: by pc16032vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 31A5D6B736; Thu, 12 Sep 2019 13:49:40 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH v1 0/4] powerpc: Add support for GENERIC_EARLY_IOREMAP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , npiggin@gmail.com, hch@infradead.org Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 12 Sep 2019 13:49:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for GENERIC_EARLY_IOREMAP on powerpc. It also adds a warning in the standard ioremap() when it's called before vmalloc is available in order to help locate those users. Next step will be to incrementaly migrate all early users of ioremap() to using early_ioremap() or other method. Once they are all converted we can drop all the logic behind ioremap_bot. Christophe Leroy (4): powerpc/fixmap: don't clear fixmap area in paging_init() powerpc/fixmap: Use __fix_to_virt() instead of fix_to_virt() powerpc: Add support for GENERIC_EARLY_IOREMAP powerpc/ioremap: warn on early use of ioremap() arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/Kbuild | 1 + arch/powerpc/include/asm/fixmap.h | 19 ++++++++++++++++++- arch/powerpc/kernel/setup_32.c | 3 +++ arch/powerpc/kernel/setup_64.c | 3 +++ arch/powerpc/mm/ioremap_32.c | 1 + arch/powerpc/mm/ioremap_64.c | 2 ++ arch/powerpc/mm/mem.c | 8 -------- 8 files changed, 29 insertions(+), 9 deletions(-) -- 2.13.3