From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756395AbcIUUWg (ORCPT ); Wed, 21 Sep 2016 16:22:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51672 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750822AbcIUUWe (ORCPT ); Wed, 21 Sep 2016 16:22:34 -0400 From: Jeff Moyer To: Dan Williams Cc: x86@kernel.org, Boaz Harrosh , linux-nvdimm@ml01.01.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Ingo Molnar , Thomas Gleixner , Zhang Yi , Andrew Morton , Ross Zwisler , Christoph Hellwig Subject: Re: [PATCH] x86: fix kdump, cleanup aborted E820_PRAM max_pfn manipulation References: <147448744538.34910.11287693517367139607.stgit@dwillia2-desk3.amr.corp.intel.com> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 X-PCLoadLetter: What the f**k does that mean? Date: Wed, 21 Sep 2016 16:22:31 -0400 In-Reply-To: <147448744538.34910.11287693517367139607.stgit@dwillia2-desk3.amr.corp.intel.com> (Dan Williams's message of "Wed, 21 Sep 2016 12:50:45 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 21 Sep 2016 20:22:34 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dan Williams writes: > In commit ec776ef6bbe1 "x86/mm: Add support for the non-standard > protected e820 type" Christoph references the original patch I wrote > implementing pmem support. The intent of the 'max_pfn' changes in that > commit were to enable persistent memory ranges to be covered by the > struct page memmap by default. However, that approach was abandoned > when Christoph ported the patches [1], and that functionality has since > been replaced by devm_memremap_pages(). > > In the meantime, this max_pfn manipulation is confusing kdump [2] that > assumes that everything covered by the max_pfn is "System RAM". This > results in kdump hanging or crashing. That was my assumption, I'm not certain that the kdump code is assuming the pmem region is usable as RAM. The end result is a hung kdump kernel. > [1]: https://lists.01.org/pipermail/linux-nvdimm/2015-March/000348.html > [2]: https://bugzilla.redhat.com/show_bug.cgi?id=1351098 > > Cc: Christoph Hellwig > Cc: Ross Zwisler > Cc: Andrew Morton > Cc: Boaz Harrosh > Cc: H. Peter Anvin > Cc: Thomas Gleixner > Cc: Ingo Molnar > Reported-by: Zhang Yi > Reported-by: Jeff Moyer > Tested-by: Zhang Yi I actually did the testing. You can leave that line as is, though, as I'm sure Yi will also test it. :) > Fixes: ec776ef6bbe1 ("x86/mm: Add support for the non-standard protected e820 type") > Signed-off-by: Dan Williams Reviewed-by: Jeff Moyer Thanks, Dan! -Jeff