From patchwork Tue Jun 6 11:08:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xie Yisheng X-Patchwork-Id: 9768571 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 9556F6035D for ; Tue, 6 Jun 2017 11:09:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8800A26247 for ; Tue, 6 Jun 2017 11:09:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C98126E39; Tue, 6 Jun 2017 11:09:41 +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 E9D2526247 for ; Tue, 6 Jun 2017 11:09:40 +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:Date:Message-ID:To:Subject :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=PM2X98lT4DouqSsPqN0e0Ms2CZEbdVrdw+/TmkNmiQY=; b=PIFRvPvXFuTjaa VbgJueA1CVvdJdKIJqzgrrUhxln80Srp3D886sz0hz85N+Zof5DmFYGIMuZP6BIZNQnK0myfvp4Zm mjExTLzMfmiUR6DYyys8054jvVQkpSh/LXO3WYSTiqSQbtyIJPipwVBCnStyMhhE+nIkgJSATNd8d RXGFUfn3YKSW3Ok+IW3t3gMyDOKXTe353AYmvtOL+QMwVAtrIaMRTM/Xrx9eMi/wGiFM5T7jQhlic SSw9tjMMmn3kGtIFnJYZuNM9t6ZaTQp0PT9Ts8QnPggDj3KjegoiHrJIkJ1+6ge2Vlr4+iGSoU7Y6 kw8FHL6s1P7l9OTiyt4w==; 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 1dICMl-0007sN-Nt; Tue, 06 Jun 2017 11:09:39 +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 1dICMi-0007mq-Ni for linux-arm-kernel@lists.infradead.org; Tue, 06 Jun 2017 11:09:38 +0000 Received: from 172.30.72.56 (EHLO dggeml406-hub.china.huawei.com) ([172.30.72.56]) by dggrg01-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id APV63924; Tue, 06 Jun 2017 19:08:09 +0800 (CST) Received: from [127.0.0.1] (10.177.29.40) by dggeml406-hub.china.huawei.com (10.3.17.50) with Microsoft SMTP Server id 14.3.301.0; Tue, 6 Jun 2017 19:08:00 +0800 From: Yisheng Xie Subject: [BUG] boot fail with ARM_LPAE and VMSPLIT_3G_OPT To: , , Al Viro Message-ID: Date: Tue, 6 Jun 2017 19:08:00 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 X-Originating-IP: [10.177.29.40] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.59368D1D.00A7, 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: ef1588f28d0362c730d4739028089aa7 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170606_040937_381898_22689A60 X-CRM114-Status: UNSURE ( 7.02 ) 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: Yisheng Xie , wangfangpeng1@huawei.com, Linux Kernel Mailing List , linux-arm-kernel@lists.infradead.org, Hanjun Guo 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 Hi all, I find when both enable CONFIG_ARM_LPAE=y and CONFIG_VMSPLIT_3G_OPT=y, which mean use PAGE_OFFSET=0xB0000000 with ARM_LPE, the kernel will boot fail. it stop after uncompressed: -------- Starting kernel ... Uart base = 0x20001000 watchdog reg = 0x20013000 dtb addr = 0x80840308 Uncompressing Linux... done, booting the kernel. -------- Meanwhile, I also tried to use CONFIG_VMSPLIT_2G/CONFIG_VMSPLIT_1G with ARM_LPAE, it can boot successfully. Is that a limitation of ARM_LPAE, which I not do get any info about this from spec? If it do have the limitation, then we should be: -------- Any comment is more than welcome! Thanks Yisheng Xie diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 4c1a35f..c0fcab6 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1416,6 +1416,7 @@ choice config VMSPLIT_3G bool "3G/1G user/kernel split" config VMSPLIT_3G_OPT + depends on !ARM_LPAE bool "3G/1G user/kernel split (for full 1G low memory)" config VMSPLIT_2G bool "2G/2G user/kernel split"