Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp788595imp; Thu, 21 Feb 2019 11:11:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IZXMqQbueM8m4RrEexg7NJfORh8Lv4Ozf+luzxxuWZUQBS+R+QQOsUnGcCzYQUTG8N92G/P X-Received: by 2002:a17:902:9a04:: with SMTP id v4mr115887plp.34.1550776297629; Thu, 21 Feb 2019 11:11:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550776297; cv=none; d=google.com; s=arc-20160816; b=DIn2o9EcZtzs1+xOGcKToDpSuGVK2ZT8vSTcDm3SPb3l0BqaaAnG0A3CxRJOCy8HdC Gfb0vrxKiwA/7Au9x+AQIAHNdLkcZAyiKm0H5/BupETa3hjujVXicPvXQTm8wiDrQ0s/ yUVH9gt0b11mJrxi297DpWXj1zJ7JLhStEez2POWuielp3eZO13wK0ZsVA27HarmLyC9 8i/y8u0Yu64INPCfPvtnxF52wAIcXEw8aPY3Wb+d1jZ1gpLWxsrzNjwAsyeTYzXWcTLw LS7oTNuufCeNHIelUvWS8dUPiVnuDdRLiMoVIm/N/boVl+CtpDEC/SADr/CJGgnRTQJH 1+vA== 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=qk6ZCRpgX5r06gob5K89honwW6UBGj0f+E18dNkH6ok=; b=po2MHnxgbvCeJr8luXoQQNiQSLQtbvHVAO1Q+nB3AuNj0Ytf0ehpPn8K8M4gKEJePy 981G3hr27WF3AHE80dOW9VlzxuFy7OlgGakdzeGNe/5Sa6zhLkX7ePymn/004OrecbNN NmknBiMEPDuMbdUSRkydHqQ2czfBm2iCsE2YByWGFC4PQ79mO1v6IKJY+ea4Uc+rWi6x vhR84myOsu5jrG3VjZkzkR0krRsYq0mIxMmZeaKj6/lJ8rCttT6ikXEsvwpK0iLmqTOr iF123/tqOfelgjXkdejrUupksi9IWF010oCGgTD9SvVvs+Sbw03ZEg8YZz0BgtdX7lzu dkvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=BRGMRMi6; 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 p17si6251977pgg.259.2019.02.21.11.11.22; Thu, 21 Feb 2019 11:11:37 -0800 (PST) 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=BRGMRMi6; 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 S1727072AbfBUTJ7 (ORCPT + 99 others); Thu, 21 Feb 2019 14:09:59 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:25284 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbfBUTIn (ORCPT ); Thu, 21 Feb 2019 14:08:43 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4453sj6JRlz9v6l3; Thu, 21 Feb 2019 20:08:41 +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=BRGMRMi6; 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 I9qrvplztOEf; Thu, 21 Feb 2019 20:08:41 +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 4453sj58Mfz9v6jt; Thu, 21 Feb 2019 20:08:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1550776121; bh=qk6ZCRpgX5r06gob5K89honwW6UBGj0f+E18dNkH6ok=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=BRGMRMi6YFMegVPcOqphbBJdilQR/TJ5/mvm3s0Hg4UPtmJf1GQh6a3ZCx4rTfqPN RtvOZYTpIYRo+Xb6veRCEM1WNL0s+ZTYADmqG0lLESum9nhTbKGE+eRXnCYffa2lKA NUKaHYVenhvsz8W1dexsy50Uqm7aQVW1YRecKbRA= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B525F8B86A; Thu, 21 Feb 2019 20:08:41 +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 MS0uiyf5W3s9; Thu, 21 Feb 2019 20:08:41 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8C7228B852; Thu, 21 Feb 2019 20:08:41 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 6ABD46EF61; Thu, 21 Feb 2019 19:08:41 +0000 (UTC) Message-Id: <8187e3e7b08436528d850176deb611609fcae57d.1550775950.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v5 05/16] powerpc/32: always populate page tables for Abatron BDI. To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , j.neuschaefer@gmx.net Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 21 Feb 2019 19:08:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_BDI_SWITCH is set, the page tables have to be populated allthough large TLBs are used, because the BDI switch knows nothing about those large TLBs which are handled directly in TLB miss logic. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/pgtable_32.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index c4b0eb51f6d8..a000768a5cc9 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@ -263,7 +263,10 @@ void __init mapin_ram(void) if (base >= top) continue; base = mmu_mapin_ram(base, top); - __mapin_ram_chunk(base, top); + if (IS_ENABLED(CONFIG_BDI_SWITCH)) + __mapin_ram_chunk(reg->base, top); + else + __mapin_ram_chunk(base, top); } } -- 2.13.3