Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp2837399pjo; Mon, 16 Mar 2020 05:38:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtelNdAnFksRkVjHPjFKTJY606Z6/SA2aPsrHva4Xf5ofEZh8fKk1CqT+1mkiuwoPVxcetI X-Received: by 2002:aca:4d86:: with SMTP id a128mr17389409oib.96.1584362331006; Mon, 16 Mar 2020 05:38:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584362330; cv=none; d=google.com; s=arc-20160816; b=0ACCgInRC0rSNQULYXfbdUXEYgUeVDDaPTBkZSS2/sh9Rcg4b8nkYV4uFr+0WXQJGT 72ohGnaPkMeHMKLbeLcZtqc0YhzYtrECyC436nfv+JSP/CvI/r3rwRmcn3a715AuL07B 3t6VMss9FIsRo7E8AL0GaQftX9Ru/b06wsPZHwYCVGc9cXa7ezhU7Tyqe0amrfKAGL83 kNhnpXJ5GyhVAZi6eqfMZ0f9kTSmmGBhnPRt2GGjpCWbYpCESGsOgTAxRklsVOvUlH39 iqRIoPXzZpL51lxrm4O4uW3pD3nJDY1JK9nJzTNsguZtRB7LGnL8eK28tvhn0APhnbMY rQeQ== 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:subject:from:references :in-reply-to:message-id:dkim-signature; bh=x26mXVn6Nab3fc/LmUcn855fqhkA/0J1NfUOpIoWioU=; b=eiHkrHUG2LR+ipNfGYk8+PROwHMhhc2E3VkCA0+cSC3T8El7q+x5eJL2DMSXrUkzDa SseZu+foDPui2MbmbI4ywvS/wdyBGs0dM8tPsTi7DmSSAGc9a1JOFkwAMlR/biNl+93S n5LCj9//8AsBX705Bh/0z1+Gx6ebcaUJTFqVaHvTZm7VBg8MEXvL3+VtZ+p6LURSldje pqNhBNshBav9jewnGCbk6PeeyKXRVcgXcORPJlsx85aoiSRtYyk4VSug8ZXeI4ojStGe uJxMKyxO6RzQ9epPUIwtaX6h7e4nkUiP/3kQbo/lWVz1utNueef2HEEazUI5I1hFJZxX PW1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=l0bR5UYC; 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 h192si8851155oib.166.2020.03.16.05.38.38; Mon, 16 Mar 2020 05:38:50 -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=l0bR5UYC; 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 S1731339AbgCPMge (ORCPT + 99 others); Mon, 16 Mar 2020 08:36:34 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:5721 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731295AbgCPMg1 (ORCPT ); Mon, 16 Mar 2020 08:36:27 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48gwlT4YkRz9v02q; Mon, 16 Mar 2020 13:36:21 +0100 (CET) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=l0bR5UYC; 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 Ty--1Qk6W4L5; Mon, 16 Mar 2020 13:36:21 +0100 (CET) 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 48gwlT3WhFz9v02f; Mon, 16 Mar 2020 13:36:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1584362181; bh=x26mXVn6Nab3fc/LmUcn855fqhkA/0J1NfUOpIoWioU=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=l0bR5UYCn1p/5G7TSU7TgMKB95AaWdzZo20Kk4u640+p1at+AErnr3qZKdJYUNmxv 3JY9CnHgan4wWUf/JQx0/HlLau1g4YTH78zW+3/WZjo1bdI0DEmzZFOpM6c2N/xnzY BdMXlWLw3yr+Ym1hCkK+Gfp/yE9TTz5BcSruDaHE= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 749CA8B7D0; Mon, 16 Mar 2020 13:36:26 +0100 (CET) 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 pbKgllfO0WA4; Mon, 16 Mar 2020 13:36:26 +0100 (CET) Received: from pc16570vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.230.100]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 583EE8B7CB; Mon, 16 Mar 2020 13:36:26 +0100 (CET) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 4B86565595; Mon, 16 Mar 2020 12:36:26 +0000 (UTC) Message-Id: <26f9e79d95a1ad94dd05e1e782f721f5d5d2664d.1584360344.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v1 40/46] powerpc/8xx: Map IMMR with a huge page To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Mon, 16 Mar 2020 12:36:26 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Map the IMMR area with a single 512k huge page. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/nohash/8xx.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/mm/nohash/8xx.c b/arch/powerpc/mm/nohash/8xx.c index 81ddcd9554e1..57e0c7496a6a 100644 --- a/arch/powerpc/mm/nohash/8xx.c +++ b/arch/powerpc/mm/nohash/8xx.c @@ -117,17 +117,13 @@ static bool immr_is_mapped __initdata; void __init mmu_mapin_immr(void) { - unsigned long p = PHYS_IMMR_BASE; - unsigned long v = VIRT_IMMR_BASE; - int offset; - if (immr_is_mapped) return; immr_is_mapped = true; - for (offset = 0; offset < IMMR_SIZE; offset += PAGE_SIZE) - map_kernel_page(v + offset, p + offset, PAGE_KERNEL_NCG); + __early_map_kernel_hugepage(VIRT_IMMR_BASE, PHYS_IMMR_BASE, + PAGE_KERNEL_NCG, MMU_PAGE_512K, true); } unsigned long __init mmu_mapin_ram(unsigned long base, unsigned long top) -- 2.25.0