Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4241447ybi; Tue, 11 Jun 2019 03:25:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcJmrvNjQndx8gL8CjSFYJRrFH0gQyen6bNUYYyCGRBWfNxf590YbAEe4TiB9VZT4T6nz9 X-Received: by 2002:a62:5306:: with SMTP id h6mr80461807pfb.29.1560248722484; Tue, 11 Jun 2019 03:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560248722; cv=none; d=google.com; s=arc-20160816; b=xaxsloC0j9FXmVpf6rc400xle0vNsH0zl5plM1D2yBaK3cnsJWyV+hWfh3MAgGk7dU 0W0TwosesgFVsYkZs7B3jxaRyUrvQTbrQ2vr/fQqRsTMQCeW8Mls0KMaEHBu4lGUa1o8 KcDcR6Dfcvb0lknieUaPtP++X/ob5EDhTYshGTBRfWhSwmQ+CHbIoMmyGjBQsEa6K+N8 H8hi6IAtWFSR+YLi0eHycA4+YHBw9WxY87JhlLgyqZqWZ4iQvZ3zZ6EJWaynJhpZ8+Ls MFw5y3dBzQhSqGqZCmdzUVvzGccNle6uBvXGthUQzgD1LQ6TPXuy3QVph7hOel0rAehG S6Zw== 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=vdlwztSeZtK4uLiu7g/54DU5CNKonw8us8reeQg29aw=; b=nMqF2azEdAsZjovpjAJYvRygsdZutz0qN6aSAaNUYWq/0W5B8LkuPcFJ+a2KfwT4h5 Wj2qFN/fXnLUrkxV1hbdZUauq9bis8zWF+VcxRuxhe9ZKykfT/bRhAHOJplkUcoPhr00 i756//MpWq4ofAuU6tSOA/3h1VOtk8Vcdm8LwZDs2WTWNACI2KuSjIagn13xJ0wKUAtd YdL5rPw0BfKecrPsxd+ElwlTQPNTVo1wVz1bZ7qkNUoCq+ZJcOeqVPjfBAHTXpxuimO4 EFQN+Yd8nIpJVJytj45E6Fl1QUhniWkGQKGCjOTzS5+/FCwOVwB1ycaLpsdPC1HZlPEG BLsw== 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 d2si2175077pjs.10.2019.06.11.03.25.06; Tue, 11 Jun 2019 03:25:22 -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 S2405304AbfFKKYc (ORCPT + 99 others); Tue, 11 Jun 2019 06:24:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54752 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405151AbfFKKYc (ORCPT ); Tue, 11 Jun 2019 06:24:32 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E8A5331628E2; Tue, 11 Jun 2019 10:24:31 +0000 (UTC) Received: from localhost (ovpn-12-24.pek2.redhat.com [10.72.12.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4FA1660BF1; Tue, 11 Jun 2019 10:24:31 +0000 (UTC) Date: Tue, 11 Jun 2019 18:24:28 +0800 From: Baoquan He To: lijiang Cc: "Lendacky, Thomas" , "kexec@lists.infradead.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: The current SME implementation fails kexec/kdump kernel booting. Message-ID: <20190611102428.GF26148@MiWiFi-R3L-srv> References: <20190604134952.GC26891@MiWiFi-R3L-srv> <508c2853-dc4f-70a6-6fa8-97c950dc31c6@amd.com> <20190605005600.GF26891@MiWiFi-R3L-srv> <0d9fba9d-7bbe-a7c7-dfe4-696da0dfecc4@amd.com> <2fe0e56c-9286-b71d-3d6d-c2a6fbcfba89@redhat.com> <33b9237f-5e8c-fe49-4f55-220ce9a492fb@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <33b9237f-5e8c-fe49-4f55-220ce9a492fb@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 11 Jun 2019 10:24:32 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom, On 06/11/19 at 05:52pm, lijiang wrote: > After applied Tom's patch, i changed the reserved memory(for crash kernel) to the > above 256M(>256M), such as crashkernel=320M or 384M,512M..., the kdump kernel can > work and successfully dump the vmcore. > > But the kdump kernel always happened the panic or could not boot successfully in > the 256M(<= 256M) case, and on HP machine, i noticed that it printed OOM, the kdump > kernel was too smaller memory. But i never see the OOM on speedway machine(probably > related to the earlyprintk, it doesn't work and it loses many logs). > > After removing the option 'CONFIG_DEBUG_INFO' from .config, i tested again, the kdump > kernel did not happen the panic in the 256M(crashkernel=256M), the kdump kernel can > work and succeed to dump the vmcore on HP machine or speedway machine. > > It seems that the small memory caused the previous failure in kdump kernel. I would > suggest to post this patch to upstream. What's your opinion? Tom, Baoquan and other > people. Or do you have any comment? As Lianbo said at above, the previous failure in kdump kernel is caused by OOM. Just the log on speedway is incomplete, I am not sure what happened. Now after investigation, your patch works to fix the issue. Could you post it for riviewing? Thanks Baoquan