From patchwork Sat Oct 8 14:16:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Helge Deller X-Patchwork-Id: 9368251 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB5D160752 for ; Sat, 8 Oct 2016 14:23:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDD80268AE for ; Sat, 8 Oct 2016 14:23:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1D5429447; Sat, 8 Oct 2016 14:23:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3249B268AE for ; Sat, 8 Oct 2016 14:23:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751072AbcJHOXj (ORCPT ); Sat, 8 Oct 2016 10:23:39 -0400 Received: from mout.gmx.net ([212.227.17.22]:65515 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbcJHOXi (ORCPT ); Sat, 8 Oct 2016 10:23:38 -0400 Received: from p100.box ([92.203.45.129]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MAloF-1bieli22g7-00BxYX; Sat, 08 Oct 2016 16:16:53 +0200 Date: Sat, 8 Oct 2016 16:16:49 +0200 From: Helge Deller To: linux-parisc@vger.kernel.org, James Bottomley , John David Anglin Subject: [PATCH] parisc: Increase default initial kernel mapping to 32 MB Message-ID: <20161008141649.GA31592@p100.box> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:jjJDVOTI1E3bMayYrtkqcL1zBPFYYEKuggEcieip1vvi9s7Uj5F MjjYsNwFkl/4Gz1/tBFHQcCXxkLDSeMJTHTUgWijAl+oldzQHQ/eWTM/tlNWx7OYpIsSnqQ sW055/8z24mzbdh1vBjQm2AuRC/rOw7lmcVtgYXP2EPO/XzV4/S9TM8+cPv0Qoni1sIPaAr oYV/+9FOdfUfKIBNSNuOQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:Vhv4ZmYtemI=:Hqw+Ff14ecdP/BY04x6MAM rdVwTi3kBjkU0dFXnQjgniMaxiWkTDRKTEVY+od2ZcB2jNm1ew+ppYiRDlCzI9FeT70FSe8wb 02seQjLs4OQl6A57s/KMMOKxcZi6KsB76fRdSyVZCwP1RPK4yvR3liNvB2qXfEdGMDrRczv0V nuGsNndaH2s/1RAiCF0rqcT7bwneRxLdAyC5E4AhKb9tUAyFESyff5u8aKbzBsXYneR0Q74+B aFEyO5qw0ZijNoKqL0HF1yMSiTEAr/D3ST41PIoN3LZwtKyDvZrdFYq+P1zcm8ns6KnhWT9hE n5CyKWLxiFxFuRG6Lma4gxfgN6UPwEa5AcVV8KrK/ExQGylMh7T2jq0HH1G4NafV20riOFaW2 i1eoS1lQqmmJGaVWZ0G9sQWbxB5e2Ups3YfxQD1/UpH03auvAqc49JrBM3NcujX59pBOFske9 48U/v9/NCZtwSLa7dfmvD/hIScQ9fWf8m+yrm9xj005echcg0iilx3itWIsSfqY+Tx4hxnPhl 2j85eRUYj9KZTgNMk2LCdEXkkhE4KGBpdSo7sNaaqahoBtJm7D2M9Nf3hATDET4CkiJ3p6xBR ZUSerVjt87cFN/VrRWvdyhkY0pGcr3uPVI/7o9Lk/++fm+GPoFhVUihuYIzy+5WLHXzxNyCdx N54yrEGzTupSUdgrnjNfKhoIyvre5ORvZncaH6t5JVzSYprJikaxXeP1lS4zn8+yVGApR5bNH QRvdIzuKsbjCytcftHIZSqEhD71p8tSTLesDIlSIKPfftMr/gWp1adlh61w= Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For 32-bit kernels which include multiple modules built-in 16 MB initial kernel mapping may get too small. To avoid boot problems increase the kernel mapping to 32 MB for all 32- and 64-bit kernel configs. Cc: stable@vger.kernel.org # 4.4+ Signed-off-by: Helge Deller --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h index e44bdb9..ef32e28 100644 --- a/arch/parisc/include/asm/pgtable.h +++ b/arch/parisc/include/asm/pgtable.h @@ -83,11 +83,7 @@ static inline void purge_tlb_entries(struct mm_struct *mm, unsigned long addr) printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, (unsigned long)pgd_val(e)) /* This is the size of the initially mapped kernel memory */ -#if defined(CONFIG_64BIT) || defined(CONFIG_SMP) #define KERNEL_INITIAL_ORDER 25 /* 1<<25 = 32MB */ -#else -#define KERNEL_INITIAL_ORDER 24 /* 1<<24 = 16MB */ -#endif #define KERNEL_INITIAL_SIZE (1 << KERNEL_INITIAL_ORDER) #if CONFIG_PGTABLE_LEVELS == 3