Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp240615imp; Thu, 21 Feb 2019 00:05:42 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib2EDZM/dkBIiEZ1f1ZtJYSzjq0Zw1IXxlGKXpqHyWCGMN86DEc6jV3ELPRknx1zP5EI29C X-Received: by 2002:a65:4c01:: with SMTP id u1mr33646830pgq.116.1550736342897; Thu, 21 Feb 2019 00:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550736342; cv=none; d=google.com; s=arc-20160816; b=nJxSBi59jxvYwxqi34JDNRTDESlfWJLrhos0a1+MSqqQYPnQrbuZ0P2HQBbSa8n1Kz 1NM3vlf3TJuve1DMw4bhgtyRWhugqPSvRr47/XMC3zHqsjC4OuKLUt4K8HVub4fwpf2+ ALf2OIUdLMEvgzq3RdQgpY+HsaBKuNVtpCIS2rwjKrrz0DF+mdUsUPCmbl7E7M7n98PR 11d5otnWvUDaQIapvb/CG+X49YwExGgQjMktevAskdJUMo/+/PRGAYRrE2YqLGM/1Izb VXyge6OlljsNbmpAgHSAQmtABVKJs9/SVJEKIq8lCsW6vKGMRnXUZQIAb43XJ+0i16Bk AUEA== 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=XARbuoOZsQOOMP3+G0dnQSymx3zZgYl8INAv3YWUtSE=; b=cQN7niEEhv55LG598pZ5EtgMvxAYGDC+rkT2DAyLnHzp5JP00Wc5GDY0rVagGwkUB1 jhyLVUOKibA+7cuKxI6grJTFn4SYf2Tqa4pkhvIPVHSzUJ3j4T7tcuRC2NLLSRhietBl QnQ8lFf1seAV3VJXEV18i6dzSPzJoWYCwaO/zSl/igxUlfB6W8mCoXDjlbWRc4HC64g6 OEbKnaPBZRpeuplVK8mGqmdnAN9k7xvFcgW5vMmxqne8tgyfT5CnYu2lw3NNdspD0OZP PUPcd3JmwztkRNijaEm3F1G9yK1YCuoBCr5WXmXwjk8ukiLCFZzgYKtsFxei+0C4dDM/ M0Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b="Koin/cAn"; 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 i10si21796721plb.188.2019.02.21.00.05.27; Thu, 21 Feb 2019 00:05:42 -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="Koin/cAn"; 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 S1727375AbfBUIE5 (ORCPT + 99 others); Thu, 21 Feb 2019 03:04:57 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:1753 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727324AbfBUIEz (ORCPT ); Thu, 21 Feb 2019 03:04:55 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 444n7n1Mmcz9vJg7; Thu, 21 Feb 2019 09:04:53 +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=Koin/cAn; 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 OPKERjX1cLRU; Thu, 21 Feb 2019 09:04:53 +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 444n7m6M4Rz9vJg1; Thu, 21 Feb 2019 09:04:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1550736292; bh=XARbuoOZsQOOMP3+G0dnQSymx3zZgYl8INAv3YWUtSE=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=Koin/cAnfH0T+NI7NebMr/JJIpOiccS2tcsDW/urGmLhKgT3ePgjL2djMW3W+12tW 3Sw16d4knfOmV6yrWefj31ElIowVjariuUMfAqKxiO94L6hMyENGOXJbMtdmC/heNb fmuk42kVnR5FMaFkYBcrBFUIrjSCU//LGE4L/hc8= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D7B978B78F; Thu, 21 Feb 2019 09:04:53 +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 CYMm2gSGHc1D; Thu, 21 Feb 2019 09:04:53 +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 ACEC68B75B; Thu, 21 Feb 2019 09:04:53 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 8B9C96E866; Thu, 21 Feb 2019 08:04:53 +0000 (UTC) Message-Id: <133a78db72f9a053c249574390491620e974a826.1550692943.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v4 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 08:04:53 +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 2bf9bf8867d4..f54922f0d792 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