From: Flavio Leitner <fbl@redhat.com>
To: Dave Young <dyoung@redhat.com>
Cc: Dave Young <hidave.darkstar@gmail.com>,
Ingo Molnar <mingo@kernel.org>, Yinghai Lu <yinghai@kernel.org>,
Dan Carpenter <dan.carpenter@oracle.com>,
Cong Wang <xiyou.wangcong@gmail.com>,
lkml <linux-kernel@vger.kernel.org>, Ingo Molnar <mingo@elte.hu>,
Tejun Heo <tj@kernel.org>,
ianfang.cn@gmail.com, Andrew Morton <akpm@linux-foundation.org>,
Vivek Goyal <vgoyal@redhat.com>
Subject: Re: kexec/kdump kernel fails to start
Date: Thu, 18 Oct 2012 13:27:46 -0300 [thread overview]
Message-ID: <20121018132746.66a6bf1d@obelix.rh> (raw)
In-Reply-To: <507FA2B3.3080403@redhat.com>
On Thu, 18 Oct 2012 14:33:23 +0800
Dave Young <dyoung@redhat.com> wrote:
[...]
> Just see Yinghai's coments, later init_memory_mapping cleanup
> will also address the 4k pages in first 2/4M, so revert them should be better.
> https://lkml.org/lkml/2012/9/4/533
>
> Here is a patch for the reverting:
> ---
> x86 mm: Revert find_early_table_space fix
>
> 722bc6b16771ed80871e1fd81c86d3627dda2ac8 Try to address the issue that the
> first 2/4M should use 4k pages if PSE enabled. but extra counts should only
> valid for x86_32. This commit cause kdump regression, kdump kernel hangs happens
> with it.
>
> As Yinghai Lu said they should be reverted. see below post:
> https://lkml.org/lkml/2012/9/4/533
>
> As there's a later fix to above fix which is bd2753b2dda7bb43c7468826de75f49c6a7e8965
> So we need revert both of these two commits.
>
> Tested kdump on physical and virutual machines.
>
> Reverted commits:
> commit 722bc6b16771ed80871e1fd81c86d3627dda2ac8
> Author: WANG Cong <xiyou.wangcong@gmail.com>
> Date: Mon Mar 5 15:05:13 2012 -0800
>
> x86/mm: Fix the size calculation of mapping tables
>
> For machines that enable PSE, the first 2/4M memory region still uses
> 4K pages, so needs more PTEs in this case, but
> find_early_table_space() doesn't count this.
>
> This patch fixes it.
>
> The bug was found via code review, no misbehavior of the kernel
> was observed.
>
> Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
> Cc: Yinghai Lu <yinghai@kernel.org>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: <ianfang.cn@gmail.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> Link: http://lkml.kernel.org/n/tip-kq6a00qe33h7c7ais2xsywnh@git.kernel.org
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
>
> commit bd2753b2dda7bb43c7468826de75f49c6a7e8965
> Author: Yinghai Lu <yinghai@kernel.org>
> Date: Wed Jun 6 10:55:40 2012 -0700
>
> x86/mm: Only add extra pages count for the first memory range during pre-allocatio
>
> Robin found this regression:
>
> | I just tried to boot an 8TB system. It fails very early in boot with:
> | Kernel panic - not syncing: Cannot find space for the kernel page tables
>
> git bisect commit 722bc6b16771ed80871e1fd81c86d3627dda2ac8.
>
> A git revert of that commit does boot past that point on the 8TB
> configuration.
>
> That commit will add up extra pages for all memory range even
> above 4g.
>
> Try to limit that extra page count adding to first entry only.
>
> Bisected-by: Robin Holt <holt@sgi.com>
> Tested-by: Robin Holt <holt@sgi.com>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> Cc: WANG Cong <xiyou.wangcong@gmail.com>
> Cc: Linus Torvalds <torvalds@linux-foundation.org>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Link: http://lkml.kernel.org/r/CAE9FiQUj3wyzQxtq9yzBNc9u220p8JZ1FYHG7t%3DMOzJ%3D9B
> Signed-off-by: Ingo Molnar <mingo@kernel.org>
>
>
> Signed-off-by: Dave Young <dyoung@redhat.com>
> ---
> arch/x86/mm/init.c | 22 +++++++++-------------
> 1 file changed, 9 insertions(+), 13 deletions(-)
The patch looks good.
I reproduced the issue with last upstream
commit 43c422eda99b894f18d1cca17bcd2401efaf7bd0
and confirmed that it does work with the patch applied.
thanks a lot!
Acked-by: Flavio Leitner <fbl@redhat.com>
Tested-by: Flavio Leitner <fbl@redhat.com>
fbl
prev parent reply other threads:[~2012-10-18 16:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-04 17:32 Flavio Leitner
2012-09-04 19:02 ` Yinghai Lu
2012-09-04 19:17 ` Flavio Leitner
2012-09-04 19:20 ` Yinghai Lu
2012-09-04 20:00 ` Flavio Leitner
2012-09-04 20:26 ` Flavio Leitner
2012-09-04 20:45 ` Yinghai Lu
2012-09-04 21:37 ` Flavio Leitner
2012-09-04 22:25 ` Yinghai Lu
2012-09-04 22:40 ` Flavio Leitner
2012-09-05 0:01 ` Flavio Leitner
2012-09-05 1:15 ` Yinghai Lu
2012-09-05 13:46 ` Flavio Leitner
2012-09-05 15:34 ` Cong Wang
2012-09-23 20:27 ` Dan Carpenter
2012-09-23 20:52 ` Yinghai Lu
2012-09-29 7:13 ` Ingo Molnar
2012-10-18 2:16 ` Dave Young
2012-10-18 6:33 ` Dave Young
2012-10-18 13:57 ` Cong Wang
2012-10-18 16:27 ` Flavio Leitner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121018132746.66a6bf1d@obelix.rh \
--to=fbl@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=dan.carpenter@oracle.com \
--cc=dyoung@redhat.com \
--cc=hidave.darkstar@gmail.com \
--cc=ianfang.cn@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@kernel.org \
--cc=tj@kernel.org \
--cc=vgoyal@redhat.com \
--cc=xiyou.wangcong@gmail.com \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®