Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5367687ybi; Wed, 12 Jun 2019 01:04:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdZf014XxesdJOh7d5sMcihzOQM5Y6yO1ZgmnosZlGV1/4eFLO4fGrabhYau62Y374qxg+ X-Received: by 2002:a62:6454:: with SMTP id y81mr46088840pfb.13.1560326698792; Wed, 12 Jun 2019 01:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560326698; cv=none; d=google.com; s=arc-20160816; b=b5Tq+lZRLP/sLcUyxz1U2RTTbS9BqMf36EtmU+YSzJqeLgeIvpYjuyEcSowitQaV5v T6on05fsph5YTmRYxoHGTsn0JdjZ7LhcT+u++K9dadSWUoTWdA6JV/sutjwCwgVCnQPm ZQUbDBWop8BHKr0nxTgEi5nGXGnatzfIPvTGH1FHftttnqHEY4sX3B4G7dXE9nX9G1W+ AxqArPzTpfVc6YpZ2zQBPwRG94kVPMYOdzm/4Tgk62nVXyT/WddY4ozFlLhOUWNUPKq5 edgHYBeVoDhN3zqdIN380un7HGrcg6d+O0vOaELGAr9e9Im4BQmgg++LU5yoSLpMc4Kk pbAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TMMa1W4W94DduIr/DnCHudsTBQ+stVOeAeh6otdySGk=; b=Y9WId4zE0c4vcoqgS+ZSc8wY3x3HxeMChHdqdiLvv90humPK9MSpFsjUfoO9cBen49 IN9mivGFGyckQiEHI1P+Jh0dj5NZZiW9R/c7ndGWLKlUhyMPZyDQho7/kHmDsHhFF1N+ 5aM2NPsLuH4sji+JVmY92KddOXM2LN9368xkgGhXtCI9ZXfvvTv5LM4aNV8AZKEWgkFX 2b8/Ednr1dCnBlNSS5Hr8zPiAPk17yymI/nTU/+mUkVVVEzgGeYRY4eC3m09MjIz3Zoq /N4eeVSBnBi7nHi/Oet5fuvS3monW026Vn0Lw17nVA4vLt7Fo2invppe9cbH5jJq5d3E AOqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si13898348pld.51.2019.06.12.01.04.42; Wed, 12 Jun 2019 01:04:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730655AbfFLFuI (ORCPT + 99 others); Wed, 12 Jun 2019 01:50:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33128 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbfFLFuI (ORCPT ); Wed, 12 Jun 2019 01:50:08 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB6C4859FF; Wed, 12 Jun 2019 05:50:01 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-58.pek2.redhat.com [10.72.12.58]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0A692600CD; Wed, 12 Jun 2019 05:49:53 +0000 (UTC) Date: Wed, 12 Jun 2019 13:49:49 +0800 From: Dave Young To: Baoquan He Cc: Borislav Petkov , lijiang , linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, akpm@linux-foundation.org, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, x86@kernel.org, hpa@zytor.com, Thomas.Lendacky@amd.com Subject: Re: [PATCH 0/3 v11] add reserved e820 ranges to the kdump kernel e820 table Message-ID: <20190612054949.GA23066@dhcp-128-65.nay.redhat.com> References: <20190423013007.17838-1-lijiang@redhat.com> <12847a03-3226-0b29-97b5-04d404410147@redhat.com> <20190607174211.GN20269@zn.tnic> <20190608035451.GB26148@MiWiFi-R3L-srv> <20190608091030.GB32464@zn.tnic> <20190608100139.GC26148@MiWiFi-R3L-srv> <20190608100623.GA9138@zn.tnic> <20190608102659.GA9130@MiWiFi-R3L-srv> <20190610113747.GD5488@zn.tnic> <20190612015549.GI26148@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612015549.GI26148@MiWiFi-R3L-srv> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 12 Jun 2019 05:50:08 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/12/19 at 09:55am, Baoquan He wrote: > On 06/10/19 at 01:37pm, Borislav Petkov wrote: > > On Sat, Jun 08, 2019 at 06:26:59PM +0800, Baoquan He wrote: > > > OK, I see. Then it should be the issue we have met and talked about with > > > Tom. > > > https://lkml.kernel.org/r/20190604134952.GC26891@MiWiFi-R3L-srv > > > > > > You can apply Tom's patch as below. I tested it, it can make kexec > > > kernel succeed to boot, but failed for kdump kernel booting. The kdump > > > kernel can boot till the end of kernel initialization, then hang with a > > > call trace. I have pasted the log in the above thread. Haven't got the > > > reason. > > > http://lkml.kernel.org/r/508c2853-dc4f-70a6-6fa8-97c950dc31c6@amd.com > > > > I can confirm the same observation. > > With further investigation, the failure after applying Tom's patch is > caused by OOM. When increase crashkernel reservation to 512M, kdump > kernel can boot successfully. I noticed your crashkernel reservation is > 256M, that will fail and stuck there very possibly. Usually for Fedora/RHEL variant kernel + userspace, 160M is a good value works for common setup. Sometimes people forgot to strip debuginfo, thus the kernel modules packed in initramfs is too big and cause out of memory. > > So Tom's patch can fix the issue. We need further check why much more > crashkernel memory is needed on those AMD boxes with sme support.. > > Thanks > Baoquan