From patchwork Wed Jun 7 08:59:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xie Yisheng X-Patchwork-Id: 9770981 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 20FAC6034B for ; Wed, 7 Jun 2017 09:05:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C03D2097A for ; Wed, 7 Jun 2017 09:05:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0064B23794; Wed, 7 Jun 2017 09:05: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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6B8CE2097A for ; Wed, 7 Jun 2017 09:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vzVtW+CHd4JyM+Idl3VLMfCf5fbMdmYF77jrxPaRV6k=; b=BVgGJI0y43Sp6x Mco6NLNnnyrsjO2yhIopkPC/uLCYRYILumJMpqhsmlblcEmzCCvW2asECj+9ODoKt9gQvdnhZxFtJ NW6ftRnwR6Hb//ED35CaL3bL7xCv0nPVKc//GmoroZt9x1BY2SwLbkC8fNF5iIJewqbSDWR8x8RSh biQdnDi8ri3mDxYbkHT3h31wcOpO09cdEhGWY2Yt63BarTFfqu5djypk7T1BOoT+WweU5zPI18Yuo mN5WrOQmzxuo+0fodKBe9NKm001z3rAPCoI1M8a0kybuduke0oKjwBUpCrOZQDTaLGh9iHx3oAi3E mbG5R4xVUS6222RV57VA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dIWuE-0001Dp-UB; Wed, 07 Jun 2017 09:05:34 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIWuB-0000j9-HX for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2017 09:05:33 +0000 Received: from 172.30.72.54 (EHLO dggeml405-hub.china.huawei.com) ([172.30.72.54]) by dggrg01-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id APX06075; Wed, 07 Jun 2017 17:05:00 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by dggeml405-hub.china.huawei.com (10.3.17.49) with Microsoft SMTP Server id 14.3.301.0; Wed, 7 Jun 2017 17:04:48 +0800 From: Yisheng Xie To: Subject: [PATCH] Revert "ARM: 8433/1: add a VMSPLIT_3G_OPT config option" Date: Wed, 7 Jun 2017 16:59:32 +0800 Message-ID: <1496825972-26829-1-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.5937C1BF.0017, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 53a979f84a3cb19d735cf08768a0b746 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170607_020531_976986_5F5DA248 X-CRM114-Status: UNSURE ( 7.46 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nico@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org, viro@zeniv.linux.org.uk, wangfangpeng1@huawei.com, guohanjun@huawei.com, matthias.bgg@gmail.com, rmk+kernel@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This reverts commit 63ce446c9b5787a94ed875bab20772e1a2b3092f. When enable VMSPLIT_3G_OPT, the PAGE_OFFSET will be 0xB0000000, and then we will get the value "1" for TTBR1_SIZE(T1SZ) as the following MACRO: #define TTBR1_SIZE (((PAGE_OFFSET >> 30) - 1) << 16) which means TTBR1's range will be 0x80000000 to 0xffffffff, and it is waster of VA [0x80000000, 0xB0000000). So it is better to use VMSPLIT_2G instead, to achieve the goal "allows for 1GB systems to have their RAM entirely mapped as low memory". Meanwhile, It will trigger a bug of boot fail with CONFIG_ARM_LPAE=y, which I reported: https://patchwork.kernel.org/patch/9768573/ For ARM_LPAE only support 3:1, 2:2, 1:3 split of TTBR1, which mention in: http://elinux.org/images/6/6a/Elce11_marinas.pdf - p16 Signed-off-by: Yisheng Xie --- arch/arm/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4c1a35f..5961835a 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1415,8 +1415,6 @@ choice config VMSPLIT_3G bool "3G/1G user/kernel split" - config VMSPLIT_3G_OPT - bool "3G/1G user/kernel split (for full 1G low memory)" config VMSPLIT_2G bool "2G/2G user/kernel split" config VMSPLIT_1G @@ -1428,7 +1426,6 @@ config PAGE_OFFSET default PHYS_OFFSET if !MMU default 0x40000000 if VMSPLIT_1G default 0x80000000 if VMSPLIT_2G - default 0xB0000000 if VMSPLIT_3G_OPT default 0xC0000000 config NR_CPUS