From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752145AbdCCPwo (ORCPT ); Fri, 3 Mar 2017 10:52:44 -0500 Received: from mx2.suse.de ([195.135.220.15]:37208 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751821AbdCCPwn (ORCPT ); Fri, 3 Mar 2017 10:52:43 -0500 Date: Fri, 3 Mar 2017 13:16:14 +0100 From: Borislav Petkov To: Baoquan He Cc: tglx@linutronix.de, hpa@zytor.com, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, keescook@chromium.org, yinghai@kernel.org, anderson@redhat.com, luto@kernel.org, thgarnie@google.com, kuleshovmail@gmail.com Subject: Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE Message-ID: <20170303121614.7cgyb6gfhtgmcide@pd.tnic> References: <1486040077-3719-1-git-send-email-bhe@redhat.com> <1486040077-3719-2-git-send-email-bhe@redhat.com> <20170214173217.3qtf6fhiklhgsmi5@pd.tnic> <20170226040908.GB14810@x1> <20170303114349.krl6s5qfjmwz3mrg@pd.tnic> <20170303120616.GE18391@x1> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170303120616.GE18391@x1> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 03, 2017 at 08:06:16PM +0800, Baoquan He wrote: > OK, I am trying to make things clearer, seems I failed. I thought kernel > iamge size is only allowed to be 512M at most, but can be mapped into 1G > region. It doesn't look like it. But we could be missing something. You could try some git archeology to find out why the 512M limit. It could be "no reason", it could be remnant from 32-bit, it could be anything... There's the full git history here too: https://git.kernel.org/cgit/linux/kernel/git/history/history.git in case it helps. > It's fine to me, thing can be solved anyway. Will repost with > KERNEL_IMAGE_SIZE by default 1G. I think you should slow down first and try to find out why the 512 default. Then we can talk about changes. -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --