public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Horms <horms@verge.net.au>
To: linux-ia64@vger.kernel.org
Subject: Re: Zero size /proc/vmcore on ia64
Date: Thu, 08 Feb 2007 03:06:53 +0000	[thread overview]
Message-ID: <20070208030651.GA29670@verge.net.au> (raw)
In-Reply-To: <20070205015901.GA31446@verge.net.au>

On Thu, Feb 08, 2007 at 10:07:48AM +0800, Zou, Nanhai wrote:
> 
> Hi Vivek,
> 	I have a question about why saved_max_pfn check in vmcore.c is needed.
> Here is a typical memory layout of IA64 machine.
> 
> ----- ==>max_pfn for first kernel
> 	 the first kernel
> ----- ==>max_pfn for crash dump kernel
> the crash dump kernel
> -----	
> the first kernel
> ----- 
> 
> When crash dump kernel tries to access memory of first kernel above
> saved_max_pfn of him, read_from_oldmem will refuse that read.
> 
> That result an empty vmcore file. change saved_max_pfn to unsigned
> long(-1) will fix this issue.
> 
> However since memory ranges in vmcore is pre defined from /proc/iomem
> of first kernel, why do we still need to add an extra check in
> vmcore.c

Hi Nan-hai,

sorry that I did not get back to you about the information you requested
about my system, I guess you have managed to reproduce the problem none
the less.

I can confirm that removing the max_pfn check in vmcore.c does
indeed give /proc/vmcore a non-zero (and presumably correct) size.

I wonder if the problem is that saved_max_pfn is being incorectly
calculated on ia64. That it is being set to the max_pfn of the
crash kernel (i.e. in the crashkernel=X@Y area), rather than
the max_pfn of the physical memory of the system, which seems
more sensible as the purpose of vmcore is to read memory
outside of the crashkernel=X@Y area.

You may be right that we can just remove the check all together,
though perhaps it is there for the case where the range information
in the vmcode are corrupted. Then again, should we care about this?

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/


  parent reply	other threads:[~2007-02-08  3:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-05  1:59 Zero size /proc/vmcore on ia64 Horms
2007-02-08  2:07 ` Zou, Nanhai
2007-02-08  3:06 ` Horms [this message]
2007-02-08  4:21 ` Zou Nan hai
2007-02-08  5:46 ` Vivek Goyal
2007-02-08  7:36 ` Horms
2007-02-08  7:52 ` Zou, Nanhai
2007-02-08 13:07 ` Horms
2007-02-08 23:45 ` Zou, Nanhai
2007-02-13 17:25 ` Bernhard Walle
2007-02-14  8:27 ` Magnus Damm
2007-02-14  9:57 ` Zou, Nanhai
2007-02-14 11:46 ` Magnus Damm
2007-02-15  2:06 ` Zou, Nanhai
2007-02-15  2:17 ` Zou, Nanhai
2007-02-15  3:46 ` Horms

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=20070208030651.GA29670@verge.net.au \
    --to=horms@verge.net.au \
    --cc=linux-ia64@vger.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