Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp818313imp; Wed, 20 Feb 2019 09:31:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IYQjwGph/7MlLZJptk0ia9JQMmDj+35H+bjs8S3Ba8YjXamS/2MfiVNzYHfNREFi6hL34jo X-Received: by 2002:a17:902:7202:: with SMTP id ba2mr37226938plb.147.1550683888332; Wed, 20 Feb 2019 09:31:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550683888; cv=none; d=google.com; s=arc-20160816; b=cL9oFiGC9O9dXuNFmHBcE2VKw0IUxYG6WgUHIKaTH2fftLugLMVrILiyp92aQk03gq JV8sy695EIIj3np1IlvLEEX+fYf8htueePT9Sdm9ERkeJmrKUKgkHjtKCzlhRS3YubAF kmS2ASoHm0+7Hew5Gh1j54I3AG5rXMfpXlKP1ArFMIuUHj6eiQY2FYSeAXrkkZx59IJm RkeWo76o4BiKUKe4I7j+Tn6DikB19VCtLlpOLnvygXi5jtVkbbFfYEKVbqYUFOBQbJFM +FnAhfXFlq3fkwC0Pd+RQhaZlmZ5gpguAbR79IXeH0elUM6CNqUndnxo7a97ZvN9sid8 uHzw== 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=iljY86BFuTKNcJ3pkIrKPFpSMlm1mETpFf/uS5+PD+w=; b=e2U7VrdW2OY133rtvVzdW81z2L1oaYasD3WR1lXQQ46bHB6lMUQP8a9C5fmAdqCGsW nX1NU35Ak9MiARL6lI80X19blkLPootBom+8rub1hzTXjZhkjRD6OBmBAToIntRb31JX Ti8S7NHhR0bPNtWmDw6w2CB+22CJxIs+AusZhuozZ1qMR3/3pL6A1JRuNNA1tEteRJby 2TuJB7TbeRokgU+k+SqaCOqFDYn09Lf5G+VLRjo2H9j8MUU9+iP37rXAd8xQAqfeLcQr 75suZJU7KUSWTrqDXS/2QxNk/2X92avqc3Gn1hbzi9NYruNGD8qaWuuliG5yJpVIsJkf JJ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=Fdov9p9u; 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 97si19915979plm.3.2019.02.20.09.31.13; Wed, 20 Feb 2019 09:31:28 -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=Fdov9p9u; 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 S1727219AbfBTRaO (ORCPT + 99 others); Wed, 20 Feb 2019 12:30:14 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:45723 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbfBTR3O (ORCPT ); Wed, 20 Feb 2019 12:29:14 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 444PjL451xz9v0g8; Wed, 20 Feb 2019 18:29:10 +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=Fdov9p9u; 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 tsjR6lXNW2L5; Wed, 20 Feb 2019 18:29:10 +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 444PjL2x1Fz9v0g0; Wed, 20 Feb 2019 18:29:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1550683750; bh=iljY86BFuTKNcJ3pkIrKPFpSMlm1mETpFf/uS5+PD+w=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=Fdov9p9u8el3LkPNtVwvEong3Fab7QADNAEFRlJVS6LZhs14Tu0jYLVjZdwXuTEQk M5YRy0PDg7DoPhyjx/aiR+lHa3Ieog0ajtY8JdPyiBIj3W4NLhpkrKvdbGDDa8v+15 mEHlHlNb7XhmMceppxTeZx9K4zyiiJSrZ36LELG4= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 131B28B84F; Wed, 20 Feb 2019 18:29:12 +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 t467b22GxxRb; Wed, 20 Feb 2019 18:29:12 +0100 (CET) Received: from po16846vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EE4B18B84A; Wed, 20 Feb 2019 18:29:11 +0100 (CET) Received: by po16846vm.idsi0.si.c-s.fr (Postfix, from userid 0) id EA1656E85E; Wed, 20 Feb 2019 17:29:11 +0000 (UTC) Message-Id: <6ad76b17b3ab5e33162bfbdae35bcd30901910f7.1550648295.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH v3 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: Wed, 20 Feb 2019 17:29:11 +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 fd665c32a1f7..94bd7d013557 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@ -261,7 +261,10 @@ void __init mapin_ram(void) unsigned long top = base + reg->size; 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