From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from terminus.zytor.com ([2001:1868:205::10] helo=mail.zytor.com) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U00op-00029A-4z for kexec@lists.infradead.org; Tue, 29 Jan 2013 02:21:03 +0000 Message-ID: <51073207.7040607@zytor.com> Date: Mon, 28 Jan 2013 18:20:55 -0800 From: "H. Peter Anvin" MIME-Version: 1.0 Subject: Re: [PATCH 2/2] x86 e820: Introduce memmap=resetusablemap for kdump usage References: <1358868049-19884-1-git-send-email-trenn@suse.de> <6950516.1uefDuthAH@hammer82.arch.suse.de> <510721C6.6080705@zytor.com> <51072FEF.50000@zytor.com> In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Yinghai Lu Cc: x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, horms@verge.net.au, Thomas Renninger , vgoyal@redhat.com On 01/28/2013 06:19 PM, Yinghai Lu wrote: > On Mon, Jan 28, 2013 at 6:11 PM, H. Peter Anvin wrote: >> On 01/28/2013 06:10 PM, Yinghai Lu wrote: >>> >>> >>> kexec-tools will change that to E820_KDUMP_RESERVED (or other good name). >>> >>> We only need to update kernel to get old max_pfn by >>> checking E820_KDUMP_RESERVED. >>> >> >> OK, I have asked this before, but I still have not gotten any acceptable >> answer: >> >> Why do we still have max_*_pfn at all? Shouldn't it all be based on >> memblocks by now? > > saved_max_pfn is used for kdump: > drivers/char/mem.c::read_oldmem will stop there. > ... > while (count) { > pfn = *ppos / PAGE_SIZE; > if (pfn > saved_max_pfn) > return read; > ... That is a non-answer. Why do we have *any* instances of max_pfn or max_low_pfn in the kernel anymore? -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf. _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec